Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
吴迪
gs1-office-web-sit
Commits
9302282c
Commit
9302282c
authored
Nov 17, 2021
by
rongkailun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】提供商管理列表查询条件修改
parent
aa9896d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
PartnersController.java
.../office/modules/manage/controller/PartnersController.java
+2
-0
PartnersDao.xml
src/main/resources/mapper/manage/PartnersDao.xml
+11
-3
No files found.
src/main/java/io/office/modules/manage/controller/PartnersController.java
View file @
9302282c
...
...
@@ -67,6 +67,8 @@ public class PartnersController extends AbstractController {
public
R
save
(
@RequestBody
PartnersEntity
partners
){
partners
.
setEditor
(
getUser
().
getUsername
());
partners
.
setLasteditor
(
getUser
().
getUsername
());
partners
.
setRegisterdate
(
new
Date
());
partners
.
setUpdatedate
(
new
Date
());
partnersService
.
save
(
partners
);
return
R
.
ok
(
"新增成功!"
);
}
...
...
src/main/resources/mapper/manage/PartnersDao.xml
View file @
9302282c
...
...
@@ -26,7 +26,15 @@
</resultMap>
<select
id=
"selectPartnersList"
resultMap=
"partnersMap"
parameterType=
"java.util.Map"
>
select * from Partners where levels>0
select * from Partners where 1=1
<choose>
<when
test=
"params.levels == 0"
>
AND levels = #{params.levels}
</when>
<otherwise>
AND levels > 0
</otherwise>
</choose>
<if
test=
"params.firmname !=null and params.firmname !=''"
>
and firmname like concat('%',#{params.firmname},'%')
</if>
...
...
@@ -42,11 +50,11 @@
<if
test=
"params.service !=null and params.service !=''"
>
and service = #{params.service}
</if>
<if
test=
"params.levels !=
''
"
>
<if
test=
"params.levels !=
null
"
>
and levels = #{params.levels}
</if>
<if
test=
"params.releaseTimeStart !=null and params.releaseTimeEnd !=null"
>
and re
lease
date BETWEEN #{params.releaseTimeStart} AND #{params.releaseTimeEnd}
and re
gister
date BETWEEN #{params.releaseTimeStart} AND #{params.releaseTimeEnd}
</if>
<if
test=
"params.updateTimeStart !=null and params.updateTimeEnd !=null"
>
and updatedate BETWEEN #{params.updateTimeStart} AND #{params.updateTimeEnd}
...
...
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