OA
This commit is contained in:
@@ -192,8 +192,7 @@ public class PreparationServiceImpl implements PreparationService {
|
|||||||
if (CollectionUtils.isNotEmpty(shopStageInfo)) {
|
if (CollectionUtils.isNotEmpty(shopStageInfo)) {
|
||||||
Map<Integer, ShopStageInfoDO> shopStageInfoDOMap = shopStageInfo.stream().collect(Collectors.toMap(ShopStageInfoDO::getShopSubStage, data -> data));
|
Map<Integer, ShopStageInfoDO> shopStageInfoDOMap = shopStageInfo.stream().collect(Collectors.toMap(ShopStageInfoDO::getShopSubStage, data -> data));
|
||||||
Boolean buildStoreCompletionFlag = Boolean.TRUE;
|
Boolean buildStoreCompletionFlag = Boolean.TRUE;
|
||||||
Boolean contractCompletionFlag = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_73.getShopSubStageStatus().equals(shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_7.getShopSubStage()).getShopSubStageStatus());
|
Boolean contractCompletionFlag = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_84.getShopSubStageStatus().equals(shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_8.getShopSubStage()).getShopSubStageStatus());
|
||||||
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(shopId);
|
|
||||||
//都完成了 初始化后续流程数据
|
//都完成了 初始化后续流程数据
|
||||||
if (buildStoreCompletionFlag && contractCompletionFlag) {
|
if (buildStoreCompletionFlag && contractCompletionFlag) {
|
||||||
//初始化后续流程数据 设计阶段 装修阶段 开业运营方案 首批订货清单
|
//初始化后续流程数据 设计阶段 装修阶段 开业运营方案 首批订货清单
|
||||||
@@ -201,17 +200,17 @@ public class PreparationServiceImpl implements PreparationService {
|
|||||||
ShopStageInfoDO data1 = shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_9.getShopSubStage());
|
ShopStageInfoDO data1 = shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_9.getShopSubStage());
|
||||||
data1.setShopSubStageStatus(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_90.getShopSubStageStatus());
|
data1.setShopSubStageStatus(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_90.getShopSubStageStatus());
|
||||||
list.add(data1);
|
list.add(data1);
|
||||||
ShopStageInfoDO data2 = shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_11.getShopSubStage());
|
// ShopStageInfoDO data2 = shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_11.getShopSubStage());
|
||||||
data2.setShopSubStageStatus(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_110.getShopSubStageStatus());
|
// data2.setShopSubStageStatus(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_110.getShopSubStageStatus());
|
||||||
list.add(data2);
|
// list.add(data2);
|
||||||
//初始化xfsg_acceptance_info表
|
//初始化xfsg_acceptance_info表
|
||||||
AcceptanceInfoDO acceptanceInfoDO1 = acceptanceInfoDAO.selectByShopId(shopId);
|
// AcceptanceInfoDO acceptanceInfoDO1 = acceptanceInfoDAO.selectByShopId(shopId);
|
||||||
AcceptanceInfoDO acceptanceInfoDO = new AcceptanceInfoDO();
|
// AcceptanceInfoDO acceptanceInfoDO = new AcceptanceInfoDO();
|
||||||
acceptanceInfoDO.setShopId(shopId);
|
// acceptanceInfoDO.setShopId(shopId);
|
||||||
acceptanceInfoDO.setCreateTime(new Date());
|
// acceptanceInfoDO.setCreateTime(new Date());
|
||||||
if(Objects.isNull(acceptanceInfoDO1)) {
|
// if(Objects.isNull(acceptanceInfoDO1)) {
|
||||||
acceptanceInfoDAO.insertSelectiveAcceptanceInfo(acceptanceInfoDO);
|
// acceptanceInfoDAO.insertSelectiveAcceptanceInfo(acceptanceInfoDO);
|
||||||
}
|
// }
|
||||||
ShopStageInfoDO data3 = shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_14.getShopSubStage());
|
ShopStageInfoDO data3 = shopStageInfoDOMap.get(ShopSubStageEnum.SHOP_STAGE_14.getShopSubStage());
|
||||||
data3.setShopSubStageStatus(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_140.getShopSubStageStatus());
|
data3.setShopSubStageStatus(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_140.getShopSubStageStatus());
|
||||||
list.add(data3);
|
list.add(data3);
|
||||||
|
|||||||
@@ -167,6 +167,8 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
|
|||||||
lineInfoMapper.insertOrUpdate(lineInfoDO);
|
lineInfoMapper.insertOrUpdate(lineInfoDO);
|
||||||
//todo 提交之后先直接到已签约 正常是待审核
|
//todo 提交之后先直接到已签约 正常是待审核
|
||||||
shopStageInfoDAO.updateShopStageInfo(request.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_84);
|
shopStageInfoDAO.updateShopStageInfo(request.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_84);
|
||||||
|
//如果加盟合同完成 开始设计阶段与验收阶段
|
||||||
|
preparationService.contractAndBuildStoreCompletion(request.getShopId());
|
||||||
return new ResponseResult(200000,"提交成功");
|
return new ResponseResult(200000,"提交成功");
|
||||||
} else {
|
} else {
|
||||||
throw new ServiceException(ErrorCodeEnum.DUPLICATE_SUBMISSION);
|
throw new ServiceException(ErrorCodeEnum.DUPLICATE_SUBMISSION);
|
||||||
|
|||||||
Reference in New Issue
Block a user