建店资料收集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

@@ -16,10 +16,12 @@
<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"
jdbcType="VARCHAR"/>
<result property="settlerIdCardFront" column="settler_id_card_front" jdbcType="VARCHAR"/> <result property="settlerIdCardFront" column="settler_id_card_front" jdbcType="VARCHAR"/>
<result property="settlerIdCardReverse" column="settler_id_card_reverse" jdbcType="VARCHAR"/> <result property="settlerIdCardReverse" column="settler_id_card_reverse" jdbcType="VARCHAR"/>
<result property="settlerIdCardNo" column="settler_id_card_no" jdbcType="VARCHAR"/> <result property="settlerIdCardNo" column="settler_id_card_no" jdbcType="VARCHAR"/>
<result property="settlerBankPhotoUrl" column="settler_bank_photo_url" jdbcType="VARCHAR"/>
<result property="settlerBankNumber" column="settler_bank_number" jdbcType="VARCHAR"/> <result property="settlerBankNumber" column="settler_bank_number" jdbcType="VARCHAR"/>
<result property="settlerBankMobile" column="settler_bank_mobile" jdbcType="VARCHAR"/> <result property="settlerBankMobile" column="settler_bank_mobile" jdbcType="VARCHAR"/>
<result property="settlerBankName" column="settler_bank_name" jdbcType="VARCHAR"/> <result property="settlerBankName" column="settler_bank_name" jdbcType="VARCHAR"/>
@@ -30,7 +32,8 @@
</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,12 +3,17 @@ 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")
@@ -101,6 +106,12 @@ public class BuildInformationDO {
@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;
/** /**
* 结算人银行卡号 * 结算人银行卡号
*/ */

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);
} }