|
@@ -431,6 +431,33 @@ public class WorkOrderManageController {
|
|
|
return new AjaxMessage<>(ResultStatus.ERROR);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/selectOrderUserByOrgId")
|
|
|
+ @ApiOperation(value = "查询派单时的用户信息")
|
|
|
+ public AjaxMessage<Object> selectOrderUserByOrgId(
|
|
|
+ @ApiParam(value = "机构ID", required = true) @RequestParam(required = true) String ids){
|
|
|
+ List<Map<String,Object>> result = new ArrayList<>();
|
|
|
+ AjaxMessage<List<UserEntity>> listAjaxMessage = userCenterClient.findUserIdsByOrgId(ids);
|
|
|
+ for(UserEntity userEntity : listAjaxMessage.getData()){
|
|
|
+ try {
|
|
|
+ Map<String, Object> orderStatusMap = workOrderManageService.selectOrderUserStatus(userEntity.getId().toString());
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ map.put("id", userEntity.getId());
|
|
|
+ map.put("userName", userEntity.getUsername());
|
|
|
+ map.put("phone", userEntity.getPhone());
|
|
|
+ map.put("deptName", userEntity.getDeptOrgName());
|
|
|
+ if (orderStatusMap != null) {
|
|
|
+ map.put("status", orderStatusMap.get("S").toString());
|
|
|
+ map.put("address", orderStatusMap.get("X") + "," + orderStatusMap.get("Y"));
|
|
|
+ }
|
|
|
+ map.put("distance", "");
|
|
|
+ result.add(map);
|
|
|
+ }catch (Exception e){
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK,result);
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/delProcInst")
|
|
|
@ApiOperation(value = "终止流程")
|
|
|
public AjaxMessage deleteProcessInstance(
|