| | |
| | | //单号 |
| | | String allocationNum = "JBD-" + dateString + String.format("%04d", i); |
| | | allocation.setAllocationNum(allocationNum); |
| | | if(Objects.nonNull(allocationCond.getEscalationUnitId())&&allocationCond.getEscalationUnitId().toString().length()==6) { |
| | | if(Objects.nonNull(allocationCond.getEscalationUnitId())&& escalationType(allocationCond.getEscalationUnitId())) { |
| | | allocation.setEscalationType(AllocationEscalationTypeEnum.CHECK.getValue()); |
| | | } |
| | | if(NEW_BUILT.equals(allocationCond.getState())) { |
| | |
| | | } |
| | | //获取用户信息 |
| | | Allocation allocation = allocationUpdateCond.convert(); |
| | | if(Objects.nonNull(allocationUpdateCond.getEscalationUnitId())&& escalationType(allocationUpdateCond.getEscalationUnitId())) { |
| | | allocation.setEscalationType(AllocationEscalationTypeEnum.CHECK.getValue()); |
| | | } |
| | | if(Objects.nonNull(allocationUpdateCond.getEscalationUnitId())&&allocationUpdateCond.getEscalationUnitId().toString().length()==6) { |
| | | allocation.setEscalationType(AllocationEscalationTypeEnum.CHECK.getValue()); |
| | | } |
| | |
| | | } |
| | | return 1; |
| | | } |
| | | private boolean escalationType(Integer id){ |
| | | boolean f = false; |
| | | String code = responsibilityUnitMapper.selectAreaCode(id); |
| | | if(code.length() == 6){ |
| | | return true; |
| | | } |
| | | return f; |
| | | } |
| | | } |