阶段初始化
This commit is contained in:
@@ -28,6 +28,8 @@ public enum ShopSubStageEnum {
|
||||
SHOP_STAGE_13(ShopStageEnum.SHOP_STAGE_2, 130, "视觉验收", 32),
|
||||
SHOP_STAGE_14(ShopStageEnum.SHOP_STAGE_2, 140, "开业运营方案", 23),
|
||||
SHOP_STAGE_15(ShopStageEnum.SHOP_STAGE_2, 150, "首批订货清单", 20),
|
||||
SHOP_STAGE_16(ShopStageEnum.SHOP_STAGE_3, 160, "开业验收", null),
|
||||
SHOP_STAGE_17(ShopStageEnum.SHOP_STAGE_4, 170, "新店开业", null),
|
||||
;
|
||||
|
||||
//阶段
|
||||
|
||||
@@ -95,6 +95,12 @@ public enum ShopSubStageStatusEnum {
|
||||
SHOP_SUB_STAGE_STATUS_151(ShopSubStageEnum.SHOP_STAGE_15, 1510, "已完成", Boolean.TRUE),
|
||||
|
||||
|
||||
SHOP_SUB_STAGE_STATUS_160(ShopSubStageEnum.SHOP_STAGE_16, 1600, "验收中", Boolean.FALSE),
|
||||
SHOP_SUB_STAGE_STATUS_161(ShopSubStageEnum.SHOP_STAGE_16, 1610, "已完成", Boolean.FALSE),
|
||||
|
||||
SHOP_SUB_STAGE_STATUS_170(ShopSubStageEnum.SHOP_STAGE_17, 1700, "试运营中", Boolean.FALSE),
|
||||
SHOP_SUB_STAGE_STATUS_171(ShopSubStageEnum.SHOP_STAGE_17, 1710, "已完成", Boolean.FALSE),
|
||||
|
||||
;
|
||||
|
||||
private ShopSubStageEnum shopSubStageEnum;
|
||||
|
||||
@@ -64,14 +64,8 @@
|
||||
from
|
||||
xfsg_shop_stage_info
|
||||
where
|
||||
shop_id = #{shopId} and deleted = 0
|
||||
and
|
||||
(( shop_sub_stage = 60 AND shop_sub_stage_status = 610 )
|
||||
OR ( shop_sub_stage = 40 AND shop_sub_stage_status = 430 )
|
||||
OR ( shop_sub_stage = 120 AND shop_sub_stage_status = 1230 )
|
||||
OR ( shop_sub_stage = 130 AND shop_sub_stage_status = 1320 )
|
||||
OR ( shop_sub_stage = 140 AND shop_sub_stage_status = 1410 )
|
||||
OR ( shop_sub_stage = 150 AND shop_sub_stage_status = 1510 ))
|
||||
shop_id = #{shopId} and deleted = 0 and is_terminated = 1
|
||||
and shop_sub_stage in (60,40,120,130,140,150)
|
||||
</select>
|
||||
|
||||
<update id="updateShopStageInfo">
|
||||
|
||||
@@ -215,6 +215,7 @@ public class PreparationServiceImpl implements PreparationService {
|
||||
openAcceptanceInfoDO.setAcceptanceStatus(CommonConstants.ZERO);
|
||||
openAcceptanceInfoDAO.insertSelective(openAcceptanceInfoDO);
|
||||
}
|
||||
shopStageInfoDAO.updateShopStageInfo(shopId, ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_160);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user