培训状态变更2

This commit is contained in:
bianyadong
2024-05-14 14:41:37 +08:00
parent 28db023514
commit 7d138edaa2
2 changed files with 11 additions and 0 deletions

View File

@@ -90,6 +90,9 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
@Resource
private ShopStageInfoDAO shopStageInfoDAO;
@Resource
private PreparationService preparationService;
@Override
public PageInfo<EmployeeTrainingVO> employeeTrainingList(String userId, EmployeeTrainingRequest request) {
List<String> authRegionIdList = new ArrayList<>();
@@ -640,6 +643,8 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
ShopStageInfoDO shopStageInfoDO = shopStageInfoDAO.getShopSubStageInfo(tempUserDetailDO.getShopId(), ShopSubStageEnum.SHOP_STAGE_6);
if(shopStageInfoDO != null && shopStageInfoDO.getShopSubStageStatus().equals(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_60.getShopSubStageStatus())){
shopStageInfoDAO.updateShopStageInfo(tempUserDetailDO.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_61);
//状态结束
preparationService.whetherToOpenForAcceptance(tempUserDetailDO.getShopId());
}
Map<String, String> messageMap = new HashMap<>();

View File

@@ -13,6 +13,7 @@ import com.cool.store.enums.point.ShopSubStageEnum;
import com.cool.store.enums.point.ShopSubStageStatusEnum;
import com.cool.store.exception.ServiceException;
import com.cool.store.request.TempUserDetailRequest;
import com.cool.store.service.PreparationService;
import com.cool.store.service.TempUserDetailService;
import com.cool.store.service.XfsgEhrService;
import com.cool.store.utils.StringUtil;
@@ -55,6 +56,9 @@ public class TempUserDetailServiceImpl implements TempUserDetailService {
@Autowired
private EnterpriseUserRoleDao enterpriseUserRoleDao;
@Autowired
private PreparationService preparationService;
@Override
public TempUserDetailListVO userList(Long shopId) {
List<TempUserDetailDO> tempUserDetailDOList = tempUserDetailDAO.userList(shopId);
@@ -188,6 +192,8 @@ public class TempUserDetailServiceImpl implements TempUserDetailService {
if(shopStageInfoDO != null){
shopStageInfoDO.setShopSubStageStatus(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_51.getShopSubStageStatus());
shopStageInfoDAO.batchUpdate(Collections.singletonList(shopStageInfoDO));
//状态结束
preparationService.whetherToOpenForAcceptance(shopId);
}
}