Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangkb
indicators
Commits
de6d1232
Commit
de6d1232
authored
Aug 28, 2020
by
hzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询添加status为数组
parent
66f29aea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
3 deletions
+25
-3
QueryAllTaskParam.java
.../indicators/model/entity/dataenter/QueryAllTaskParam.java
+6
-1
QueryTaskParam.java
...ile/indicators/model/entity/dataenter/QueryTaskParam.java
+6
-0
TaskMapper.xml
src/main/resources/mybatis/mapping/TaskMapper.xml
+13
-2
No files found.
src/main/java/com/keymobile/indicators/model/entity/dataenter/QueryAllTaskParam.java
View file @
de6d1232
...
...
@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
@ApiModel
(
"查询用户任务参数"
)
@Data
public
class
QueryAllTaskParam
{
...
...
@@ -25,9 +27,12 @@ public class QueryAllTaskParam {
private
String
keyword
;
@ApiModelProperty
(
"填报时间"
)
private
String
valueTime
;
@ApiModelProperty
(
"任务状态:1、填报中 2、审批中 3、审核通过 4、驳回"
)
@ApiModelProperty
(
"任务状态:1、填报中 2、审批中 3、审核通过 4、驳回
5 任务下发
"
)
private
Integer
status
;
@ApiModelProperty
(
"任务状态数组:1、填报中 2、审批中 3、审核通过 4、驳回 5 任务下发"
)
private
List
<
Integer
>
statusArr
;
@ApiModelProperty
(
"归属部门,对应数据项的归属部门"
)
private
String
refIndDept
;
...
...
src/main/java/com/keymobile/indicators/model/entity/dataenter/QueryTaskParam.java
View file @
de6d1232
...
...
@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
@ApiModel
(
"查询任务参数"
)
@Data
public
class
QueryTaskParam
{
...
...
@@ -30,6 +32,10 @@ public class QueryTaskParam {
private
String
valueTime
;
@ApiModelProperty
(
"任务状态:1、填报中 2、审批中 3、审核通过 4、驳回"
)
private
Integer
status
;
@ApiModelProperty
(
"任务状态数组:1、填报中 2、审批中 3、审核通过 4、驳回 5 任务下发"
)
private
List
<
Integer
>
statusArr
;
@ApiModelProperty
(
"归属部门,对应数据项的归属部门"
)
private
String
refIndDept
;
...
...
src/main/resources/mybatis/mapping/TaskMapper.xml
View file @
de6d1232
...
...
@@ -80,11 +80,22 @@
<if
test=
"keyword != null and keyword !=''"
>
and rule_name like concat('%', #{keyword}, '%')
</if>
<if
test=
"valueTime != null and valueTime !=''"
>
and value_time = #{valueTime}
</if>
<if
test=
"status != null "
>
and status = #{status}
<!-- <if test="status != null">-->
<!-- and status =#{status}-->
<!-- </if>-->
<if
test=
"statusArr != null"
>
and status in (
<foreach
collection=
"statusArr"
item=
"item"
separator=
","
>
#{item}
</foreach>
)
</if>
<if
test=
"createTimeFrom !=null and createTimeFrom !=''"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment