移动端督导代写
This commit is contained in:
@@ -87,4 +87,10 @@ public class LicenseTransactDO {
|
||||
private Integer syncFlag;
|
||||
@Column(name = "legal_is_same_partner")
|
||||
private Boolean legalIsSamePartner;
|
||||
@Column(name = "single_shop")
|
||||
private Boolean singleShop;
|
||||
@Column(name = "commitment_url")
|
||||
private String commitmentUrl;
|
||||
@Column(name = "food_shop_list_url")
|
||||
private String foodShopListUrl;
|
||||
}
|
||||
|
||||
@@ -75,6 +75,16 @@ public class BusinessLicenseRequest {
|
||||
//@NotBlank(message = "法人手机号不能为空")
|
||||
private String licenseLegalMobile;
|
||||
|
||||
@ApiModelProperty("是否单店使用")
|
||||
@NotNull(message = "是否单店使用不能为空")
|
||||
private Boolean singleShop;
|
||||
|
||||
@ApiModelProperty("美食城承诺书")
|
||||
private String commitmentUrl;
|
||||
|
||||
@ApiModelProperty("美食城档口列表")
|
||||
private String foodShopListUrl;
|
||||
|
||||
public LicenseTransactDO toLicenseTransactDO(LicenseTransactDO licenseTransactDO) {
|
||||
if (Objects.isNull(licenseTransactDO)){
|
||||
licenseTransactDO = new LicenseTransactDO();
|
||||
@@ -99,6 +109,9 @@ public class BusinessLicenseRequest {
|
||||
}else if (this.validityType == 1){
|
||||
licenseTransactDO.setValidity(this.validity);
|
||||
}
|
||||
licenseTransactDO.setSingleShop(this.singleShop);
|
||||
licenseTransactDO.setCommitmentUrl(this.commitmentUrl);
|
||||
licenseTransactDO.setFoodShopListUrl(this.foodShopListUrl);
|
||||
return licenseTransactDO;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
@@ -122,7 +123,14 @@ public class SubmitLicenseResponse {
|
||||
private StoreDocument storeDocument;
|
||||
@ApiModelProperty("二证合一标识;0否 1 是")
|
||||
private Integer twoCertificatesOne;
|
||||
@ApiModelProperty("是否单店使用")
|
||||
private Boolean singleShop;
|
||||
|
||||
@ApiModelProperty("美食城承诺书")
|
||||
private String commitmentUrl;
|
||||
|
||||
@ApiModelProperty("美食城档口列表")
|
||||
private String foodShopListUrl;
|
||||
@Data
|
||||
public static class StoreDocument {
|
||||
@ApiModelProperty("营业执照拍照上传")
|
||||
@@ -227,6 +235,9 @@ public class SubmitLicenseResponse {
|
||||
return new SubmitLicenseResponse();
|
||||
}
|
||||
SubmitLicenseResponse submitLicenseResponse = new SubmitLicenseResponse();
|
||||
submitLicenseResponse.setSingleShop(licenseTransactDO.getSingleShop());
|
||||
submitLicenseResponse.setCommitmentUrl(licenseTransactDO.getCommitmentUrl());
|
||||
submitLicenseResponse.setFoodShopListUrl(licenseTransactDO.getFoodShopListUrl());
|
||||
submitLicenseResponse.setLegalIsSamePartner(licenseTransactDO.getLegalIsSamePartner());
|
||||
submitLicenseResponse.setLicenseLegalIdCardNo(licenseTransactDO.getLicenseLegalIdCardNo());
|
||||
submitLicenseResponse.setLicenseLegalIdCardFront(licenseTransactDO.getLicenseLegalIdCardFront());
|
||||
|
||||
Reference in New Issue
Block a user