fix
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package com.cool.store.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.util.Date;
|
||||
|
||||
@Table(name = "xfsg_license_transact")
|
||||
@@ -25,6 +27,14 @@ public class LicenseTransactDO {
|
||||
private Integer licenseType;
|
||||
@Column(name = "license_legal_person")
|
||||
private String licenseLegalPerson;
|
||||
@Column(name = "license_legalId_card_no")
|
||||
private String licenseLegalIdCardNo;
|
||||
@Column(name = "license_legalId_card_front")
|
||||
private String licenseLegalIdCardFront;
|
||||
@Column(name = "license_legalId_card_back")
|
||||
private String licenseLegalIdCardBack;
|
||||
@Column(name = "license_legal_mobile")
|
||||
private String licenseLegalMobile;
|
||||
@Column(name = "credit_code")
|
||||
private String creditCode;
|
||||
@Column(name = "credit_url")
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.cool.store.entity.LicenseTransactDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -53,6 +54,22 @@ public class BusinessLicenseRequest {
|
||||
@ApiModelProperty("0:保存 1:提交到待审核")
|
||||
private Integer submitStatus;
|
||||
|
||||
@ApiModelProperty("法人身份证号码")
|
||||
@NotBlank(message = "法人身份证号码不能为空")
|
||||
private String licenseLegalIdCardNo;
|
||||
|
||||
@ApiModelProperty("法人身份证正面")
|
||||
@NotBlank(message = "法人身份证正面不能为空")
|
||||
private String licenseLegalIdCardFront;
|
||||
|
||||
@ApiModelProperty("法人身份证反面")
|
||||
@NotBlank(message = "法人身份证反面不能为空")
|
||||
private String licenseLegalIdCardBack;
|
||||
|
||||
@ApiModelProperty("法人手机号")
|
||||
@NotBlank(message = "法人手机号不能为空")
|
||||
private String licenseLegalMobile;
|
||||
|
||||
public LicenseTransactDO toLicenseTransactDO(LicenseTransactDO licenseTransactDO) {
|
||||
if (Objects.isNull(licenseTransactDO)){
|
||||
licenseTransactDO = new LicenseTransactDO();
|
||||
|
||||
@@ -9,6 +9,7 @@ import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
@@ -16,6 +17,22 @@ import java.util.Objects;
|
||||
@Data
|
||||
public class SubmitLicenseResponse {
|
||||
|
||||
@ApiModelProperty("法人身份证号码")
|
||||
@NotBlank(message = "法人身份证号码不能为空")
|
||||
private String licenseLegalIdCardNo;
|
||||
|
||||
@ApiModelProperty("法人身份证正面")
|
||||
@NotBlank(message = "法人身份证正面不能为空")
|
||||
private String licenseLegalIdCardFront;
|
||||
|
||||
@ApiModelProperty("法人身份证反面")
|
||||
@NotBlank(message = "法人身份证反面不能为空")
|
||||
private String licenseLegalIdCardBack;
|
||||
|
||||
@ApiModelProperty("法人手机号")
|
||||
@NotBlank(message = "法人手机号不能为空")
|
||||
private String licenseLegalMobile;
|
||||
|
||||
@ApiModelProperty("审批人")
|
||||
private String approver;
|
||||
|
||||
@@ -209,6 +226,10 @@ public class SubmitLicenseResponse {
|
||||
return null;
|
||||
}
|
||||
SubmitLicenseResponse submitLicenseResponse = new SubmitLicenseResponse();
|
||||
submitLicenseResponse.setLicenseLegalIdCardNo(licenseTransactDO.getLicenseLegalIdCardNo());
|
||||
submitLicenseResponse.setLicenseLegalIdCardFront(licenseTransactDO.getLicenseLegalIdCardFront());
|
||||
submitLicenseResponse.setLicenseLegalIdCardBack(licenseTransactDO.getLicenseLegalIdCardBack());
|
||||
submitLicenseResponse.setLicenseLegalMobile(licenseTransactDO.getLicenseLegalMobile());
|
||||
submitLicenseResponse.setId(licenseTransactDO.getId());
|
||||
submitLicenseResponse.setShopId(licenseTransactDO.getShopId());
|
||||
submitLicenseResponse.setLicenseType(licenseTransactDO.getLicenseType());
|
||||
|
||||
Reference in New Issue
Block a user