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
bd5c49a9
Commit
bd5c49a9
authored
Dec 24, 2021
by
唐功亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修复】 管理员 厂商分页查询
parent
1dc25461
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
TycpdmFirmChangeDao.xml
src/main/resources/mapper/manage/TycpdmFirmChangeDao.xml
+5
-4
TycpdmFirmDao.xml
src/main/resources/mapper/manage/TycpdmFirmDao.xml
+6
-5
No files found.
src/main/resources/mapper/manage/TycpdmFirmChangeDao.xml
View file @
bd5c49a9
...
...
@@ -70,15 +70,16 @@
<select
id=
"selectTycpdmFirmList"
resultMap=
"tycpdmFirmChangeMap"
parameterType=
"java.util.Map"
>
select * from tycpdm_firm_change where 1=1
select a.* from tycpdm_firm_change a left join tycpdm_user_service b on a.f_id=b.f_id
where 1=1
<if
test=
"params.firmName !='' and params.firmName !=null"
>
and firmName like concat('%',#{params.firmName},'%')
and
a.
firmName like concat('%',#{params.firmName},'%')
</if>
<if
test=
"params.logout_flag !='' and params.logout_flag !=null"
>
and logout_flag =#{params.logout_flag}
and
a.
logout_flag =#{params.logout_flag}
</if>
<if
test=
"params.branchCode !='' and params.branchCode !=null"
>
and branchCode =#{params.branchCode}
and
a.
branchCode =#{params.branchCode}
</if>
</select>
...
...
src/main/resources/mapper/manage/TycpdmFirmDao.xml
View file @
bd5c49a9
...
...
@@ -54,7 +54,7 @@
</resultMap>
<select
id=
"findTycpdmFirmLogoutFlagCountALL"
parameterType=
"java.lang.Integer"
resultType=
"java.lang.Integer"
>
select count(*) from tycpdm_firm a left join tycpdm_user_service b on a.f_id=b.f_id
select count(*) from tycpdm_firm a left join tycpdm_user_service b on a.f_id=b.f_id
where 1=1
<if
test=
"levels.length==4"
>
and branchcode=#{levels}
...
...
@@ -68,15 +68,16 @@
<select
id=
"selectTycpdmFirmList"
resultMap=
"tycpdmFirmMap"
parameterType=
"java.util.Map"
>
select * from tycpdm_firm where 1=1
select a.* from tycpdm_firm a left join tycpdm_user_service b on a.f_id=b.f_id
where 1=1
<if
test=
"params.firmName !='' and params.firmName !=null"
>
and firmName like concat('%',#{params.firmName},'%')
and
a.
firmName like concat('%',#{params.firmName},'%')
</if>
<if
test=
"params.logout_flag !='' and params.logout_flag !=null"
>
and logout_flag =#{params.logout_flag}
and
a.
logout_flag =#{params.logout_flag}
</if>
<if
test=
"params.branchCode !='' and params.branchCode !=null"
>
and branchCode =#{params.branchCode}
and
a.
branchCode =#{params.branchCode}
</if>
</select>
...
...
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