|
@@ -13,6 +13,7 @@ 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;
|
|
@@ -27,6 +28,7 @@ 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;
|
|
@@ -389,7 +391,7 @@ public class WorkOrderManageController {
|
|
|
1,
|
|
|
1);
|
|
|
if(processDefinition == null){
|
|
|
- new AjaxMessage(ResultStatus.ERROR,"没有创建流程,不能派单!");
|
|
|
+ new AjaxMessage(ResultStatus.ERROR,"没有创建流程,不能提交!");
|
|
|
}
|
|
|
Map<String,Object> vars = new HashMap<>();
|
|
|
vars.put("assineeFormUserId",orderUserId);
|
|
@@ -429,28 +431,6 @@ 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(
|