fix
This commit is contained in:
@@ -93,6 +93,8 @@ public class DecorationMeasureServiceImpl implements DecorationMeasureService {
|
|||||||
shopStageInfoDAO.batchUpdateShopStageStatus(request.getShopId(), Arrays.asList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_862, ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_90));
|
shopStageInfoDAO.batchUpdateShopStageStatus(request.getShopId(), Arrays.asList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_862, ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_90));
|
||||||
// 给测量员发送企业微信消息
|
// 给测量员发送企业微信消息
|
||||||
sendMeasureUserMessage(request.getShopId(), request.getMeasureUserId());
|
sendMeasureUserMessage(request.getShopId(), request.getMeasureUserId());
|
||||||
|
//企微通知设计组长
|
||||||
|
sendHeadDesign(request);
|
||||||
return Boolean.TRUE;
|
return Boolean.TRUE;
|
||||||
}
|
}
|
||||||
// 处理状态862->863
|
// 处理状态862->863
|
||||||
@@ -105,23 +107,27 @@ public class DecorationMeasureServiceImpl implements DecorationMeasureService {
|
|||||||
// 更新设计状态和测量状态
|
// 更新设计状态和测量状态
|
||||||
shopStageInfoDAO.batchUpdateShopStageStatus(request.getShopId(),
|
shopStageInfoDAO.batchUpdateShopStageStatus(request.getShopId(),
|
||||||
Arrays.asList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_862, ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_90));
|
Arrays.asList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_862, ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_90));
|
||||||
// 给测量员发送企业微信消息
|
//企微通知设计组长
|
||||||
List<String> headOfDesignList = enterpriseUserRoleDao.selectUserIdsByRoleIdList(Arrays.asList(UserRoleEnum.HEAD_OF_DESIGN.getCode()));
|
sendHeadDesign(request);
|
||||||
sendMeasureUserMessage(request.getShopId(), request.getMeasureUserId());
|
|
||||||
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId());
|
|
||||||
LineInfoDO lineInfo = lineInfoMapper.getByLineId(shopInfo.getLineId());
|
|
||||||
HashMap<String, String> map = new HashMap<>(4);
|
|
||||||
map.put("partnerUsername", lineInfo.getUsername());
|
|
||||||
map.put("partnerMobile", lineInfo.getMobile());
|
|
||||||
map.put("storeName", shopInfo.getShopName());
|
|
||||||
commonService.sendQWMessage(headOfDesignList,
|
|
||||||
MessageEnum.MESSAGE_58,
|
|
||||||
map
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
return Boolean.TRUE;
|
return Boolean.TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void sendHeadDesign(DecorationMeasureRequest request) {
|
||||||
|
List<String> headOfDesignList = enterpriseUserRoleDao.selectUserIdsByRoleIdList(Arrays.asList(UserRoleEnum.HEAD_OF_DESIGN.getCode()));
|
||||||
|
sendMeasureUserMessage(request.getShopId(), request.getMeasureUserId());
|
||||||
|
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId());
|
||||||
|
LineInfoDO lineInfo = lineInfoMapper.getByLineId(shopInfo.getLineId());
|
||||||
|
HashMap<String, String> map = new HashMap<>(4);
|
||||||
|
map.put("partnerUsername", lineInfo.getUsername());
|
||||||
|
map.put("partnerMobile", lineInfo.getMobile());
|
||||||
|
map.put("storeName", shopInfo.getShopName());
|
||||||
|
commonService.sendQWMessage(headOfDesignList,
|
||||||
|
MessageEnum.MESSAGE_58,
|
||||||
|
map
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 发送测量消息给测量员
|
* 发送测量消息给测量员
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -199,9 +199,9 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
|
|||||||
commonService.sendQWMessage(liGuiNeiQinList,
|
commonService.sendQWMessage(liGuiNeiQinList,
|
||||||
MessageEnum.MESSAGE_57,
|
MessageEnum.MESSAGE_57,
|
||||||
map);
|
map);
|
||||||
commonService.sendQWMessage(Collections.singletonList(shopInfoDO.getInvestmentManager()),
|
// commonService.sendQWMessage(Collections.singletonList(shopInfoDO.getInvestmentManager()),
|
||||||
MessageEnum.MESSAGE_35,
|
// MessageEnum.MESSAGE_35,
|
||||||
map);
|
// map);
|
||||||
commonService.sendQWMessage(Collections.singletonList(shopInfoDO.getInvestmentManager()),
|
commonService.sendQWMessage(Collections.singletonList(shopInfoDO.getInvestmentManager()),
|
||||||
MessageEnum.MESSAGE_26,
|
MessageEnum.MESSAGE_26,
|
||||||
map);
|
map);
|
||||||
|
|||||||
Reference in New Issue
Block a user