|
@@ -330,28 +330,22 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
private void addPrepationNums(NoticeNumberVO noticeNumberVO,PreparationDTO preparationDTO){
|
|
|
List<PreparationVO> preparationVOS = preparationMapper.getCountByUserId(preparationDTO);
|
|
|
for (PreparationVO vo : preparationVOS){
|
|
|
- if (vo.getStatus() == 1){
|
|
|
- // 待修
|
|
|
+ if (vo.getStatus() == PreparationStatusEnum.NOT_ALLOCATED.getValue()){
|
|
|
+ // 待审核
|
|
|
noticeNumberVO.setNotDealNum(vo.getCounts()==null?initNum:vo.getCounts());
|
|
|
- }else if (vo.getStatus() == 2){
|
|
|
- // 维修中
|
|
|
+ }else if (vo.getStatus() == PreparationStatusEnum.VERIFY_SUCCESS.getValue()){
|
|
|
+ // 待接单
|
|
|
noticeNumberVO.setYesDealNum(vo.getCounts()==null?initNum:vo.getCounts());
|
|
|
}
|
|
|
- else if (vo.getStatus() == 3){
|
|
|
- // 已完成
|
|
|
+ else if (vo.getStatus() == PreparationStatusEnum.WAIT_DISPATCH.getValue()){
|
|
|
+ // 待分配
|
|
|
noticeNumberVO.setFinishNum(vo.getCounts() == null ? initNum : vo.getCounts());
|
|
|
- //noticeNumberVO.setNotAcceptancedNum(vo.getCounts()==null?initNum:vo.getCounts());
|
|
|
}
|
|
|
- /*else if (vo.getStatus()==4){
|
|
|
- //驳回
|
|
|
+ else if (vo.getStatus() == PreparationStatusEnum.PROCESSING.getValue()){
|
|
|
+ // 执行中
|
|
|
noticeNumberVO.setReturnNum(vo.getCounts()==null?initNum:vo.getCounts());
|
|
|
}
|
|
|
- else if (vo.getStatus()==5){
|
|
|
- //已完成
|
|
|
- noticeNumberVO.setFinishNum(vo.getCounts()==null?initNum:vo.getCounts());
|
|
|
- }*/
|
|
|
}
|
|
|
- noticeNumberVO.setReturnNum(noticeNumberVO.getNotDealNum().add(noticeNumberVO.getYesDealNum()).add(noticeNumberVO.getFinishNum()));
|
|
|
}
|
|
|
@Override
|
|
|
public NoticeNumberVO getNoticeNumberVO() {
|
|
@@ -481,20 +475,6 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
noticeNumberVO.setRoleFlag(4);
|
|
|
noticeNumberVO=addStoreNums(noticeNumberVO,inStoreFormDTO,outStoreFormDTO,storeCheckJobDTO);
|
|
|
}
|
|
|
- /*else if (sb.toString().contains(SysRoleCodeEnum.PREPARATION_MANAGER.name())){
|
|
|
- //筹建主管-- dispatchUserId
|
|
|
- noticeNumberVO.setRoleFlag(8);
|
|
|
- PreparationDTO preparationDTO = new PreparationDTO();
|
|
|
- preparationDTO.setDispatchUserId(userInfo.getUserId());
|
|
|
- addPrepationNums(noticeNumberVO,preparationDTO);
|
|
|
- }
|
|
|
- else if (sb.toString().contains(SysRoleCodeEnum.PREPARATION_USER.name())){
|
|
|
- //筹建执行人-- repairUserId
|
|
|
- noticeNumberVO.setRoleFlag(9);
|
|
|
- PreparationDTO preparationDTO = new PreparationDTO();
|
|
|
- preparationDTO.setRepairUserId(userInfo.getUserId());
|
|
|
- addPrepationNums(noticeNumberVO,preparationDTO);
|
|
|
- }*/
|
|
|
}
|
|
|
// 筹建统计数据,不区分角色
|
|
|
PreparationDTO preparationDTO = new PreparationDTO();
|