fix
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
package com.cool.store.entity;
|
package com.cool.store.entity;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@Table(name = "xfsg_license_transact")
|
@Table(name = "xfsg_license_transact")
|
||||||
@@ -25,6 +27,14 @@ public class LicenseTransactDO {
|
|||||||
private Integer licenseType;
|
private Integer licenseType;
|
||||||
@Column(name = "license_legal_person")
|
@Column(name = "license_legal_person")
|
||||||
private String licenseLegalPerson;
|
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")
|
@Column(name = "credit_code")
|
||||||
private String creditCode;
|
private String creditCode;
|
||||||
@Column(name = "credit_url")
|
@Column(name = "credit_url")
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import com.cool.store.entity.LicenseTransactDO;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -53,6 +54,22 @@ public class BusinessLicenseRequest {
|
|||||||
@ApiModelProperty("0:保存 1:提交到待审核")
|
@ApiModelProperty("0:保存 1:提交到待审核")
|
||||||
private Integer submitStatus;
|
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) {
|
public LicenseTransactDO toLicenseTransactDO(LicenseTransactDO licenseTransactDO) {
|
||||||
if (Objects.isNull(licenseTransactDO)){
|
if (Objects.isNull(licenseTransactDO)){
|
||||||
licenseTransactDO = new LicenseTransactDO();
|
licenseTransactDO = new LicenseTransactDO();
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -16,6 +17,22 @@ import java.util.Objects;
|
|||||||
@Data
|
@Data
|
||||||
public class SubmitLicenseResponse {
|
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("审批人")
|
@ApiModelProperty("审批人")
|
||||||
private String approver;
|
private String approver;
|
||||||
|
|
||||||
@@ -209,6 +226,10 @@ public class SubmitLicenseResponse {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
SubmitLicenseResponse submitLicenseResponse = new SubmitLicenseResponse();
|
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.setId(licenseTransactDO.getId());
|
||||||
submitLicenseResponse.setShopId(licenseTransactDO.getShopId());
|
submitLicenseResponse.setShopId(licenseTransactDO.getShopId());
|
||||||
submitLicenseResponse.setLicenseType(licenseTransactDO.getLicenseType());
|
submitLicenseResponse.setLicenseType(licenseTransactDO.getLicenseType());
|
||||||
|
|||||||
Reference in New Issue
Block a user