Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
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
huluobin
bailuntec-cost
Commits
e371e957
Commit
e371e957
authored
Aug 26, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加用户ID搜索条件
parent
9fa4f953
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
ApprovalHistoryReq.java
...blt/other/module/cost/dto/request/ApprovalHistoryReq.java
+3
-0
ApprovalHistoryMapper.xml
...rvice/src/main/resources/mapper/ApprovalHistoryMapper.xml
+1
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/dto/request/ApprovalHistoryReq.java
View file @
e371e957
...
@@ -34,4 +34,7 @@ public class ApprovalHistoryReq {
...
@@ -34,4 +34,7 @@ public class ApprovalHistoryReq {
@ApiModelProperty
(
"费用单号,支持模糊搜索"
)
@ApiModelProperty
(
"费用单号,支持模糊搜索"
)
private
String
costNo
;
private
String
costNo
;
@ApiModelProperty
(
"用户ID"
)
private
Integer
userId
;
}
}
cost-service/src/main/resources/mapper/ApprovalHistoryMapper.xml
View file @
e371e957
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
where ah.approval_time between #{startTime} and #{endTime}
where ah.approval_time between #{startTime} and #{endTime}
<if
test=
"costStatus != null"
>
and ah.cost_status = #{costStatus}
</if>
<if
test=
"costStatus != null"
>
and ah.cost_status = #{costStatus}
</if>
<if
test=
"typeNo != null and typeNo != ''"
>
and c.type_no = #{typeNo}
</if>
<if
test=
"typeNo != null and typeNo != ''"
>
and c.type_no = #{typeNo}
</if>
<if
test=
"userId != null and userId != ''"
>
and ah.approval_user_id = #{userId}
</if>
<if
test=
"costNo != null and costNo != ''"
>
and ah.cost_no like concat('%',#{costNo},'%')
</if>
<if
test=
"costNo != null and costNo != ''"
>
and ah.cost_no like concat('%',#{costNo},'%')
</if>
</select>
</select>
</mapper>
</mapper>
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