Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
vion-label
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4cd5b5a4
authored
Sep 22, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加审核接口
1 parent
c909ea4f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
label-core/src/main/java/com/viontech/label/core/constant/SubTaskStatus.java
label-platform/src/main/java/com/viontech/label/platform/controller/web/ReidController.java
label-core/src/main/java/com/viontech/label/core/constant/SubTaskStatus.java
View file @
4cd5b5a
...
@@ -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
)
{
...
...
label-platform/src/main/java/com/viontech/label/platform/controller/web/ReidController.java
View file @
4cd5b5a
...
@@ -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
();
}
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment