| | |
| | | //单号 |
| | | 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())&&allocationUpdateCond.getEscalationUnitId().toString().length()==6) { |
| | | if(Objects.nonNull(allocationUpdateCond.getEscalationUnitId())&& escalationType(allocationUpdateCond.getEscalationUnitId())) { |
| | | allocation.setEscalationType(AllocationEscalationTypeEnum.CHECK.getValue()); |
| | | } |
| | | if(NEW_BUILT.equals(allocationUpdateCond.getState())) { |
| | |
| | | HashMap<String, Object> typeMap = new HashMap<>(); |
| | | List<Allocation> allocations1 = polluteTypeMap.get(polluteType); |
| | | QueryWrapper<SysDictData> sysDictDataQueryWrapper = new QueryWrapper<>(); |
| | | sysDictDataQueryWrapper.eq("dict_type_id",31); |
| | | sysDictDataQueryWrapper.eq("dict_type_id",32); |
| | | sysDictDataQueryWrapper.eq("dataKey",polluteType); |
| | | SysDictData sysDictData = sysDictDataMapper.selectOne(sysDictDataQueryWrapper); |
| | | typeMap.put("name",sysDictData.getDataValue()); |
| | |
| | | } |
| | | return 1; |
| | | } |
| | | private boolean escalationType(Integer id){ |
| | | boolean f = false; |
| | | String code = responsibilityUnitMapper.selectAreaCode(id); |
| | | if(code.length() == 6){ |
| | | return true; |
| | | } |
| | | return f; |
| | | } |
| | | } |