Commit 4cd5b5a4 by xmh

添加审核接口

1 parent c909ea4f
...@@ -17,9 +17,10 @@ public enum SubTaskStatus { ...@@ -17,9 +17,10 @@ public enum SubTaskStatus {
TODO(4), TODO(4),
/** 已回收 */ /** 已回收 */
recycled(-1), recycled(-1),
/** 驳回 */ /** 审核驳回 */
reject(5), reject(5),
; /** 审核通过 */
VERIFY_PASSED(6);
public int val; public int val;
SubTaskStatus(int val) { SubTaskStatus(int val) {
......
...@@ -2,12 +2,15 @@ package com.viontech.label.platform.controller.web; ...@@ -2,12 +2,15 @@ package com.viontech.label.platform.controller.web;
import cn.dev33.satoken.stp.StpUtil; import cn.dev33.satoken.stp.StpUtil;
import com.alibaba.excel.EasyExcel; import com.alibaba.excel.EasyExcel;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.viontech.keliu.util.DateUtil; import com.viontech.keliu.util.DateUtil;
import com.viontech.keliu.util.JsonMessageUtil; import com.viontech.keliu.util.JsonMessageUtil;
import com.viontech.label.platform.mapper.LogMapper; import com.viontech.label.platform.mapper.LogMapper;
import com.viontech.label.platform.mapper.SubTaskMapper; import com.viontech.label.platform.mapper.SubTaskMapper;
import com.viontech.label.platform.model.SubTask; import com.viontech.label.platform.model.SubTask;
import com.viontech.label.platform.model.SubTaskExample;
import com.viontech.label.platform.service.adapter.SubTaskService; import com.viontech.label.platform.service.adapter.SubTaskService;
import com.viontech.label.platform.service.main.ReidService; import com.viontech.label.platform.service.main.ReidService;
import com.viontech.label.platform.vo.LogVo; import com.viontech.label.platform.vo.LogVo;
...@@ -263,4 +266,19 @@ public class ReidController { ...@@ -263,4 +266,19 @@ public class ReidController {
reidService.reConstruction(packId); reidService.reConstruction(packId);
return JsonMessageUtil.getSuccessJsonMsg("success"); return JsonMessageUtil.getSuccessJsonMsg("success");
} }
@PostMapping("verify")
public Object verify(@RequestBody JSONObject obj) {
JSONArray personUnidJsonArr = obj.getJSONArray("personUnidArr");
List<String> personUnidArr = personUnidJsonArr.toJavaList(String.class);
Integer status = obj.getInteger("status");
SubTask subTask = new SubTask();
subTask.setStatus(status);
SubTaskExample subTaskExample = new SubTaskExample();
subTaskExample.createCriteria().andPersonUnidIn(personUnidArr);
subTaskService.updateByExampleSelective(subTask, subTaskExample);
return JsonMessageUtil.getSuccessJsonMsg();
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!