|
@@ -13,7 +13,6 @@ import com.huaxu.order.dto.WorkOrderManageByAlarmDto;
|
|
|
import com.huaxu.order.dto.WorkOrderManageDto;
|
|
|
import com.huaxu.order.entity.WorkFlowDetail;
|
|
|
import com.huaxu.order.entity.WorkFlowLog;
|
|
|
-import com.huaxu.order.entity.WorkOrderInfo;
|
|
|
import com.huaxu.order.entity.WorkOrderManage;
|
|
|
import com.huaxu.order.service.WorkFlowDetailService;
|
|
|
import com.huaxu.order.service.WorkFlowLogService;
|
|
@@ -28,7 +27,6 @@ import com.huaxu.task.service.PlanManageService;
|
|
|
import com.huaxu.util.DatesUtil;
|
|
|
import com.huaxu.util.MessageSendUtil;
|
|
|
import com.huaxu.util.UserUtil;
|
|
|
-import com.sun.corba.se.spi.orbutil.threadpool.Work;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
@@ -431,6 +429,28 @@ public class WorkOrderManageController {
|
|
|
return new AjaxMessage<>(ResultStatus.ERROR);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/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()){
|
|
|
+ Map<String,Object> orderStatusMap = workOrderManageService.selectOrderUserStatus(userEntity.getId().toString());
|
|
|
+ Map<String,Object> map = new HashMap<>();
|
|
|
+ map.put("ID",userEntity.getId());
|
|
|
+ map.put("人员",userEntity.getUsername());
|
|
|
+ map.put("联系电话",userEntity.getPhone());
|
|
|
+ if(orderStatusMap != null) {
|
|
|
+ map.put("任务状态", orderStatusMap.get("status").toString());
|
|
|
+ map.put("地址", orderStatusMap.get("X") + "," + orderStatusMap.get("Y"));
|
|
|
+ }
|
|
|
+ map.put("距离","");
|
|
|
+ result.add(map);
|
|
|
+ }
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK,result);
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/delProcInst")
|
|
|
@ApiOperation(value = "终止流程")
|
|
|
public AjaxMessage deleteProcessInstance(
|