Merge remote-tracking branch 'origin/cc_partner_init' into cc_partner_init
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -332,20 +332,18 @@
|
|||||||
|
|
||||||
<select id="getLinePayByLineIds" resultMap="BaseResultMap">
|
<select id="getLinePayByLineIds" resultMap="BaseResultMap">
|
||||||
select * from xfsg_line_pay where deleted = 0
|
select * from xfsg_line_pay where deleted = 0
|
||||||
<where>
|
<if test="businessType!=null">
|
||||||
<if test="businessType!=null">
|
and pay_business_type = #{businessType}
|
||||||
and pay_business_type = #{businessType}
|
</if>
|
||||||
</if>
|
<if test="lineIds !=null and lineIds.size>0">
|
||||||
<if test="lineIds !=null and lineIds.size>0">
|
<foreach collection="lineIds" item="lineId" open="and line_id in (" close=")" separator=",">
|
||||||
<foreach collection="lineIds" item="lineId" open="and line_id in (" close=")" separator=",">
|
#{lineId}
|
||||||
#{lineId}
|
</foreach>
|
||||||
</foreach>
|
</if>
|
||||||
</if>
|
<if test="shopIds !=null and shopIds.size>0">
|
||||||
<if test="shopIds !=null and shopIds.size>0">
|
<foreach collection="shopIds" item="shopId" open="and shop_id in (" close=")" separator=",">
|
||||||
<foreach collection="shopIds" item="shopId" open="and shop_id in (" close=")" separator=",">
|
#{shopId}
|
||||||
#{shopId}
|
</foreach>
|
||||||
</foreach>
|
</if>
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ public class PreparationCommonPendingVO {
|
|||||||
private String regionNodeName;
|
private String regionNodeName;
|
||||||
@ApiModelProperty("阶段")
|
@ApiModelProperty("阶段")
|
||||||
private Integer stage;
|
private Integer stage;
|
||||||
|
@ApiModelProperty("子阶段")
|
||||||
|
private Integer subStage;
|
||||||
@ApiModelProperty("阶段状态")
|
@ApiModelProperty("阶段状态")
|
||||||
private Integer subStageStatus;
|
private Integer subStageStatus;
|
||||||
@ApiModelProperty("线索ID")
|
@ApiModelProperty("线索ID")
|
||||||
|
|||||||
@@ -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);
|
||||||
//插入操作/意见
|
//插入操作/意见
|
||||||
|
|||||||
@@ -392,6 +392,7 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
preparationCommonPendingVO.setLineId(x.getLineId());
|
preparationCommonPendingVO.setLineId(x.getLineId());
|
||||||
preparationCommonPendingVO.setShopId(x.getShopId());
|
preparationCommonPendingVO.setShopId(x.getShopId());
|
||||||
preparationCommonPendingVO.setStage(x.getShopStage());
|
preparationCommonPendingVO.setStage(x.getShopStage());
|
||||||
|
preparationCommonPendingVO.setSubStage(x.getShopSubStage());
|
||||||
preparationCommonPendingVO.setSubStageStatus(x.getShopSubStageStatus());
|
preparationCommonPendingVO.setSubStageStatus(x.getShopSubStageStatus());
|
||||||
ShopInfoDO shopInfoDO = shopInfoMap.getOrDefault(x.getShopId(),new ShopInfoDO());
|
ShopInfoDO shopInfoDO = shopInfoMap.getOrDefault(x.getShopId(),new ShopInfoDO());
|
||||||
preparationCommonPendingVO.setSubmitTime(DateUtils.parseDateToStr(DateUtils.SPECIAL_DATE_START,finalShopPayDoMap.getOrDefault(x.getShopId(), new LinePayDO()).getCreateTime()));
|
preparationCommonPendingVO.setSubmitTime(DateUtils.parseDateToStr(DateUtils.SPECIAL_DATE_START,finalShopPayDoMap.getOrDefault(x.getShopId(), new LinePayDO()).getCreateTime()));
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user