培训状态变更
This commit is contained in:
@@ -10,6 +10,8 @@ import com.cool.store.dto.StaffExamInfoDTO;
|
||||
import com.cool.store.dto.openPreparation.PlanLineDTO;
|
||||
import com.cool.store.entity.*;
|
||||
import com.cool.store.enums.*;
|
||||
import com.cool.store.enums.point.ShopSubStageEnum;
|
||||
import com.cool.store.enums.point.ShopSubStageStatusEnum;
|
||||
import com.cool.store.enums.video.ResourceStatusEnum;
|
||||
import com.cool.store.enums.video.UploadTypeEnum;
|
||||
import com.cool.store.exception.ServiceException;
|
||||
@@ -85,6 +87,9 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
|
||||
@Resource
|
||||
private CommonService commonService;
|
||||
|
||||
@Resource
|
||||
private ShopStageInfoDAO shopStageInfoDAO;
|
||||
|
||||
@Override
|
||||
public PageInfo<EmployeeTrainingVO> employeeTrainingList(String userId, EmployeeTrainingRequest request) {
|
||||
List<String> authRegionIdList = new ArrayList<>();
|
||||
@@ -208,7 +213,6 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
|
||||
employeeTrainingVO.setAssignFlag(employeeTrainingDO.getAssignFlag());
|
||||
employeeTrainingVO.setShopId(employeeTrainingDO.getShopId());
|
||||
}
|
||||
|
||||
return employeeTrainingVO;
|
||||
}
|
||||
|
||||
@@ -628,9 +632,16 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
|
||||
employeeTrainingDAO.updateByPrimaryKeySelective(employeeTrainingDO);
|
||||
|
||||
//查询员工是否全部培训完成
|
||||
Integer unCompleteNum =employeeTrainingDAO.unCompleteNum();
|
||||
if(unCompleteNum != null && unCompleteNum == 0){
|
||||
Integer unCompleteNum = employeeTrainingDAO.unCompleteNum();
|
||||
if (unCompleteNum != null && unCompleteNum == 0) {
|
||||
// 培训全部结束
|
||||
|
||||
//登记人员,培训状态由未开始到培训中
|
||||
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);
|
||||
}
|
||||
|
||||
Map<String, String> messageMap = new HashMap<>();
|
||||
messageMap.put("storeName", shopInfoDO.getShopName());
|
||||
LineInfoDO lineInfoDO = lineInfoDAO.getLineInfo(tempUserDetailDO.getLineId());
|
||||
|
||||
@@ -127,6 +127,12 @@ public class TempUserDetailServiceImpl implements TempUserDetailService {
|
||||
tempUserDetailDO.setSource("create");
|
||||
tempUserDetailDAO.insertSelective(tempUserDetailDO);
|
||||
|
||||
//登记人员,培训状态由未开始到培训中
|
||||
ShopStageInfoDO shopStageInfoDO = shopStageInfoDAO.getShopSubStageInfo(tempUserDetailDO.getShopId(), ShopSubStageEnum.SHOP_STAGE_6);
|
||||
if(shopStageInfoDO != null && shopStageInfoDO.getShopSubStageStatus().equals(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_00.getShopSubStageStatus())){
|
||||
shopStageInfoDAO.updateShopStageInfo(tempUserDetailDO.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_60);
|
||||
}
|
||||
|
||||
List<String> userIdList = enterpriseUserRoleDao.getUserIdsByRoleIdList(Collections.singletonList(UserRoleEnum.TRAINER.getCode()));
|
||||
//
|
||||
userIdList = enterpriseUserDAO.getUserIdListByRegionId(shopInfoDO.getRegionId(), userIdList);
|
||||
|
||||
Reference in New Issue
Block a user