fix initShop
This commit is contained in:
@@ -142,15 +142,14 @@ public class IntentAgreementServiceImpl extends LineFlowService implements Inten
|
|||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
protected Boolean auditPass(Long auditId, LineInfoDO lineInfo, String userId) {
|
protected Boolean auditPass(Long auditId, LineInfoDO lineInfo, String userId) {
|
||||||
LineInfoDO updateLine = new LineInfoDO();
|
lineInfo.setId(lineInfo.getId());
|
||||||
updateLine.setId(lineInfo.getId());
|
lineInfo.setWorkflowStage(WorkflowStageEnum.STORE.getCode());
|
||||||
updateLine.setWorkflowStage(WorkflowStageEnum.STORE.getCode());
|
lineInfo.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.SIGN_INTENT_AGREEMENT_125.getCode());
|
||||||
updateLine.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.SIGN_INTENT_AGREEMENT_125.getCode());
|
lineInfo.setDevelopmentManager(lineInfo.getInvestmentManager());
|
||||||
updateLine.setDevelopmentManager(lineInfo.getInvestmentManager());
|
lineInfo.setUpdateUserId(userId);
|
||||||
updateLine.setUpdateUserId(userId);
|
lineInfoDAO.updateLineInfo(lineInfo);
|
||||||
lineInfoDAO.updateLineInfo(updateLine);
|
|
||||||
//初始化店铺
|
//初始化店铺
|
||||||
shopService.initShop(updateLine);
|
shopService.initShop(lineInfo);
|
||||||
// 批量获取线索下门店的选址未开始的数据
|
// 批量获取线索下门店的选址未开始的数据
|
||||||
List<ShopStageInfoDO> stages = shopStageInfoDAO.getByLineIdAndSubStage(lineInfo.getId());
|
List<ShopStageInfoDO> stages = shopStageInfoDAO.getByLineIdAndSubStage(lineInfo.getId());
|
||||||
List<Long> shopIds = stages.stream().map(ShopStageInfoDO::getShopId).collect(Collectors.toList());
|
List<Long> shopIds = stages.stream().map(ShopStageInfoDO::getShopId).collect(Collectors.toList());
|
||||||
@@ -211,15 +210,14 @@ public class IntentAgreementServiceImpl extends LineFlowService implements Inten
|
|||||||
if ( !WorkflowSubStageStatusEnum.SIGN_INTENT_AGREEMENT_70.getCode().equals(lineInfo.getWorkflowSubStageStatus())) {
|
if ( !WorkflowSubStageStatusEnum.SIGN_INTENT_AGREEMENT_70.getCode().equals(lineInfo.getWorkflowSubStageStatus())) {
|
||||||
throw new ServiceException(ErrorCodeEnum.LINE_STATUS_NOT_ALLOW_OPERATE);
|
throw new ServiceException(ErrorCodeEnum.LINE_STATUS_NOT_ALLOW_OPERATE);
|
||||||
}
|
}
|
||||||
LineInfoDO updateLine = new LineInfoDO();
|
|
||||||
updateLine.setId(lineInfo.getId());
|
lineInfo.setWorkflowStage(WorkflowStageEnum.STORE.getCode());
|
||||||
updateLine.setWorkflowStage(WorkflowStageEnum.STORE.getCode());
|
lineInfo.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.SIGN_INTENT_AGREEMENT_125.getCode());
|
||||||
updateLine.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.SIGN_INTENT_AGREEMENT_125.getCode());
|
lineInfo.setDevelopmentManager(lineInfo.getInvestmentManager());
|
||||||
updateLine.setDevelopmentManager(lineInfo.getInvestmentManager());
|
lineInfo.setUpdateUserId(user.getUserId());
|
||||||
updateLine.setUpdateUserId(user.getUserId());
|
lineInfoDAO.updateLineInfo(lineInfo);
|
||||||
lineInfoDAO.updateLineInfo(updateLine);
|
|
||||||
//初始化店铺
|
//初始化店铺
|
||||||
shopService.initShop(updateLine);
|
shopService.initShop(lineInfo);
|
||||||
// 批量获取线索下门店的选址未开始的数据
|
// 批量获取线索下门店的选址未开始的数据
|
||||||
List<ShopStageInfoDO> stages = shopStageInfoDAO.getByLineIdAndSubStage(lineInfo.getId());
|
List<ShopStageInfoDO> stages = shopStageInfoDAO.getByLineIdAndSubStage(lineInfo.getId());
|
||||||
List<Long> shopIds = stages.stream().map(ShopStageInfoDO::getShopId).collect(Collectors.toList());
|
List<Long> shopIds = stages.stream().map(ShopStageInfoDO::getShopId).collect(Collectors.toList());
|
||||||
|
|||||||
Reference in New Issue
Block a user