|  |  | 
 |  |  |     private ResponsibilityUnitService responsibilityUnitService; | 
 |  |  |     @Autowired | 
 |  |  |     private SysDictTypeService sysDictTypeService; | 
 |  |  |     @Autowired | 
 |  |  |     private UserService userService; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据字典类型获取字典数据 | 
 |  |  | 
 |  |  |         //单号 | 
 |  |  |         String allocationNum = "JBD-" + dateString + String.format("%04d", i); | 
 |  |  |         allocation.setAllocationNum(allocationNum); | 
 |  |  |         if(Objects.nonNull(allocationCond.getEscalationUnitId())&& escalationType(allocationCond.getEscalationUnitId())) { | 
 |  |  |         if(Objects.nonNull(allocationCond.getEscalationUnitId())&& !allocationCond.getEscalationUnitId().equals(allocationCond.getUnitId()) && escalationType(allocationCond.getEscalationUnitId())) { | 
 |  |  |             allocation.setEscalationType(AllocationEscalationTypeEnum.CHECK.getValue()); | 
 |  |  |         } | 
 |  |  |         if(NEW_BUILT.equals(allocationCond.getState())) { | 
 |  |  | 
 |  |  |         } | 
 |  |  |         //获取新建图片 | 
 |  |  |         allocationMapper.insert(allocation); | 
 |  |  |         //推送数据 | 
 |  |  |         userService.pushOneUser(allocation); | 
 |  |  |         redisTemplate.opsForValue().set(RedisConstants.JBD_DATA,i); | 
 |  |  |         if(NEW_BUILT.equals(allocationCond.getState())) { | 
 |  |  |         if(NEW_BUILT.equals(allocationCond.getState())||AllocationApproveEnum.UNDER_RECTIFICATION.value.equals(allocationCond.getState())) { | 
 |  |  |             //添加流程数据 | 
 |  |  |             ApproveTable approveTable = new ApproveTable(); | 
 |  |  |             approveTable.setRelationId(allocation.getAllocationId()); | 
 |  |  | 
 |  |  |         allocation.setState(changeCond.getState()); | 
 |  |  |         allocation.setChangeTime(new Date()); | 
 |  |  |         this.updateById(allocation); | 
 |  |  |         //推送数据 | 
 |  |  |         Allocation allocation1 = this.getById(changeCond.getAllocationId()); | 
 |  |  |         userService.pushOneUser(allocation1); | 
 |  |  |         //添加流程数据 | 
 |  |  |         ApproveTable approveTable = new ApproveTable(); | 
 |  |  |         approveTable.setRelationId(allocation.getAllocationId()); | 
 |  |  | 
 |  |  |         //添加流程数据 | 
 |  |  |         ApproveTable approveTable = new ApproveTable(); | 
 |  |  |         approveTable.setRelationId(allocation.getAllocationId()); | 
 |  |  |         approveTable.setState(NEW_BUILT); | 
 |  |  |         approveTable.setApproveModule(FileTableEnum.ALLOCATION_FOUNDATION.value); | 
 |  |  |        /* approveTable.setState(NEW_BUILT); | 
 |  |  |         approveTable.setStateName("新建"); | 
 |  |  |         approveTableService.saveResult(approveTable); | 
 |  |  |         approveTableService.saveResult(approveTable);*/ | 
 |  |  |         approveTable.setState(AllocationApproveEnum.UNDER_RECTIFICATION.value); | 
 |  |  |         approveTable.setStateName(AllocationApproveEnum.UNDER_RECTIFICATION.name); | 
 |  |  |         approveTableService.saveResult(approveTable); |