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