SMSMsgEnum

This commit is contained in:
guohb
2024-05-10 10:57:50 +08:00
parent 03bda50bce
commit 06c7f22db1
7 changed files with 59 additions and 8 deletions

View File

@@ -22,6 +22,12 @@ public enum SMSMsgEnum {
SELECT_SUCCESS("选铺成功", "", "SMS_465950846"), SELECT_SUCCESS("选铺成功", "", "SMS_465950846"),
RENT_CONTRACT_AUDIT_FAIL("租赁合同上传未通过", "", "SMS_465955429"), RENT_CONTRACT_AUDIT_FAIL("租赁合同上传未通过", "", "SMS_465955429"),
SHOP_EXPERIENCE("门店体验安排", "", "SMS_465905828"), SHOP_EXPERIENCE("门店体验安排", "", "SMS_465905828"),
SYS_BUILD_STORE_DONE("系统建店已完成","","SMS_465916277"),
LICENSE_SUBMITTED("证照待提交","","SMS_465981218"),
LICENSE_NOT_PASS("证照未通过","","SMS_465971250"),
FRANCHISE_FEE_SUBMITTED("缴纳加盟费待缴纳","","SMS_465921311"),
FRANCHISE_FEE_NOT_PASS("缴纳加盟费缴纳失败","","SMS_465896262"),
; ;
private String title; private String title;

View File

@@ -1,10 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cool.store.mapper.ApplyLicenseMapper"> <mapper namespace="com.cool.store.mapper.ApplyLicenseMapper">
<sql id="baseColumn">
id,
shop_id,
business_license,
license_type,
license_legal_person,
credit_code,
credit_url,
license_address,
issueTime,
validity,
id_card_positive_credit_url,
id_card_negative_credit_url,
food_business_license_code,
main_business,
operator,
food_license_legal_person,
business_project,
food_license_address,
food_business_start_time,
food_business_end_time,
food_business_license_url,
remark,
remark_url,
submit_status,
create_time,
update_time,
deleted
</sql>
<update id="updateByShopId"> <update id="updateByShopId">
update xfsg_license_transact update xfsg_license_transact
set submit_status = #{entity.submitStatus} set submit_status = #{entity.submitStatus}
where shop_id = #{entity.shopId} where shop_id = #{entity.shopId}
<if test="entity.deleted != null">
and deleted = #{entity.deleted}
</if>
</update> </update>
@@ -26,6 +60,7 @@
LEFT JOIN xfsg_shop_info s ON o.shop_id = s.id LEFT JOIN xfsg_shop_info s ON o.shop_id = s.id
LEFT JOIN xfsg_line_info l ON l.id = s.line_id LEFT JOIN xfsg_line_info l ON l.id = s.line_id
<where> <where>
o.deleted = 0
<if test="userId != null and userId != ''"> <if test="userId != null and userId != ''">
and s.supervisor_user_id = #{userId} and s.supervisor_user_id = #{userId}
</if> </if>
@@ -52,8 +87,9 @@
</select> </select>
<select id="selectByShopId" resultType="com.cool.store.entity.LicenseTransactDO"> <select id="selectByShopId" resultType="com.cool.store.entity.LicenseTransactDO">
select * select <include refid="baseColumn"/>
from xfsg_license_transact from xfsg_license_transact
where shop_id = #{shopId} where shop_id = #{shopId}
and deleted = 0
</select> </select>
</mapper> </mapper>

View File

@@ -67,6 +67,8 @@ public class LicenseTransactDO {
private Date createTime; private Date createTime;
@Column(name = "update_time") @Column(name = "update_time")
private Date updateTime; private Date updateTime;
@Column(name = "deleted")
private Integer deleted;

View File

@@ -45,6 +45,9 @@ public class SubmitLicenseResponse {
@ApiModelProperty("有效期(如果为空则是长期有效)") @ApiModelProperty("有效期(如果为空则是长期有效)")
private Date validity; private Date validity;
@ApiModelProperty("有效期类型 0长期有效不用传validity 1效期内")
private Integer validityType;
@ApiModelProperty("法人双手持身份证正面+营业执照") @ApiModelProperty("法人双手持身份证正面+营业执照")
private String idCardAndLicense1; private String idCardAndLicense1;
@@ -103,6 +106,7 @@ public class SubmitLicenseResponse {
submitLicenseResponse.setIssueTime(DateUtil.parseDate(storeDocument.getStoreBusinessDate())); submitLicenseResponse.setIssueTime(DateUtil.parseDate(storeDocument.getStoreBusinessDate()));
submitLicenseResponse.setLicenseAddress(storeDocument.getStoreBusinessAdd()); submitLicenseResponse.setLicenseAddress(storeDocument.getStoreBusinessAdd());
submitLicenseResponse.setValidity(storeBusinessValidPeriod ? null : DateUtil.parseTime(storeDocument.getStoreBusinessValidPeriod())); submitLicenseResponse.setValidity(storeBusinessValidPeriod ? null : DateUtil.parseTime(storeDocument.getStoreBusinessValidPeriod()));
submitLicenseResponse.setValidityType(storeBusinessValidPeriod ? 0 : 1);
submitLicenseResponse.setOperator(storeDocument.getStoreDirector()); submitLicenseResponse.setOperator(storeDocument.getStoreDirector());
submitLicenseResponse.setFoodLicenseLegalPerson(storeDocument.getStoreFoodLicenseOperatorName()); submitLicenseResponse.setFoodLicenseLegalPerson(storeDocument.getStoreFoodLicenseOperatorName());
submitLicenseResponse.setMainBusiness(storeDocument.getStoreFoodLicenseMainBusiness()); submitLicenseResponse.setMainBusiness(storeDocument.getStoreFoodLicenseMainBusiness());
@@ -131,6 +135,11 @@ public class SubmitLicenseResponse {
submitLicenseResponse.setIssueTime(licenseTransactDO.getIssueTime()); submitLicenseResponse.setIssueTime(licenseTransactDO.getIssueTime());
submitLicenseResponse.setLicenseAddress(licenseTransactDO.getLicenseAddress()); submitLicenseResponse.setLicenseAddress(licenseTransactDO.getLicenseAddress());
submitLicenseResponse.setValidity(licenseTransactDO.getValidity()); submitLicenseResponse.setValidity(licenseTransactDO.getValidity());
if (Objects.nonNull(licenseTransactDO.getValidity())){
submitLicenseResponse.setValidityType(1);
}else {
submitLicenseResponse.setValidityType(0);
}
submitLicenseResponse.setOperator(licenseTransactDO.getOperator()); submitLicenseResponse.setOperator(licenseTransactDO.getOperator());
submitLicenseResponse.setFoodLicenseLegalPerson(licenseTransactDO.getFoodLicenseLegalPerson()); submitLicenseResponse.setFoodLicenseLegalPerson(licenseTransactDO.getFoodLicenseLegalPerson());
submitLicenseResponse.setMainBusiness(licenseTransactDO.getMainBusiness()); submitLicenseResponse.setMainBusiness(licenseTransactDO.getMainBusiness());

View File

@@ -217,6 +217,7 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
licenseTransactDO.setSubmitStatus(2); licenseTransactDO.setSubmitStatus(2);
shopAuditInfoDO.setRejectReason(result); shopAuditInfoDO.setRejectReason(result);
shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_42; shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_42;
licenseTransactDO.setDeleted(Constants.ONE_INTEGER);
} }
applyLicenseMapper.updateByShopId(licenseTransactDO); applyLicenseMapper.updateByShopId(licenseTransactDO);
//插入操作/意见 //插入操作/意见

View File

@@ -149,7 +149,7 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
//线索信息 //线索信息
LineInfoDO lineInfoDO = lineInfoMapper.getByLineId(shopInfoDO.getLineId()); LineInfoDO lineInfoDO = lineInfoMapper.getByLineId(shopInfoDO.getLineId());
//缴费信息 //缴费信息
FranchiseFeeDO franchiseFeeDO = franchiseFeeMapper.selectOne(FranchiseFeeDO.builder().shopId(shopId).build()); FranchiseFeeDO franchiseFeeDO = franchiseFeeMapper.selectByShopId(shopId);
//线索id //线索id
Long lineId = shopInfoDO.getLineId(); Long lineId = shopInfoDO.getLineId();
//签约信息 //签约信息
@@ -161,7 +161,7 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
//建店数据 //建店数据
SystemBuildingShopDO systemBuildingShopDO = systemBuildingShopMapper.selectOne(SystemBuildingShopDO.builder().shopId(shopId).lineId(lineId).build()); SystemBuildingShopDO systemBuildingShopDO = systemBuildingShopMapper.selectOne(SystemBuildingShopDO.builder().shopId(shopId).lineId(lineId).build());
//证照办理 //证照办理
LicenseTransactDO licenseTransactDO = applyLicenseMapper.selectOne(LicenseTransactDO.builder().shopId(shopId).build()); LicenseTransactDO licenseTransactDO = applyLicenseMapper.selectByShopId(shopId);
ThirdDepartmentDO thirdDepartmentDO = new ThirdDepartmentDO(); ThirdDepartmentDO thirdDepartmentDO = new ThirdDepartmentDO();
if (Objects.nonNull(systemBuildingShopDO)){ if (Objects.nonNull(systemBuildingShopDO)){
//三方部门表 //三方部门表
@@ -325,7 +325,7 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
//建店数据 //建店数据
SystemBuildingShopDO systemBuildingShopDO = systemBuildingShopMapper.selectOne(SystemBuildingShopDO.builder().shopId(shopId).lineId(lineId).build()); SystemBuildingShopDO systemBuildingShopDO = systemBuildingShopMapper.selectOne(SystemBuildingShopDO.builder().shopId(shopId).lineId(lineId).build());
//证照办理 //证照办理
LicenseTransactDO licenseTransactDO = applyLicenseMapper.selectOne(LicenseTransactDO.builder().shopId(shopId).build()); LicenseTransactDO licenseTransactDO = applyLicenseMapper.selectByShopId(shopId);
if (Objects.nonNull(signFranchiseDO)) { if (Objects.nonNull(signFranchiseDO)) {
addSignFranchiseResponse.setId(signFranchiseDO.getId()); addSignFranchiseResponse.setId(signFranchiseDO.getId());
addSignFranchiseResponse.setShopId(signFranchiseDO.getShopId()); addSignFranchiseResponse.setShopId(signFranchiseDO.getShopId());

View File

@@ -96,10 +96,7 @@ public class SysStoreAppServiceImpl implements SysStoreAppService,AuditResultSer
PointInfoDO pointInfoDO = pointInfoMapper.getDataByShopIdAndLineId(request.getLineId(), request.getShopId());//查铺位信息确定铺位所在大区、战区、门店所在省市区街道地址 PointInfoDO pointInfoDO = pointInfoMapper.getDataByShopIdAndLineId(request.getLineId(), request.getShopId());//查铺位信息确定铺位所在大区、战区、门店所在省市区街道地址
//3.请求鲜丰接口 //3.请求鲜丰接口
NewStoreRequest apiRequest = convertToNewStoreRequest(request,lineInfoDO,pointInfoDO,user); NewStoreRequest apiRequest = convertToNewStoreRequest(request,lineInfoDO,pointInfoDO,user);
//todo 暂时去掉 return coolStoreStartFlowService.newStore(apiRequest,request.getShopId());
// return coolStoreStartFlowService.newStore(apiRequest,request.getShopId());
shopStageInfoDAO.updateShopStageAndAuditInfo(request.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_31,null);
return ResponseResult.success();
} }
@Override @Override