|
@@ -40,6 +40,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.lang.reflect.Array;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -379,6 +380,29 @@ public class WorkOrderManageController {
|
|
|
return new AjaxMessage<>(ResultStatus.OK, list);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/maintain/user")
|
|
|
+ @ApiOperation(value = "维护列表/人员")
|
|
|
+ public AjaxMessage<List<Map<String,Object>>> selectMaintainUser(){
|
|
|
+ List<Map<String,Object>> list = new ArrayList<Map<String,Object>>();
|
|
|
+ AjaxMessage<List<UserEntity>> listAjaxMessage = userCenterClient.findUserListByType();
|
|
|
+ for(UserEntity userEntity : listAjaxMessage.getData()){
|
|
|
+ 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());
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ map.put("status", "空闲");
|
|
|
+ }
|
|
|
+ list.add(map);
|
|
|
+ }
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK, list);
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/pending")
|
|
|
@ApiOperation(value = "查询待处理工单")
|
|
|
public AjaxMessage<Pagination<WorkOrderManageDto>> selectPendingOrder(
|