|
@@ -389,16 +389,29 @@ public class WorkOrderManageController {
|
|
AjaxMessage<List<UserEntity>> listAjaxMessage = userCenterClient.findUserListByType();
|
|
AjaxMessage<List<UserEntity>> listAjaxMessage = userCenterClient.findUserListByType();
|
|
for(UserEntity userEntity : listAjaxMessage.getData()){
|
|
for(UserEntity userEntity : listAjaxMessage.getData()){
|
|
Map<String, Object> orderStatusMap = workOrderManageService.selectOrderUserStatus(userEntity.getId().toString());
|
|
Map<String, Object> orderStatusMap = workOrderManageService.selectOrderUserStatus(userEntity.getId().toString());
|
|
|
|
+
|
|
|
|
+ String orderStatus = "空闲";
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
map.put("id", userEntity.getId());
|
|
map.put("id", userEntity.getId());
|
|
map.put("userName", userEntity.getUsername());
|
|
map.put("userName", userEntity.getUsername());
|
|
map.put("phone", userEntity.getPhone());
|
|
map.put("phone", userEntity.getPhone());
|
|
map.put("deptName", userEntity.getDeptOrgName());
|
|
map.put("deptName", userEntity.getDeptOrgName());
|
|
if (orderStatusMap != null) {
|
|
if (orderStatusMap != null) {
|
|
- map.put("status", orderStatusMap.get("W").toString());
|
|
|
|
|
|
+ orderStatus = orderStatusMap.get("S").toString();
|
|
|
|
+ if(orderStatus.equals("空闲")){
|
|
|
|
+ Map<String, Object> planStatusMap = workOrderManageService.selectPlanUserStatus(userEntity.getId().toString());
|
|
|
|
+ if(planStatusMap != null){
|
|
|
|
+ orderStatus = planStatusMap.get("S").toString();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ map.put("status", orderStatus);
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- map.put("status", "空闲");
|
|
|
|
|
|
+ Map<String, Object> planStatusMap = workOrderManageService.selectPlanUserStatus(userEntity.getId().toString());
|
|
|
|
+ if(planStatusMap != null){
|
|
|
|
+ orderStatus = planStatusMap.get("S").toString();
|
|
|
|
+ }
|
|
|
|
+ map.put("status",orderStatus);
|
|
}
|
|
}
|
|
Map<String, Object> onLineStatusMap = workOrderManageService.selectMaintainUserStatus(userEntity.getId().toString());
|
|
Map<String, Object> onLineStatusMap = workOrderManageService.selectMaintainUserStatus(userEntity.getId().toString());
|
|
if(onLineStatusMap != null) {
|
|
if(onLineStatusMap != null) {
|