证照办理默认值调整为鲜丰获取
This commit is contained in:
@@ -0,0 +1,165 @@
|
||||
package com.cool.store.response;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class GetStoreInfoByCodeResponse {
|
||||
/**
|
||||
* 返回结果代码
|
||||
* 结果代码
|
||||
*/
|
||||
private Integer code;
|
||||
/**
|
||||
* 返回结果数据
|
||||
* 结果数据
|
||||
*/
|
||||
private InnerData data;
|
||||
/**
|
||||
* 提示信息
|
||||
*/
|
||||
private String message;
|
||||
|
||||
@Data
|
||||
public static class InnerData {
|
||||
/**
|
||||
* 开店状态:0=关店1=开店
|
||||
*/
|
||||
private String closeTime;
|
||||
/**
|
||||
* 加盟商编码
|
||||
*/
|
||||
private String franchiseeId;
|
||||
/**
|
||||
* 开店状态:0=关店1=开店
|
||||
*/
|
||||
private Long hdStatus;
|
||||
/**
|
||||
* 维度
|
||||
*/
|
||||
private String latitude;
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
private String longitude;
|
||||
/**
|
||||
* 门店开业时间
|
||||
*/
|
||||
private String openDate;
|
||||
/**
|
||||
* 开店状态:0=关店1=开店
|
||||
*/
|
||||
private String openTime;
|
||||
/**
|
||||
* 门店地址
|
||||
*/
|
||||
private String storeAdd;
|
||||
/**
|
||||
* 小区
|
||||
*/
|
||||
private String storeArea;
|
||||
/**
|
||||
* 门店代码
|
||||
*/
|
||||
private String storeCode;
|
||||
/**
|
||||
* 大区
|
||||
*/
|
||||
private String storeCompany;
|
||||
/**
|
||||
* 门店证照信息
|
||||
*/
|
||||
private StoreDocument storeDocument;
|
||||
/**
|
||||
* 战区
|
||||
*/
|
||||
private String storeLarge;
|
||||
/**
|
||||
* 门店名称
|
||||
*/
|
||||
private String storeName;
|
||||
/**
|
||||
* 门店性质
|
||||
*/
|
||||
private String storeType;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class StoreDocument {
|
||||
/**
|
||||
* 营业执照经营场所/住所
|
||||
*/
|
||||
private String storeBusinessAdd;
|
||||
/**
|
||||
* 营业执照发证日期
|
||||
*/
|
||||
private String storeBusinessDate;
|
||||
/**
|
||||
* 营业执照图片
|
||||
*/
|
||||
private String storeBusinessImg;
|
||||
/**
|
||||
* 营业执照名称
|
||||
*/
|
||||
private String storeBusinessName;
|
||||
/**
|
||||
* 营业执照统一社会信用代码
|
||||
*/
|
||||
private String storeBusinessNumber;
|
||||
/**
|
||||
* 营业执照类型
|
||||
*/
|
||||
private String storeBusinessType;
|
||||
/**
|
||||
* 营业执照有效期, 非OCR识别,手填。9=长期有效,非长期有效则为具体日期,例:2026-06-01
|
||||
*/
|
||||
private String storeBusinessValidPeriod;
|
||||
/**
|
||||
* 门店代码
|
||||
*/
|
||||
private String storeCode;
|
||||
/**
|
||||
* 营业执照经营者/法人
|
||||
*/
|
||||
private String storeDirector;
|
||||
/**
|
||||
* 食品流通经营许可证编号
|
||||
*/
|
||||
private String storeFoodLicense;
|
||||
/**
|
||||
* 食品流通/经营许可证有效期开始日期
|
||||
*/
|
||||
private String storeFoodLicenseBeginDate;
|
||||
/**
|
||||
* 食品经营许可证经营场所
|
||||
*/
|
||||
private String storeFoodLicenseBusinessAddress;
|
||||
/**
|
||||
* 食品经营许可证经营项目
|
||||
*/
|
||||
private String storeFoodLicenseBusinessScope;
|
||||
/**
|
||||
* 食品流通/经营许可证有效期结束日期
|
||||
*/
|
||||
private String storeFoodLicenseEndDate;
|
||||
/**
|
||||
* 食品经营许可证照片
|
||||
*/
|
||||
private String storeFoodLicenseImg;
|
||||
/**
|
||||
* 食品经营许可证法定代表人(负责人)
|
||||
*/
|
||||
private String storeFoodLicenseLegalRepresentative;
|
||||
/**
|
||||
* 食品经营许可证主体业态
|
||||
*/
|
||||
private String storeFoodLicenseMainBusiness;
|
||||
/**
|
||||
* 食品经营许可证经营者名称
|
||||
*/
|
||||
private String storeFoodLicenseOperatorName;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String storeRemark;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
package com.cool.store.response;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.cool.store.entity.LicenseTransactDO;
|
||||
import com.cool.store.entity.ShopAuditInfoDO;
|
||||
import com.cool.store.enums.LicenseTypeEnum;
|
||||
import com.cool.store.vo.ShopAuditInfoVO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@@ -9,6 +11,7 @@ import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
@Data
|
||||
@ApiModel("提交证照办理响应体")
|
||||
@@ -89,8 +92,43 @@ public class SubmitLicenseResponse {
|
||||
@ApiModelProperty("流程记录")
|
||||
private List<ShopAuditInfoVO> processRecords;
|
||||
|
||||
public static SubmitLicenseResponse from(GetStoreInfoByCodeResponse storeInfoCode){
|
||||
if (Objects.isNull(storeInfoCode)){
|
||||
return null;
|
||||
}
|
||||
GetStoreInfoByCodeResponse.InnerData data = storeInfoCode.getData();
|
||||
GetStoreInfoByCodeResponse.StoreDocument storeDocument = data.getStoreDocument();
|
||||
boolean storeBusinessValidPeriod = storeDocument.getStoreBusinessValidPeriod().equals("9");
|
||||
SubmitLicenseResponse submitLicenseResponse = new SubmitLicenseResponse();
|
||||
submitLicenseResponse.setId(null);
|
||||
submitLicenseResponse.setShopId(null);
|
||||
submitLicenseResponse.setLicenseType(LicenseTypeEnum.matchName(storeDocument.getStoreBusinessType()).getCode());
|
||||
submitLicenseResponse.setLicenseLegalPerson(storeDocument.getStoreDirector());
|
||||
submitLicenseResponse.setIssueTime(DateUtil.parseTime(storeDocument.getStoreBusinessDate()));
|
||||
submitLicenseResponse.setLicenseAddress(storeDocument.getStoreBusinessAdd());
|
||||
submitLicenseResponse.setValidity(storeBusinessValidPeriod ? null : DateUtil.parseTime(storeDocument.getStoreBusinessValidPeriod()));
|
||||
submitLicenseResponse.setOperator(storeDocument.getStoreDirector());
|
||||
submitLicenseResponse.setFoodLicenseLegalPerson(storeDocument.getStoreFoodLicenseOperatorName());
|
||||
submitLicenseResponse.setMainBusiness(storeDocument.getStoreFoodLicenseMainBusiness());
|
||||
submitLicenseResponse.setBusinessProject(storeDocument.getStoreFoodLicenseBusinessScope());
|
||||
submitLicenseResponse.setRemark(storeDocument.getStoreRemark());
|
||||
submitLicenseResponse.setRemarkUrl(null);
|
||||
submitLicenseResponse.setSubmitStatus(null);
|
||||
submitLicenseResponse.setLicenseUrl(storeDocument.getStoreBusinessImg());
|
||||
submitLicenseResponse.setLicenseName(storeDocument.getStoreBusinessName());
|
||||
submitLicenseResponse.setSocialCreditCode(storeDocument.getStoreBusinessNumber());
|
||||
submitLicenseResponse.setIdCardAndLicense1(null);
|
||||
submitLicenseResponse.setIdCardAndLicense2(null);
|
||||
submitLicenseResponse.setFoodLicenseUrl(storeDocument.getStoreFoodLicenseImg());
|
||||
submitLicenseResponse.setBusinessPremises(storeDocument.getStoreFoodLicenseBusinessAddress());
|
||||
submitLicenseResponse.setFoodLicenseCode(storeDocument.getStoreFoodLicense());
|
||||
submitLicenseResponse.setFoodLicenseStartTime(DateUtil.parseTime(storeDocument.getStoreFoodLicenseBeginDate()));
|
||||
submitLicenseResponse.setFoodLicenseEndTime(DateUtil.parseTime(storeDocument.getStoreFoodLicenseEndDate()));
|
||||
return submitLicenseResponse;
|
||||
}
|
||||
|
||||
public static SubmitLicenseResponse from(LicenseTransactDO licenseTransactDO) {
|
||||
if (licenseTransactDO == null) {
|
||||
if (Objects.isNull(licenseTransactDO)) {
|
||||
return null;
|
||||
}
|
||||
SubmitLicenseResponse submitLicenseResponse = new SubmitLicenseResponse();
|
||||
|
||||
Reference in New Issue
Block a user