Merge remote-tracking branch 'origin/cc_partner_init' into cc_partner_init
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package com.cool.store.dto.decoration;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
/**
|
||||
* @Auther: WangShuo
|
||||
* @Date: 2024/05/06/下午3:31
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
@Data
|
||||
public class AssessmentDataDTO {
|
||||
|
||||
@ApiModelProperty("模板id")
|
||||
private Long templateId;
|
||||
|
||||
private Long shopId;
|
||||
/**
|
||||
* 店铺是否合格
|
||||
*/
|
||||
@ApiModelProperty("店铺是否合格,0合格1不合格")
|
||||
private Boolean qualified;
|
||||
|
||||
/**
|
||||
* 原因
|
||||
*/
|
||||
@ApiModelProperty("不合格原因")
|
||||
private String reason;
|
||||
|
||||
/**
|
||||
* 评语
|
||||
*/
|
||||
@ApiModelProperty("评语")
|
||||
private String comments;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.cool.store.dto.decoration;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Auther: WangShuo
|
||||
* @Date: 2024/05/06/下午3:09
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
@Data
|
||||
public class ThreeAcceptanceDTO {
|
||||
@ApiModelProperty("验收签名 ")
|
||||
private String AcceptanceSignatures;
|
||||
@ApiModelProperty("验收评语")
|
||||
private String Comments;
|
||||
@ApiModelProperty("0通过,1不通过")
|
||||
private Integer ResultType;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.cool.store.request;
|
||||
|
||||
import com.cool.store.dto.decoration.AssessmentDataDTO;
|
||||
import com.cool.store.entity.AssessmentDataDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Auther: WangShuo
|
||||
* @Date: 2024/05/06/下午3:17
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
@Data
|
||||
public class ThreeAcceptanceCheckRequest {
|
||||
private Long shopId;
|
||||
@ApiModelProperty("检查项")
|
||||
private List<AssessmentDataDTO> assessmentDataDTOS;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.cool.store.request;
|
||||
|
||||
import com.cool.store.dto.decoration.ThreeAcceptanceDTO;
|
||||
import com.cool.store.entity.AssessmentDataDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -15,24 +16,12 @@ import java.util.List;
|
||||
@Data
|
||||
public class ThreeAcceptanceRequest {
|
||||
private Long shopId;
|
||||
@ApiModelProperty("工程部验收签名 {pic\":\"\",\"acceptanceTime\":\"\",\"result\":\"\",\"remark\":\"\",\"status\":1}")
|
||||
private String engineeringAcceptanceSignatures;
|
||||
@ApiModelProperty("工程部验收评语")
|
||||
private String engineeringComments;
|
||||
@ApiModelProperty("0通过,1不通过")
|
||||
private Integer engineeringResultType;
|
||||
@ApiModelProperty("营运部验收签名 {\"pic\":\"\",\"acceptanceTime\":\"\",\"result\":\"\",\"remark\":\"\",\"status\":1}")
|
||||
private String operationsAcceptanceSignatures;
|
||||
@ApiModelProperty("营运部验收评语")
|
||||
private String operationsComments;
|
||||
@ApiModelProperty("0通过,1不通过")
|
||||
private Integer operationsResultType;
|
||||
@ApiModelProperty("加盟商验收签名 {\"pic\":\"\",\"acceptanceTime\":\"\",\"result\":\"\",\"remark\":\"\",\"status\":0}")
|
||||
private String partnerAcceptanceSignatures;
|
||||
@ApiModelProperty("加盟商验收评语")
|
||||
private String partnerComments;
|
||||
@ApiModelProperty("0通过,1不通过")
|
||||
private Integer partnerResultType;
|
||||
@ApiModelProperty("工程部验收")
|
||||
private ThreeAcceptanceDTO engineeringAcceptance;
|
||||
@ApiModelProperty("营运部验收")
|
||||
private ThreeAcceptanceDTO operationsAcceptance;
|
||||
@ApiModelProperty("加盟商验收")
|
||||
private ThreeAcceptanceDTO partnerAcceptance;
|
||||
@ApiModelProperty("检查项")
|
||||
private List<AssessmentDataDO> assessmentDataDOS;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.List;
|
||||
public class OpeningOperationPlanVO {
|
||||
|
||||
@ApiModelProperty("门店name")
|
||||
private String name;
|
||||
private String shopName;
|
||||
@ApiModelProperty("调研结果")
|
||||
private String surveyResult;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user