| | |
| | | import com.moral.api.pojo.query.PageCond; |
| | | import com.moral.api.pojo.query.allocation.*; |
| | | import com.moral.api.pojo.query.allocationextension.AllocationExtensionAddCond; |
| | | import com.moral.api.pojo.vo.approvetable.ApproveTableListVo; |
| | | import com.moral.api.pojo.vo.user.QxUser; |
| | | import com.moral.api.service.AllocationExtensionService; |
| | | import com.moral.api.service.ApproveTableService; |
| | |
| | | @Autowired |
| | | private AllocationMapper allocationMapper; |
| | | @Autowired |
| | | private ApproveTableMapper approveTableMapper; |
| | | @Autowired |
| | | private SysAreaService sysAreaService; |
| | | @Autowired |
| | | private ApproveTableService approveTableService; |
| | | @Autowired |
| | | private FileTableService fileTableService; |
| | |
| | | i = Integer.parseInt(o.toString()) + 1; |
| | | } |
| | | //单号 |
| | | String allocationNum = "JBD" + dateString + String.format("%04d", i); |
| | | String allocationNum = "JBD-" + dateString + String.format("%04d", i); |
| | | allocation.setAllocationNum(allocationNum); |
| | | if(Objects.nonNull(allocationCond.getEscalationUnitId())&&allocationCond.getEscalationUnitId().toString().length()==6) { |
| | | allocation.setEscalationType(AllocationEscalationTypeEnum.CHECK.getValue()); |
| | |
| | | endTime = DateUtils.getCurDateTime(); |
| | | if (s.equals("-1")){ |
| | | //当前时间的 |
| | | |
| | | startTime = DateUtils.getDateStringOfMon(Integer.parseInt(s), DateUtils.yyyy_MM_dd_HH_mm_ss_EN); |
| | | } |
| | | if (s.equals("-2")){ |
| | |
| | | int complete=0; |
| | | int unComplete=0; |
| | | for (Allocation allocation : allocations) { |
| | | String state = allocation.getState(); |
| | | String state = allocation.getState()+""; |
| | | if (state.equals("40")||state.equals("50")){ |
| | | complete++; |
| | | }else if(state.equals("10")||state.equals("20") ||state.equals("30")) { |
| | |
| | | |
| | | AllocationUnitViewDto allocationUnitViewDto = new AllocationUnitViewDto(); |
| | | List<Allocation> allocations1 = unitMap.get(integer); |
| | | |
| | | //加分 |
| | | int marks=0; |
| | | //减分 |
| | |
| | | |
| | | Date dateOfDay = DateUtils.getDateOfDay(allocation.getEscalationTime(), allocation.getChangeDay()); |
| | | Date date = new Date(); |
| | | String state = allocation.getState(); |
| | | String state = allocation.getState()+""; |
| | | boolean timeBefor = DateUtils.isTimeBefor(date, dateOfDay); |
| | | if (timeBefor && !state.equals("40") && !state.equals("50")){ |
| | | //逾期次数 |
| | |
| | | allocationExt.setFileBaseList(fileTableService.list(id,FileTableEnum.ALLOCATION_FOUNDATION.value)); |
| | | allocationExt.setFileChangeList(fileTableService.list(id,FileTableEnum.ALLOCATION_RECTIFICATION.value)); |
| | | allocationExt.setFileApproveList(fileTableService.list(id,FileTableEnum.ALLOCATION_APPROVE.value)); |
| | | allocationExt.setApproveList(approveTableService.listAll(id,FileTableEnum.ALLOCATION_FOUNDATION.value)); |
| | | allocationExt.setApproveList(approveTableService.listAll(id, FileTableEnum.ALLOCATION_FOUNDATION.value)); |
| | | return allocationExt; |
| | | } |
| | | |
| | |
| | | } |
| | | approveTable.setApproveModule(FileTableEnum.ALLOCATION_FOUNDATION.value); |
| | | approveTableService.saveResult(approveTable); |
| | | fileTableService.upDateResult(checkCond.getFileApproveList(),allocation.getAllocationId(), FileTableEnum.ALLOCATION_FOUNDATION.value); |
| | | fileTableService.upDateResult(checkCond.getFileApproveList(),checkCond.getAllocationId(), FileTableEnum.ALLOCATION_FOUNDATION.value); |
| | | } |
| | | |
| | | @Override |
| | |
| | | if( !AllocationApproveEnum.UNDER_RECTIFICATION.value.equals(allocationExt.getState())) { |
| | | type = true; |
| | | } |
| | | if(!ChangeEnum.DEADLINE.value.equals(allocationExt.getState())){ |
| | | if(!ChangeEnum.DEADLINE.value.equals(allocationExt.getChangeType())){ |
| | | type = true; |
| | | } |
| | | if(type){ |