Merge branch 'cc_20250506' into 'master'

Cc 20250506

See merge request hangzhou/java/custom_zxjp!69
This commit is contained in:
苏竹红
2025-05-06 11:13:36 +00:00
8 changed files with 45 additions and 12 deletions

View File

@@ -84,6 +84,7 @@ public enum MessageEnum {
MESSAGE_56("您有一个门店测量阶段待提交,请查收","门店名称:${storeName}\n加盟商姓名${partnerUsername}\n加盟商手机号码${partnerMobile}\n"), MESSAGE_56("您有一个门店测量阶段待提交,请查收","门店名称:${storeName}\n加盟商姓名${partnerUsername}\n加盟商手机号码${partnerMobile}\n"),
MESSAGE_57("您有一个门店测量阶段待分配测量员和设计组,请查收","门店名称:${storeName}\n加盟商姓名${partnerUsername}\n加盟商手机号码${partnerMobile}\n"), MESSAGE_57("您有一个门店测量阶段待分配测量员和设计组,请查收","门店名称:${storeName}\n加盟商姓名${partnerUsername}\n加盟商手机号码${partnerMobile}\n"),
MESSAGE_58("您有一个门店设计阶段待分配设计师,请查收","门店名称:${storeName}\n加盟商姓名${partnerUsername}\n加盟商手机号码${partnerMobile}\n"), MESSAGE_58("您有一个门店设计阶段待分配设计师,请查收","门店名称:${storeName}\n加盟商姓名${partnerUsername}\n加盟商手机号码${partnerMobile}\n"),
MESSAGE_59("您有一个门店设计阶段报价任务待领取,请查收","门店名称:${storeName}\n加盟商姓名${partnerUsername}\n加盟商手机号码${partnerMobile}\n"),
; ;
private String title; private String title;

View File

@@ -295,7 +295,13 @@
a.shop_status as shopStatus, a.shop_status as shopStatus,
a.detail_address as shopAddress a.detail_address as shopAddress
from xfsg_shop_info a left join xfsg_line_info b on a.line_id = b.id from xfsg_shop_info a left join xfsg_line_info b on a.line_id = b.id
<if test="request.contractStartTime !=null and request.contractEndTime != null">
left join xfsg_sign_franchise c on a.id = c.shop_id
</if>
where a.deleted = 0 where a.deleted = 0
<if test="request.contractStartTime !=null and request.contractEndTime !=null">
and c.create_time between #{request.contractStartTime} and #{request.contractEndTime}
</if>
<if test="request.partnerKeyword != null and request.partnerKeyword != ''"> <if test="request.partnerKeyword != null and request.partnerKeyword != ''">
and (b.username like concat('%', #{request.partnerKeyword}, '%') or b.mobile like concat('%', and (b.username like concat('%', #{request.partnerKeyword}, '%') or b.mobile like concat('%',
#{request.partnerKeyword}, '%')) #{request.partnerKeyword}, '%'))

View File

@@ -285,6 +285,7 @@
#{regionId} #{regionId}
</foreach> </foreach>
</if> </if>
order by a.update_time desc
</where> </where>
</select> </select>

View File

@@ -49,4 +49,9 @@ public class PreparationDTO {
private Integer joinMode; private Integer joinMode;
private Integer storeType;
private Long pointId;
} }

View File

@@ -45,4 +45,8 @@ public class BranchShopRequest extends PageBasicInfo{
@NotNull @NotNull
private Integer flag; private Integer flag;
@ApiModelProperty("合同开始时间")
private Date contractStartTime;
@ApiModelProperty("合同结束时间")
private Date contractEndTime;
} }

View File

@@ -91,6 +91,9 @@ public class DecorationServiceImpl implements DecorationService {
@Resource @Resource
DecorationMeasureDAO decorationMeasureDAO; DecorationMeasureDAO decorationMeasureDAO;
@Resource
EnterpriseUserRoleDao enterpriseUserRoleDao;
@Override @Override
public DesignInfoVo DesignInfo(Long shopId) { public DesignInfoVo DesignInfo(Long shopId) {
return null; return null;
@@ -560,6 +563,16 @@ public class DecorationServiceImpl implements DecorationService {
} }
if (ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_901.getShopSubStageStatus().equals(subStage.getShopSubStageStatus())) { if (ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_901.getShopSubStageStatus().equals(subStage.getShopSubStageStatus())) {
shopStageInfoDAO.updateShopStageInfo(request.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_902); shopStageInfoDAO.updateShopStageInfo(request.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_902);
List<String> quotationOfficeList = enterpriseUserRoleDao.selectUserIdsByRoleIdList(Collections.singletonList(UserRoleEnum.QUOTATION_OFFICE.getCode()));
HashMap<String, String> map = new HashMap<>(4);
map.put("partnerUsername", lineInfo.getUsername());
map.put("partnerMobile", lineInfo.getMobile());
map.put("storeName", shopInfo.getShopName());
commonService.sendQWMessage(
quotationOfficeList,
MessageEnum.MESSAGE_59,
map
);
return Boolean.TRUE; return Boolean.TRUE;
} }
if (ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_902.getShopSubStageStatus().equals(subStage.getShopSubStageStatus())) { if (ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_902.getShopSubStageStatus().equals(subStage.getShopSubStageStatus())) {

View File

@@ -291,7 +291,7 @@ public class ShopServiceImpl implements ShopService {
if (Objects.isNull(shopInfo)) { if (Objects.isNull(shopInfo)) {
throw new ServiceException(ErrorCodeEnum.POINT_NOT_EXIST); throw new ServiceException(ErrorCodeEnum.POINT_NOT_EXIST);
} }
shopInfo.setShopCode(request.getShopCode()); shopInfo.setShopCode(request.getShopCode().trim());
shopInfo.setShopName(request.getShopName()); shopInfo.setShopName(request.getShopName());
shopInfo.setUpdateTime(new Date()); shopInfo.setUpdateTime(new Date());
shopInfo.setUpdateUserId(userId); shopInfo.setUpdateUserId(userId);
@@ -405,7 +405,7 @@ public class ShopServiceImpl implements ShopService {
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId()); ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId());
shopInfo.setUpdateUserId(userId); shopInfo.setUpdateUserId(userId);
shopInfo.setUpdateTime(new Date()); shopInfo.setUpdateTime(new Date());
shopInfo.setShopCode(request.getShopCode()); shopInfo.setShopCode(request.getShopCode().trim());
shopInfo.setShopName(request.getShopName()); shopInfo.setShopName(request.getShopName());
shopInfo.setWantShopAreaId(request.getWantShopAreaId()); shopInfo.setWantShopAreaId(request.getWantShopAreaId());
shopInfo.setRegionId(request.getRegionId()); shopInfo.setRegionId(request.getRegionId());
@@ -506,7 +506,9 @@ public class ShopServiceImpl implements ShopService {
for (PreparationDTO dto : preparations) { for (PreparationDTO dto : preparations) {
BranchShopResponse response = new BranchShopResponse(); BranchShopResponse response = new BranchShopResponse();
response.setShopAddress(dto.getShopAddress()); response.setShopAddress(dto.getShopAddress());
response.setStoreType(dto.getStoreType());
response.setShopId(dto.getId()); response.setShopId(dto.getId());
response.setPointId(dto.getPointId());
response.setLineId(dto.getLineId()); response.setLineId(dto.getLineId());
response.setUsername(dto.getUsername()); response.setUsername(dto.getUsername());
response.setMobile(dto.getMobile()); response.setMobile(dto.getMobile());

View File

@@ -265,43 +265,44 @@ public class SyncDataServiceImpl implements SyncDataService {
if (StringUtils.isBlank(shopInfoDO.getShopCode())) { if (StringUtils.isBlank(shopInfoDO.getShopCode())) {
return null; return null;
} }
String shopCode = shopInfoDO.getShopCode().trim();
if (String.valueOf(FranchiseBrandEnum.ZXJP.getCode()).equals(shopInfoDO.getFranchiseBrand())) { if (String.valueOf(FranchiseBrandEnum.ZXJP.getCode()).equals(shopInfoDO.getFranchiseBrand())) {
//M10001 //M10001
if (shopInfoDO.getShopCode().matches("M\\d*")) { if (shopCode.matches("M\\d*")) {
return "MX" + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")"; return "MX" + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")";
} }
//FS10001 //FS10001
if (shopInfoDO.getShopCode().matches("FS\\d*")) { if (shopCode.matches("FS\\d*")) {
return "FS" + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")"; return "FS" + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")";
} }
// MS10001 // MS10001
if (shopInfoDO.getShopCode().matches("MS\\d*")) { if (shopCode.matches("MS\\d*")) {
return "MS" + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")"; return "MS" + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")";
} }
// S10001 // S10001
if (shopInfoDO.getShopCode().matches("S\\d*")) { if (shopCode.matches("S\\d*")) {
return shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")"; return shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")";
} }
} }
if (String.valueOf(FranchiseBrandEnum.MZG.getCode()).equals(shopInfoDO.getFranchiseBrand())) { if (String.valueOf(FranchiseBrandEnum.MZG.getCode()).equals(shopInfoDO.getFranchiseBrand())) {
if (shopInfoDO.getShopCode().matches("MZGM\\d*")) { if (shopCode.matches("MZGM\\d*")) {
return FranchiseBrandEnum.MZG.getDesc() + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")"; return FranchiseBrandEnum.MZG.getDesc() + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")";
} }
if (shopInfoDO.getShopCode().matches("MZGS\\d*")) { if (shopCode.matches("MZGS\\d*")) {
return FranchiseBrandEnum.MZG.getDesc() + shopInfoDO.getShopName(); return FranchiseBrandEnum.MZG.getDesc() + shopInfoDO.getShopName();
} }
} }
if (String.valueOf(FranchiseBrandEnum.ZJS.getCode()).equals(shopInfoDO.getFranchiseBrand())) { if (String.valueOf(FranchiseBrandEnum.ZJS.getCode()).equals(shopInfoDO.getFranchiseBrand())) {
if (shopInfoDO.getShopCode().matches("LX\\d*")) { if (shopCode.matches("LX\\d*")) {
return "LX" + FranchiseBrandEnum.ZJS.getDesc() + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")"; return "LX" + FranchiseBrandEnum.ZJS.getDesc() + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")";
} }
if (shopInfoDO.getShopCode().matches("X\\d*")) { if (shopCode.matches("X\\d*")) {
return "X" + FranchiseBrandEnum.ZJS.getDesc() + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")"; return "X" + FranchiseBrandEnum.ZJS.getDesc() + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")";
} }
if (shopInfoDO.getShopCode().matches("Q\\d*")) { if (shopCode.matches("Q\\d*")) {
return "Q" + FranchiseBrandEnum.ZJS.getDesc() + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")"; return "Q" + FranchiseBrandEnum.ZJS.getDesc() + shopInfoDO.getShopName() + "(" + lineInfoDO.getUsername() + ")";
} }
if (shopInfoDO.getShopCode().matches("Z\\d*")) { if (shopCode.matches("Z\\d*")) {
return FranchiseBrandEnum.ZJS.getDesc() + shopInfoDO.getShopName(); return FranchiseBrandEnum.ZJS.getDesc() + shopInfoDO.getShopName();
} }
} }