feat:修改运营顾问

This commit is contained in:
suzhuhong
2026-02-06 16:04:40 +08:00
parent ef2e5ce17f
commit 9f747f8185
2 changed files with 5 additions and 4 deletions

View File

@@ -48,6 +48,7 @@ import java.util.stream.Stream;
import static com.cool.store.enums.ErrorCodeEnum.*;
import static com.cool.store.enums.UserRoleEnum.*;
import static com.cool.store.enums.WorkflowSubStageStatusEnum.*;
import static com.cool.store.enums.point.ShopSubStageEnum.SHOP_STAGE_15;
import static com.cool.store.enums.point.ShopSubStageEnum.SHOP_STAGE_8;
/**
@@ -498,9 +499,9 @@ public class ShopServiceImpl implements ShopService {
throw new ServiceException(PARAMS_VALIDATE_ERROR);
}
log.info("updateOperationsConsultant shopId:{},operationsConsultant:{}",shopId,operationsConsultant);
ShopStageInfoDO shopSubStageInfo = shopStageInfoDAO.getShopSubStageInfo(shopId, SHOP_STAGE_8);
//缴费阶段未完成 不能分配运营顾问
if (!ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_84.getShopSubStageStatus().equals(shopSubStageInfo.getShopSubStageStatus())){
ShopStageInfoDO shopSubStageInfo = shopStageInfoDAO.getShopSubStageInfo(shopId, SHOP_STAGE_15);
//分配运营顾问之后 可以修改 也就是阶段是建店开始之后就可以修改
if (!ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_00.getShopSubStageStatus().equals(shopSubStageInfo.getShopSubStageStatus())){
throw new ServiceException(CONTRACT_STAGE_NO_COMPLETE);
}
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(shopId);