| | |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.core.utils.qiyeweixin.QywxUtil; |
| | | import com.doumee.core.utils.qiyeweixin.model.request.QywxSendMsgRequest; |
| | | import com.doumee.core.utils.qiyeweixin.model.request.QywxTextCardMsgRequest; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.web.dto.CloseDTO; |
| | |
| | | //处理人员类信息 |
| | | this.dealNoticeData(workorder); |
| | | //处理SHE事件状态 |
| | | workorder.setStatus(Constants.equalsInteger(workorder.getType(),Constants.ZERO)?Constants.workOrderStatus.close:Constants.workOrderStatus.waitConfirm); |
| | | Constants.WorkOrderStatus workOrderStatus = Constants.equalsInteger(workorder.getType(),Constants.ZERO)?Constants.WorkOrderStatus.close:Constants.WorkOrderStatus.waitConfirm; |
| | | workorder.setStatus(workOrderStatus.getKey()); |
| | | workorderMapper.insert(workorder); |
| | | //存储DCA 问题记录表 |
| | | this.saveProblemData(workorder); |
| | | //存储附件信息 |
| | | this.saveMutiFile(workorder); |
| | | //存储日志 |
| | | this.dealLogData(workorder); |
| | | //TODO 发送企微通知 |
| | | this.dealLogData(workorder,workOrderStatus); |
| | | // 发送企微通知 |
| | | QywxSendMsgRequest qywxSendMsgRequest = new QywxSendMsgRequest(); |
| | | qywxSendMsgRequest.setTouser(workorder.getQwnoticeMemberIds().replace(",","|")); |
| | | qywxSendMsgRequest.setMsgtype("text"); |
| | | qywxSendMsgRequest.setAgentid(null); |
| | | QywxTextCardMsgRequest textCard = new QywxTextCardMsgRequest(); |
| | | textCard.setTitle(workOrderStatus.getLogTitle()); |
| | | |
| | | qywxSendMsgRequest.setTextcard(textCard); |
| | | QywxUtil.sendMsg(systemDictDataBiz.queryByCode(Constants.QYWX,Constants.QYWX_TOKEN).getCode(), |
| | | qywxSendMsgRequest); |
| | | |
| | | return workorder.getId(); |
| | | } |
| | | |
| | | |
| | | public void dealLogData(Workorder workorder){ |
| | | //处理上报日志 DCA工单 日志存储至子业务 不存在于父级 |
| | | if(!Constants.equalsInteger(workorder.getType(),Constants.ONE)){ |
| | | String logTitle = "工单提报"; |
| | | if(!Constants.equalsInteger(workorder.getType(),Constants.ZERO)){ |
| | | logTitle = Constants.equalsInteger(workorder.getType(),Constants.ONE)?"跌绊滑风险提报":"DCA上报"; |
| | | public void sendQwMsg(Workorder workorder){ |
| | | QywxSendMsgRequest qywxSendMsgRequest = new QywxSendMsgRequest(); |
| | | QywxTextCardMsgRequest textCard = new QywxTextCardMsgRequest(); |
| | | qywxSendMsgRequest.setMsgtype("text"); |
| | | qywxSendMsgRequest.setAgentid(null); |
| | | textCard.setBtntxt("详情"); |
| | | //新提交 |
| | | if(Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.waitConfirm.getKey())){ |
| | | qywxSendMsgRequest.setTouser(workorder.getQwnoticeMemberIds().replace(",","|")); |
| | | textCard.setUrl(null); |
| | | //SHE 提交 |
| | | if(Constants.equalsInteger(workorder.getType(),Constants.ZERO)){ |
| | | Category category = categoryMapper.selectById(workorder.getType()); |
| | | textCard.setTitle("【SHE事件上报】"); |
| | | String message = ""; |
| | | if(Constants.equalsInteger(workorder.getMemberType(),Constants.ZERO)){ |
| | | message = "本人"; |
| | | }else { |
| | | message = Constants.equalsInteger(workorder.getMemberType(),Constants.ONE)?"同事":"供应商"; |
| | | } |
| | | message = message + "-" + workorder.getMemberNames() + " " + DateUtil.formatDate(new Date(),"yyyy-MM-dd HH:mm") + workorder.getLocationName() + category.getName(); |
| | | textCard.setDescription(" <div class=\"normal\">"+message+"</div>"); |
| | | }else{ |
| | | |
| | | } |
| | | this.saveLog(null,workorder,Constants.ZERO,workorder.getMemberId(),logTitle,null); |
| | | } |
| | | qywxSendMsgRequest.setTextcard(textCard); |
| | | QywxUtil.sendMsg(systemDictDataBiz.queryByCode(Constants.QYWX,Constants.QYWX_TOKEN).getCode(), |
| | | qywxSendMsgRequest); |
| | | } |
| | | |
| | | |
| | | // public QywxTextCardMsgRequest dealMessageContent(Workorder workorder,Integer type){ |
| | | // QywxTextCardMsgRequest textCard = new QywxTextCardMsgRequest(); |
| | | // String message = ""; |
| | | // if(Constants.equalsInteger(workorder.getType(),Constants.ZERO)){ |
| | | // Category category = categoryMapper.selectById(workorder.getType()); |
| | | // textCard.setTitle("【SHE事件上报】"); |
| | | // if(Constants.equalsInteger(workorder.getMemberType(),Constants.ZERO)){ |
| | | // message = "本人"; |
| | | // }else { |
| | | // message = Constants.equalsInteger(workorder.getMemberType(),Constants.ONE)?"同事":"供应商"; |
| | | // } |
| | | // message = message + "-" + workorder.getMemberNames() + " " + DateUtil.formatDate(new Date(),"yyyy-MM-dd HH:mm") + workorder.getLocationName() + category.getName(); |
| | | // textCard.setDescription(" <div class=\"normal\">"+message+"</div>"); |
| | | // }else{ |
| | | // textCard.setTitle(Constants.equalsInteger(workorder.getType(),Constants.ONE)?"【DCA上报】":"跌绊滑风险上报"); |
| | | // if(Constants.equalsInteger(workorder.getType(),Con)){ |
| | | // |
| | | // } |
| | | // |
| | | // |
| | | // |
| | | // } |
| | | // |
| | | // } |
| | | |
| | | |
| | | |
| | | public void dealLogData(Workorder workorder,Constants.WorkOrderStatus workOrderStatus){ |
| | | if (Constants.equalsInteger(workorder.getType(), Constants.THREE) || Constants.equalsInteger(workorder.getType(), Constants.TWO) ) { |
| | | //处理上报日志 DCA工单 日志存储至子业务 不存在于父级 与跌绊滑 |
| | | String logTitle = Constants.equalsInteger(workorder.getType(), Constants.THREE) ? "跌绊滑风险" : "DCA"; |
| | | this.saveLog(null,workorder,Constants.ZERO,workorder.getMemberId(),workOrderStatus.getLogTitle().replace("{title}",logTitle),null); |
| | | } |
| | | } |
| | | |
| | |
| | | List<Multifile> multifileList = workorder.getMultifileList(); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(multifileList)){ |
| | | for (Multifile multifile:multifileList) { |
| | | multifile.setIsdeleted(Constants.ZERO); |
| | | multifile.setObjId(workorder.getId()); |
| | | multifile.setCreateDate(new Date()); |
| | | multifile.setObjType(Constants.multiFileType.upload); |
| | |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(dcaNoProblemDTOList)){ |
| | | for (DCANoProblemDTO dcaNoProblemDTO:dcaNoProblemDTOList) { |
| | | Category problem = categoryMapper.selectById(dcaNoProblemDTO.getProblemId()); |
| | | Constants.WorkOrderStatus workOrderStatus = Constants.WorkOrderStatus.waitConfirm; |
| | | Workorder dcaWorkOrder = new Workorder(); |
| | | dcaWorkOrder.setCreateDate(new Date()); |
| | | dcaWorkOrder.setEditDate(new Date()); |
| | | dcaWorkOrder.setMemberId(workorder.getMemberId()); |
| | | dcaWorkOrder.setTypeId(dcaNoProblemDTO.getProblemId()); |
| | | dcaWorkOrder.setType(Constants.TWO); |
| | | dcaWorkOrder.setStatus(Constants.ZERO); |
| | | dcaWorkOrder.setStatus(workOrderStatus.getKey()); |
| | | dcaWorkOrder.setIsdeleted(Constants.ZERO); |
| | | dcaWorkOrder.setProblemTitle(problem.getName()); |
| | | dcaWorkOrder.setProblemId(problem.getId()); |
| | |
| | | dcaWorkOrder.setEventInfo(dcaNoProblemDTO.getEventInfo()); |
| | | workorderMapper.insert(dcaWorkOrder); |
| | | //存储日志 |
| | | this.dealLogData(dcaWorkOrder); |
| | | this.dealLogData(dcaWorkOrder,workOrderStatus); |
| | | List<Multifile> multifileList = dcaNoProblemDTO.getMultifileList(); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(multifileList)){ |
| | | for (Multifile multifile:multifileList) { |
| | | multifile.setIsdeleted(Constants.ZERO); |
| | | multifile.setObjId(dcaWorkOrder.getId()); |
| | | multifile.setCreateDate(new Date()); |
| | | multifile.setObjType(Constants.multiFileType.upload); |
| | |
| | | .selectAll(Workorder.class) |
| | | .selectAs(Member::getPhone,Workorder::getMemberPhone) |
| | | .selectAs(Member::getName,Workorder::getMemberName) |
| | | .selectAs(Workorder::getCompanyName,Workorder::getCompanyName) |
| | | .selectAs(Member::getCompanyName,Workorder::getCompanyName) |
| | | .select(" c3.name ",Workorder::getTypeName) |
| | | .select(" c4.name ",Workorder::getProblemName) |
| | | .leftJoin(Member.class,Member::getId,Workorder::getMemberId) |
| | |
| | | if(Objects.nonNull(workorder)){ |
| | | //查询附件信息 |
| | | List<Multifile> multifileList = multifileMapper.selectList(new QueryWrapper<Multifile>().lambda().eq(Multifile::getIsdeleted,Constants.ZERO) |
| | | .eq(Multifile::getObjId,workorder).orderByAsc(Multifile::getId)); |
| | | .eq(Multifile::getObjId,workorder.getId()).orderByAsc(Multifile::getId)); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(multifileList)){ |
| | | String path = systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode() |
| | | +systemDictDataBiz.queryByCode(Constants.FTP,Constants.WORKORDER_FILE_PATH).getCode(); |
| | |
| | | .eq(pageWrap.getModel().getProblemId() != null, Workorder::getProblemId, pageWrap.getModel().getProblemId()) |
| | | .eq(pageWrap.getModel().getProblemInfo() != null, Workorder::getProblemInfo, pageWrap.getModel().getProblemInfo()) |
| | | .eq(pageWrap.getModel().getLocationName() != null, Workorder::getLocationName, pageWrap.getModel().getLocationName()) |
| | | .eq(pageWrap.getModel().getCode() != null, Workorder::getCode, pageWrap.getModel().getCode()) |
| | | .like(pageWrap.getModel().getCode() != null, Workorder::getCode, pageWrap.getModel().getCode()) |
| | | .eq(pageWrap.getModel().getDcaYesNum() != null, Workorder::getDcaYesNum, pageWrap.getModel().getDcaYesNum()) |
| | | .eq(pageWrap.getModel().getDcaNoNum() != null, Workorder::getDcaNoNum, pageWrap.getModel().getDcaNoNum()) |
| | | .eq(pageWrap.getModel().getDcaRecordId() != null, Workorder::getDcaRecordId, pageWrap.getModel().getDcaRecordId()) |
| | | .eq(pageWrap.getModel().getDcaCsIds() != null, Workorder::getDcaCsIds, pageWrap.getModel().getDcaCsIds()) ; |
| | | queryWrapper.orderByDesc(Workorder::getCreateDate); |
| | | if (pageWrap.getModel().getMemberName() != null) { |
| | | queryWrapper.and( ms->ms.like(Member::getName,pageWrap.getModel().getMemberName()) |
| | | .or().like(Member::getPhone,pageWrap.getModel().getMemberName()) ); |
| | | } |
| | | queryWrapper.orderByDesc(Workorder::getCreateDate); |
| | | return PageData.from(workorderMapper.selectJoinPage(page,Workorder.class, queryWrapper)); |
| | | } |
| | | |
| | |
| | | if(Constants.equalsInteger(workorder.getType(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"SHE工单无法进行该操作"); |
| | | } |
| | | if(Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.sheClose)||Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.wtsClose)||Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.close)){ |
| | | if(Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.sheClose.getKey())||Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.wtsClose.getKey())||Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.close.getKey())){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"工单状态已流转"); |
| | | } |
| | | //提交后的 待确认/待初审状态 如果去关闭 只有工单里绑定的SHE人员可以关闭 |
| | | if(Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.waitConfirm)){ |
| | | if(Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.waitConfirm.getKey())){ |
| | | //判断SHE人员内是否有当前登录账号 |
| | | if(workorder.getQwnoticeMemberIds().indexOf(closeDTO.getMember().getQwId())<Constants.ZERO){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对不起,当前工单非您的工单,无法进行处理"); |
| | | } |
| | | workorder.setStatus(Constants.workOrderStatus.sheClose); |
| | | }else if(Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.waitAllocation)){ |
| | | workorder.setStatus(Constants.WorkOrderStatus.sheClose.getKey()); |
| | | }else if(Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.waitAllocation.getKey())){ |
| | | //判断SHE人员内是否有当前登录账号 |
| | | if(workorder.getQwnoticeMemberIds().indexOf(closeDTO.getMember().getQwId())<Constants.ZERO && !workorder.getManagerId().equals(closeDTO.getMember().getQwId())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对不起,当前工单非您的工单,无法进行处理"); |
| | | } |
| | | workorder.setStatus(Constants.workOrderStatus.wtsClose); |
| | | }else if(Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.waitDeal)){ |
| | | workorder.setStatus(Constants.WorkOrderStatus.wtsClose.getKey()); |
| | | }else if(Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.waitDeal.getKey())){ |
| | | //判断SHE人员内是否有当前登录账号 |
| | | if(workorder.getQwnoticeMemberIds().indexOf(closeDTO.getMember().getQwId())<Constants.ZERO && !workorder.getManagerId().equals(closeDTO.getMember().getQwId()) |
| | | && !workorder.getDealerId().equals(closeDTO.getMember().getQwId()) ){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对不起,当前工单非您的工单,无法进行处理"); |
| | | } |
| | | workorder.setStatus(Constants.workOrderStatus.wtsClose); |
| | | workorder.setStatus(Constants.WorkOrderStatus.wtsClose.getKey()); |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"工单状态已流转"); |
| | | } |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"SHE工单无法进行该操作"); |
| | | } |
| | | if(Constants.equalsInteger(passOnDTO.getPassOnType(),Constants.ZERO)){ |
| | | if(!Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.waitConfirm)){ |
| | | if(!Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.waitConfirm.getKey())){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"工单状态已流转"); |
| | | } |
| | | workorder.setManagerId(member.getQwId()); |
| | | workorder.setStatus(Constants.workOrderStatus.waitAllocation); |
| | | workorder.setStatus(Constants.WorkOrderStatus.waitAllocation.getKey()); |
| | | }else{ |
| | | if(!(Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.waitAllocation) |
| | | || Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.waitDeal))){ |
| | | if(!(Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.waitAllocation.getKey()) |
| | | || Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.waitDeal.getKey()))){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"工单状态已流转"); |
| | | } |
| | | workorder.setDealerId(member.getQwId()); |
| | | workorder.setStatus(Constants.workOrderStatus.waitDeal); |
| | | workorder.setStatus(Constants.WorkOrderStatus.waitDeal.getKey()); |
| | | } |
| | | workorder.setEditDate(new Date()); |
| | | workorder.setUrgeDate(DateUtil.afterHoursDate(new Date(),24)); |
| | |
| | | } |
| | | Member urgeUser = new Member(); |
| | | //如果已分配 wts 则是催促wts |
| | | if(Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.waitAllocation)){ |
| | | if(Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.waitAllocation.getKey())){ |
| | | urgeUser = memberMapper.selectOne(new QueryWrapper<Member>().lambda().eq(Member::getIsdeleted,Constants.ZERO).eq(Member::getQwId,workorder.getManagerId()).last("limit 1 ")); |
| | | }else if(Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.waitAllocation)){ |
| | | }else if(Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.waitAllocation.getKey())){ |
| | | urgeUser = memberMapper.selectOne(new QueryWrapper<Member>().lambda().eq(Member::getIsdeleted,Constants.ZERO).eq(Member::getQwId,workorder.getDealerId()).last("limit 1 ")); |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"状态已流转无法进行该操作"); |
| | |
| | | @Override |
| | | public void jobUrge(){ |
| | | List<Workorder> workorderList = workorderMapper.selectList(new QueryWrapper<Workorder>().lambda().eq(Workorder::getIsdeleted,Constants.ZERO) |
| | | .in(Workorder::getStatus,Constants.workOrderStatus.waitAllocation,Constants.workOrderStatus.waitDeal) |
| | | .in(Workorder::getStatus,Constants.WorkOrderStatus.waitAllocation.getKey(),Constants.WorkOrderStatus.waitDeal.getKey()) |
| | | .apply(" urge_time > now() ") |
| | | ); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(workorderList)){ |
| | |
| | | } |
| | | Member urgeUser = new Member(); |
| | | //如果已分配 wts 则是催促wts |
| | | if(Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.waitAllocation)){ |
| | | if(Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.waitAllocation.getKey())){ |
| | | urgeUser = memberMapper.selectOne(new QueryWrapper<Member>().lambda().eq(Member::getIsdeleted,Constants.ZERO).eq(Member::getQwId,workorder.getManagerId()).last("limit 1 ")); |
| | | }else if(Constants.equalsInteger(workorder.getStatus(),Constants.workOrderStatus.waitAllocation)){ |
| | | }else if(Constants.equalsInteger(workorder.getStatus(),Constants.WorkOrderStatus.waitAllocation.getKey())){ |
| | | urgeUser = memberMapper.selectOne(new QueryWrapper<Member>().lambda().eq(Member::getIsdeleted,Constants.ZERO).eq(Member::getQwId,workorder.getDealerId()).last("limit 1 ")); |
| | | }else{ |
| | | return; |
| | |
| | | workOrderDataVO.setTotal(Constants.ZERO); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(dataList)){ |
| | | workOrderDataVO.setTotal(dataList.size()); |
| | | workOrderDataVO.setGcsTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.workOrderStatus.close)).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setSheTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.workOrderStatus.sheClose)).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setWtsTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.workOrderStatus.wtsClose)).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setGcsTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.WorkOrderStatus.close.getKey())).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setSheTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.WorkOrderStatus.sheClose.getKey())).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setWtsTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.WorkOrderStatus.wtsClose.getKey())).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setUnCloseTotal(workOrderDataVO.getTotal() - workOrderDataVO.getSheTotal() - workOrderDataVO.getWtsTotal() - workOrderDataVO.getGcsTotal()); |
| | | } |
| | | workOrderDataVOList.add(workOrderDataVO); |
| | |
| | | workOrderDataVO.setTotal(Constants.ZERO); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(dataList)){ |
| | | workOrderDataVO.setTotal(dataList.size()); |
| | | workOrderDataVO.setGcsTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.workOrderStatus.close)).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setSheTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.workOrderStatus.sheClose)).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setWtsTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.workOrderStatus.wtsClose)).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setGcsTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.WorkOrderStatus.close.getKey())).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setSheTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.WorkOrderStatus.sheClose.getKey())).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setWtsTotal(dataList.stream().filter(j->Constants.equalsInteger(j.getStatus(),Constants.WorkOrderStatus.wtsClose.getKey())).collect(Collectors.toList()).size()); |
| | | workOrderDataVO.setUnCloseTotal(workOrderDataVO.getTotal() - workOrderDataVO.getSheTotal() - workOrderDataVO.getWtsTotal() - workOrderDataVO.getGcsTotal()); |
| | | } |
| | | workOrderDataVOList.add(workOrderDataVO); |