| | |
| | | import cn.huge.module.client.api.impl.UtilsClientImpl; |
| | | import cn.huge.module.constant.BaseConsts; |
| | | import cn.huge.module.cust.constant.UserBaseConsts; |
| | | import cn.huge.module.cust.dto.CtUnitDTO; |
| | | import cn.huge.module.disp.constant.DispBaseConsts; |
| | | import cn.huge.module.disp.constant.DispBaseConstsEnum; |
| | | import cn.huge.module.disp.dto.CaseDispBaseDTO; |
| | |
| | | |
| | | @Autowired |
| | | private UtilsClientImpl utilsClient; |
| | | @Autowired |
| | | private CustClientImpl custClient; |
| | | |
| | | /** |
| | | * 系统自动调度 |
| | |
| | | caseDisp.setTargetTypeName(DispBaseConstsEnum.TARGET_TYPE_1.getDes()); |
| | | caseDisp.setTargetId(dispCaseBaseDTO.getWantUnitId()); |
| | | caseDisp.setTargetName(dispCaseBaseDTO.getWantUnitName()); |
| | | CtUnitDTO ctUnitDTO = custClient.getUnitById(dispCaseBaseDTO.getWantUnitId()); |
| | | caseDisp.setTargetUnitGrade(ctUnitDTO.getUnitGrade()); |
| | | caseDisp.setTargetUnitType(ctUnitDTO.getUnitType()); |
| | | } |
| | | caseDispService.save(caseDisp); |
| | | return caseDisp; |
| | |
| | | caseDisp.setTargetTypeName(DispBaseConstsEnum.TARGET_TYPE_1.getDes()); |
| | | caseDisp.setTargetId(zzzxUnitDTO.getUnitId()); |
| | | caseDisp.setTargetName(zzzxUnitDTO.getUnitName()); |
| | | caseDisp.setTargetUnitGrade(zzzxUnitDTO.getUnitGrade()); |
| | | caseDisp.setTargetUnitType(zzzxUnitDTO.getUnitType()); |
| | | } |
| | | caseDispService.save(caseDisp); |
| | | return caseDisp; |