Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-taskcenter
This project
Loading...
Sign in
Toggle navigation
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 de0a818c
authored
May 22, 2026
by
叶立庆
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
多条件查询增加任务优先级列表查询
1 parent
b50dae41
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
rpc-dj-taskcenter-api/src/main/java/cn/com/glsx/dj/taskcenter/dto/taskcenter/TaskQueryConditionDTO.java
rpc-dj-taskcenter/src/main/resources/META-INF/orm/taskcenter/TaskAssigneeMapper.xml
rpc-dj-taskcenter/src/main/resources/META-INF/orm/taskcenter/TaskMapper.xml
rpc-dj-taskcenter-api/src/main/java/cn/com/glsx/dj/taskcenter/dto/taskcenter/TaskQueryConditionDTO.java
View file @
de0a818
...
@@ -52,6 +52,10 @@ public class TaskQueryConditionDTO implements Serializable {
...
@@ -52,6 +52,10 @@ public class TaskQueryConditionDTO implements Serializable {
@ApiModelProperty
(
notes
=
"任务优先级"
)
@ApiModelProperty
(
notes
=
"任务优先级"
)
private
Integer
priority
;
private
Integer
priority
;
/** 任务优先级列表。 */
@ApiModelProperty
(
notes
=
"任务优先级列表"
)
private
List
<
Integer
>
priorities
;
/** 执行人ID列表。 */
/** 执行人ID列表。 */
@ApiModelProperty
(
notes
=
"执行人ID列表"
)
@ApiModelProperty
(
notes
=
"执行人ID列表"
)
private
List
<
String
>
assigneeIds
;
private
List
<
String
>
assigneeIds
;
...
...
rpc-dj-taskcenter/src/main/resources/META-INF/orm/taskcenter/TaskAssigneeMapper.xml
View file @
de0a818
...
@@ -117,7 +117,13 @@
...
@@ -117,7 +117,13 @@
<if
test=
"condition != null and condition.status != null and condition.status != ''"
>
<if
test=
"condition != null and condition.status != null and condition.status != ''"
>
and t.status = #{condition.status}
and t.status = #{condition.status}
</if>
</if>
<if
test=
"condition != null and condition.priority != null"
>
<if
test=
"condition != null and condition.priorities != null and condition.priorities.size() > 0"
>
and t.priority in
<foreach
collection=
"condition.priorities"
item=
"priority"
open=
"("
separator=
","
close=
")"
>
#{priority}
</foreach>
</if>
<if
test=
"condition != null and (condition.priorities == null or condition.priorities.size() == 0) and condition.priority != null"
>
and t.priority = #{condition.priority}
and t.priority = #{condition.priority}
</if>
</if>
<if
test=
"condition != null and condition.creatorId != null and condition.creatorId != ''"
>
<if
test=
"condition != null and condition.creatorId != null and condition.creatorId != ''"
>
...
@@ -238,7 +244,13 @@
...
@@ -238,7 +244,13 @@
<if
test=
"condition != null and condition.status != null and condition.status != ''"
>
<if
test=
"condition != null and condition.status != null and condition.status != ''"
>
and t.status = #{condition.status}
and t.status = #{condition.status}
</if>
</if>
<if
test=
"condition != null and condition.priority != null"
>
<if
test=
"condition != null and condition.priorities != null and condition.priorities.size() > 0"
>
and t.priority in
<foreach
collection=
"condition.priorities"
item=
"priority"
open=
"("
separator=
","
close=
")"
>
#{priority}
</foreach>
</if>
<if
test=
"condition != null and (condition.priorities == null or condition.priorities.size() == 0) and condition.priority != null"
>
and t.priority = #{condition.priority}
and t.priority = #{condition.priority}
</if>
</if>
<if
test=
"condition != null and condition.creatorId != null and condition.creatorId != ''"
>
<if
test=
"condition != null and condition.creatorId != null and condition.creatorId != ''"
>
...
...
rpc-dj-taskcenter/src/main/resources/META-INF/orm/taskcenter/TaskMapper.xml
View file @
de0a818
...
@@ -53,6 +53,12 @@
...
@@ -53,6 +53,12 @@
<if
test=
"condition != null and condition.status != null and condition.status != ''"
>
<if
test=
"condition != null and condition.status != null and condition.status != ''"
>
and t.status = #{condition.status}
and t.status = #{condition.status}
</if>
</if>
<if
test=
"condition != null and condition.priorities != null and condition.priorities.size() > 0"
>
and t.priority in
<foreach
collection=
"condition.priorities"
item=
"priority"
open=
"("
separator=
","
close=
")"
>
#{priority}
</foreach>
</if>
<if
test=
"condition != null and condition.priority != null"
>
<if
test=
"condition != null and condition.priority != null"
>
and t.priority = #{condition.priority}
and t.priority = #{condition.priority}
</if>
</if>
...
...
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