| | |
| | | import com.ruoyi.system.service.IDepartmentSyncService; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 部门同步定时任务 |
| | |
| | | return orderClassDataService.getDispatchOrderClass(); |
| | | } |
| | | |
| | | private List<Map<String, Object>> getDepartAddress() { |
| | | return departmentSyncDataService.getAddressList(); |
| | | } |
| | | /** |
| | | * 同步分公司和部门数据 |
| | | * |
| | |
| | | { |
| | | log.info("==========开始执行部门同步定时任务=========="); |
| | | |
| | | AjaxResult result = departmentSyncService.syncBranchDepartments(this.getDepartment(), this.getServiceOrdCode(),this.getDispatchOrdCode()); |
| | | List<Map<String, Object>> addressList = this.getDepartAddress(); |
| | | AjaxResult result = departmentSyncService.syncBranchDepartments(this.getDepartment(), this.getServiceOrdCode(),this.getDispatchOrdCode(),addressList); |
| | | |
| | | departmentSyncService.syncTransportDepartments(this.getTransportDept()); |
| | | departmentSyncService.syncTransportDepartments(this.getTransportDept(),addressList); |
| | | departmentSyncService.syncDeptAddress(addressList); |
| | | |
| | | if (result.get("code").equals(200)) |
| | | { |