|
@@ -531,6 +531,26 @@ public class WorkOrderManageController {
|
|
|
}
|
|
|
return new AjaxMessage<>(ResultStatus.OK,result);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/pending/power")
|
|
|
+ @ApiOperation(value = "待处理权限")
|
|
|
+ public AjaxMessage<Boolean> selectPendingPower(
|
|
|
+ @ApiParam(value = "工单ID", required = true) @RequestParam(required = true) Integer id){
|
|
|
+ String currentUsers = null;
|
|
|
+ LoginUser loginUser = UserUtil.getCurrentUser();
|
|
|
+ if(loginUser.getId() != null) {
|
|
|
+ currentUsers = String.format("%s,", loginUser.getId());
|
|
|
+ }
|
|
|
+ Map<String,Object> map = new HashMap<String,Object>();
|
|
|
+ map.put("id",id);
|
|
|
+ map.put("currentUsers",currentUsers);
|
|
|
+ int rows = workOrderManageService.selectPendingPower(map);
|
|
|
+ if(rows>0){
|
|
|
+ return new AjaxMessage<Boolean>(ResultStatus.OK, true);
|
|
|
+ }
|
|
|
+ return new AjaxMessage<Boolean>(ResultStatus.OK, false);
|
|
|
+ }
|
|
|
/**
|
|
|
* 获取并设置用户、任务工单类型名称
|
|
|
* @param result
|