建店资料收集fix

This commit is contained in:
shuo.wang
2024-10-09 21:49:49 +08:00
parent 32ad5c6611
commit c539a69e7e
7 changed files with 137 additions and 41 deletions

View File

@@ -31,8 +31,10 @@ public class PlatformBuildDAO {
if (platformBuildDO == null) { if (platformBuildDO == null) {
return 0; return 0;
} }
Example example = new Example(BuildInformationDO.class); Example example = new Example(PlatformBuildDO.class);
example.createCriteria().andEqualTo("shopId", platformBuildDO.getShopId()); example.createCriteria()
.andEqualTo("shopId", platformBuildDO.getShopId())
.andEqualTo("type",platformBuildDO.getType());
return platformBuildMapper.updateByExampleSelective(platformBuildDO,example); return platformBuildMapper.updateByExampleSelective(platformBuildDO,example);
} }
public PlatformBuildDO selectOneByShopId(Long shopId,Integer type) { public PlatformBuildDO selectOneByShopId(Long shopId,Integer type) {

View File

@@ -5,32 +5,35 @@
<mapper namespace="com.cool.store.mapper.BuildInformationMapper"> <mapper namespace="com.cool.store.mapper.BuildInformationMapper">
<resultMap id="BaseResultMap" type="com.cool.store.entity.BuildInformationDO"> <resultMap id="BaseResultMap" type="com.cool.store.entity.BuildInformationDO">
<id property="id" column="id" jdbcType="BIGINT"/> <id property="id" column="id" jdbcType="BIGINT"/>
<result property="shopId" column="shop_id" jdbcType="BIGINT"/> <result property="shopId" column="shop_id" jdbcType="BIGINT"/>
<result property="shopContactName" column="shop_contact_name" jdbcType="VARCHAR"/> <result property="shopContactName" column="shop_contact_name" jdbcType="VARCHAR"/>
<result property="shopContactMobile" column="shop_contact_mobile" jdbcType="VARCHAR"/> <result property="shopContactMobile" column="shop_contact_mobile" jdbcType="VARCHAR"/>
<result property="businessHours" column="business_hours" jdbcType="TIMESTAMP"/> <result property="businessHours" column="business_hours" jdbcType="TIMESTAMP"/>
<result property="businessMobile" column="business_mobile" jdbcType="VARCHAR"/> <result property="businessMobile" column="business_mobile" jdbcType="VARCHAR"/>
<result property="doorPhoto" column="door_photo" jdbcType="VARCHAR"/> <result property="doorPhoto" column="door_photo" jdbcType="VARCHAR"/>
<result property="inStorePhoto" column="in_store_photo" jdbcType="VARCHAR"/> <result property="inStorePhoto" column="in_store_photo" jdbcType="VARCHAR"/>
<result property="juridicalIdCardFront" column="juridical_id_card_front" jdbcType="VARCHAR"/> <result property="juridicalIdCardFront" column="juridical_id_card_front" jdbcType="VARCHAR"/>
<result property="juridicalIdCardReverse" column="juridical_id_card_reverse" jdbcType="VARCHAR"/> <result property="juridicalIdCardReverse" column="juridical_id_card_reverse" jdbcType="VARCHAR"/>
<result property="juridicalHandheldIdCardFront" column="juridical_handheld_id_card_front" jdbcType="VARCHAR"/> <result property="juridicalHandheldIdCardFront" column="juridical_handheld_id_card_front" jdbcType="VARCHAR"/>
<result property="juridicalHandheldIdCardReverse" column="juridical_handheld_id_card_reverse" jdbcType="VARCHAR"/> <result property="juridicalHandheldIdCardReverse" column="juridical_handheld_id_card_reverse"
<result property="settlerIdCardFront" column="settler_id_card_front" jdbcType="VARCHAR"/> jdbcType="VARCHAR"/>
<result property="settlerIdCardReverse" column="settler_id_card_reverse" jdbcType="VARCHAR"/> <result property="settlerIdCardFront" column="settler_id_card_front" jdbcType="VARCHAR"/>
<result property="settlerIdCardNo" column="settler_id_card_no" jdbcType="VARCHAR"/> <result property="settlerIdCardReverse" column="settler_id_card_reverse" jdbcType="VARCHAR"/>
<result property="settlerBankNumber" column="settler_bank_number" jdbcType="VARCHAR"/> <result property="settlerIdCardNo" column="settler_id_card_no" jdbcType="VARCHAR"/>
<result property="settlerBankMobile" column="settler_bank_mobile" jdbcType="VARCHAR"/> <result property="settlerBankPhotoUrl" column="settler_bank_photo_url" jdbcType="VARCHAR"/>
<result property="settlerBankName" column="settler_bank_name" jdbcType="VARCHAR"/> <result property="settlerBankNumber" column="settler_bank_number" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> <result property="settlerBankMobile" column="settler_bank_mobile" jdbcType="VARCHAR"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> <result property="settlerBankName" column="settler_bank_name" jdbcType="VARCHAR"/>
<result property="createUser" column="create_user" jdbcType="VARCHAR"/> <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateUser" column="update_user" jdbcType="VARCHAR"/> <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="createUser" column="create_user" jdbcType="VARCHAR"/>
<result property="updateUser" column="update_user" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id,shop_id,shop_contact_name, id
,shop_id,shop_contact_name,
shop_contact_mobile,business_hours,business_mobile, shop_contact_mobile,business_hours,business_mobile,
door_photo,in_store_photo,juridical_id_card_front, door_photo,in_store_photo,juridical_id_card_front,
juridical_id_card_reverse,juridical_handheld_id_card_front,juridical_handheld_id_card_reverse, juridical_id_card_reverse,juridical_handheld_id_card_front,juridical_handheld_id_card_reverse,

View File

@@ -3,17 +3,22 @@ package com.cool.store.entity;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.persistence.*; import javax.persistence.*;
import javax.validation.constraints.NotBlank;
/** /**
* 建店资料表 * 建店资料表
*
* @TableName xfsg_build_information * @TableName xfsg_build_information
*/ */
@Table(name ="xfsg_build_information") @Table(name = "xfsg_build_information")
@Data @Data
public class BuildInformationDO { public class BuildInformationDO {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@@ -62,85 +67,91 @@ public class BuildInformationDO {
/** /**
* 法人身份证正面(图片) * 法人身份证正面(图片)
*/ */
@Column(name = "juridical_id_card_front") @Column(name = "juridical_id_card_front")
private String juridicalIdCardFront; private String juridicalIdCardFront;
/** /**
* 法人身份证反面(图片) * 法人身份证反面(图片)
*/ */
@Column(name = "juridical_id_card_reverse") @Column(name = "juridical_id_card_reverse")
private String juridicalIdCardReverse; private String juridicalIdCardReverse;
/** /**
* 法人手持身份证正面(图片) * 法人手持身份证正面(图片)
*/ */
@Column(name = "juridical_handheld_id_card_front") @Column(name = "juridical_handheld_id_card_front")
private String juridicalHandheldIdCardFront; private String juridicalHandheldIdCardFront;
/** /**
* 法人手持身份证反面(图片) * 法人手持身份证反面(图片)
*/ */
@Column(name = "juridical_handheld_id_card_reverse") @Column(name = "juridical_handheld_id_card_reverse")
private String juridicalHandheldIdCardReverse; private String juridicalHandheldIdCardReverse;
/** /**
* 结算人身份证正面(图片) * 结算人身份证正面(图片)
*/ */
@Column(name = "settler_id_card_front") @Column(name = "settler_id_card_front")
private String settlerIdCardFront; private String settlerIdCardFront;
/** /**
* 结算人身份证反面(图片) * 结算人身份证反面(图片)
*/ */
@Column(name = "settler_id_card_reverse") @Column(name = "settler_id_card_reverse")
private String settlerIdCardReverse; private String settlerIdCardReverse;
/** /**
* 结算人身份证号 * 结算人身份证号
*/ */
@Column(name = "settler_id_card_no") @Column(name = "settler_id_card_no")
private String settlerIdCardNo; private String settlerIdCardNo;
/**
* 结算人银行卡照片
*/
@Column(name = "settler_bank_photo_url")
private String settlerBankPhotoUrl;
/** /**
* 结算人银行卡号 * 结算人银行卡号
*/ */
@Column(name = "settler_bank_number") @Column(name = "settler_bank_number")
private String settlerBankNumber; private String settlerBankNumber;
/** /**
* 结算人银行卡预留手机号 * 结算人银行卡预留手机号
*/ */
@Column(name = "settler_bank_mobile") @Column(name = "settler_bank_mobile")
private String settlerBankMobile; private String settlerBankMobile;
/** /**
* 结算开户银行支行 * 结算开户银行支行
*/ */
@Column(name = "settler_bank_name") @Column(name = "settler_bank_name")
private String settlerBankName; private String settlerBankName;
/** /**
* 创建时间 * 创建时间
*/ */
@Column(name = "create_time") @Column(name = "create_time")
private Date createTime; private Date createTime;
/** /**
* 更新时间 * 更新时间
*/ */
@Column(name = "update_time") @Column(name = "update_time")
private Date updateTime; private Date updateTime;
/** /**
* 创建人 * 创建人
*/ */
@Column(name = "create_user") @Column(name = "create_user")
private String createUser; private String createUser;
/** /**
* 更新人 * 更新人
*/ */
@Column(name = "update_user") @Column(name = "update_user")
private String updateUser; private String updateUser;
} }

View File

@@ -84,6 +84,11 @@ public class BuildInformationRequest {
@ApiModelProperty("结算人身份证号") @ApiModelProperty("结算人身份证号")
private String settlerIdCardNo; private String settlerIdCardNo;
@NotBlank
@Length(max = 250, message = "结算人银行卡照片 长度不能超过250")
@ApiModelProperty("结算人银行卡照片")
private String settlerBankPhotoUrl;
@NotBlank @NotBlank
@Length(max = 64 , message = "结算人银行卡号 长度不能超过64") @Length(max = 64 , message = "结算人银行卡号 长度不能超过64")
@ApiModelProperty("结算人银行卡号") @ApiModelProperty("结算人银行卡号")

View File

@@ -0,0 +1,68 @@
package com.cool.store.request;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* @Author: WangShuo
* @Date: 2024/10/09/下午9:27
* @Version 1.0
* @注释:
*/
@Data
public class PlatformBuildRequest {
@NotNull
private Long shopId;
@ApiModelProperty(value = "'1-抖音2-快手3-美团团购4-饿了么5-美团外卖6-(营帐通)',",hidden = true)
private Integer type;
@NotBlank
@Length(max = 250 , message = "结算人身份证正面 长度不能超过250")
@ApiModelProperty("结算人身份证正面(图片)")
private String settlerIdCardFront;
@NotBlank
@Length(max = 250 , message = "结算人身份证反面 长度不能超过250")
@ApiModelProperty("结算人身份证反面(图片)")
private String settlerIdCardReverse;
@NotBlank
@Length(max = 64 , message = "结算人身份证号 长度不能超过64")
@ApiModelProperty("结算人身份证号")
private String settlerIdCardNo;
@NotBlank
@Length(max = 250, message = "结算人银行卡照片 长度不能超过250")
@ApiModelProperty("结算人银行卡照片")
private String settlerBankPhotoUrl;
@NotBlank
@Length(max = 64 , message = "结算人银行卡号 长度不能超过64")
@ApiModelProperty("结算人银行卡号")
private String settlerBankNumber;
@NotBlank
@Length(min = 11,max = 11 , message = "结算人银行卡预留手机号 长度必须为11")
@ApiModelProperty("结算人银行卡预留手机号")
private String settlerBankMobile;
@NotBlank
@Length(max =100, message = "结算开户银行支行 长度不能超过100")
@ApiModelProperty("结算开户银行支行")
private String settlerBankName;
@Length(max =1020, message = "门店定位截图(快手&抖音) 长度不能超过1020")
@ApiModelProperty("门店定位截图(快手&抖音)")
private String storePositioningUrl;
@Length(max =1020, message = "授权书(抖音非法人结算需要) 长度不能超过1020")
@ApiModelProperty("授权书(抖音非法人结算需要)")
private String authorizationUrl;
}

View File

@@ -77,6 +77,9 @@ public class BuildInformationResponse {
@ApiModelProperty("结算人身份证号") @ApiModelProperty("结算人身份证号")
private String settlerIdCardNo; private String settlerIdCardNo;
@ApiModelProperty("结算人银行卡照片")
private String settlerBankPhotoUrl;
@ApiModelProperty("结算人银行卡号") @ApiModelProperty("结算人银行卡号")
private String settlerBankNumber; private String settlerBankNumber;

View File

@@ -9,4 +9,8 @@ package com.cool.store.service;
*/ */
public interface PlatformBuildService { public interface PlatformBuildService {
Boolean isJuridical(Long shopId);
} }