食安二证合一

This commit is contained in:
shuo.wang
2024-11-18 15:28:06 +08:00
parent 081ae420df
commit 7f2fd018e4
4 changed files with 10 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ public class LicenseTransactDO {
private Date updateTime;
@Column(name = "deleted")
private Integer deleted;
@Column(name = "two_certificates_one")
private Integer twoCertificatesOne;
}

View File

@@ -51,6 +51,8 @@ public class FoodLicenseRequest {
@ApiModelProperty("0:保存 1提交到待审核")
private Integer submitStatus;
@ApiModelProperty("二证合一标识0否 1 是")
private Integer twoCertificatesOne;
public LicenseTransactDO toLicenseTransactDO(LicenseTransactDO licenseTransactDO) {
@@ -65,6 +67,7 @@ public class FoodLicenseRequest {
licenseTransactDO.setFoodBusinessStartTime(this.foodLicenseStartTime);
licenseTransactDO.setFoodBusinessEndTime(this.foodLicenseEndTime);
licenseTransactDO.setFoodBusinessLicenseUrl(this.foodLicenseUrl);
licenseTransactDO.setTwoCertificatesOne(this.twoCertificatesOne);
return licenseTransactDO;
}
}

View File

@@ -102,6 +102,8 @@ public class SubmitLicenseResponse {
@ApiModelProperty("鲜丰拉取方法体")
private StoreDocument storeDocument;
@ApiModelProperty("二证合一标识0否 1 是")
private Integer twoCertificatesOne;
@Data
public static class StoreDocument {
@@ -237,6 +239,7 @@ public class SubmitLicenseResponse {
submitLicenseResponse.setFoodLicenseCode(licenseTransactDO.getFoodBusinessLicenseCode());
submitLicenseResponse.setFoodLicenseStartTime(licenseTransactDO.getFoodBusinessStartTime());
submitLicenseResponse.setFoodLicenseEndTime(licenseTransactDO.getFoodBusinessEndTime());
submitLicenseResponse.setTwoCertificatesOne(licenseTransactDO.getTwoCertificatesOne());
return submitLicenseResponse;
}
}