Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv-springboot
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bsoft
sv-springboot
Commits
621dab43
Commit
621dab43
authored
Jan 03, 2020
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql修改
parent
bd938b65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
bsoft-api/src/main/resources/mapper/SerPageMapper.xml
+8
-8
No files found.
bsoft-api/src/main/resources/mapper/SerPageMapper.xml
View file @
621dab43
...
...
@@ -45,16 +45,16 @@
<if
test=
"dimCount != 0"
>
(select a.id,COUNT(b.ID) count
from SER_PAGE a
LEFT
JOIN ser_page_dim_rs b on a.id = b.PAGE_ID and b.state = 1
LEFT
JOIN DIC_DIM c on c.ID = b.DIM_ID
JOIN ser_page_dim_rs b on a.id = b.PAGE_ID and b.state = 1
JOIN DIC_DIM c on c.ID = b.DIM_ID
where a.state =1 and a.PAGE_CODE = #{pageCode,jdbcType=VARCHAR}
and c.DIM_FIELD in (${inField})
GROUP BY a.ID) e,
</if>
(select a.id,COUNT(b.ID) count
from SER_PAGE a
LEFT
JOIN ser_page_dim_rs b on a.id = b.PAGE_ID and b.state = 1
LEFT
JOIN DIC_DIM c on c.ID = b.DIM_ID
JOIN ser_page_dim_rs b on a.id = b.PAGE_ID and b.state = 1
JOIN DIC_DIM c on c.ID = b.DIM_ID
where a.state =1 and a.PAGE_CODE = #{pageCode,jdbcType=VARCHAR}
GROUP BY a.ID) f
where d.id = f.id
...
...
@@ -69,8 +69,8 @@
<if
test=
"dimCount != 0"
>
(select a.id,COUNT(b.ID) count
from SER_PAGE a
LEFT
JOIN ser_page_dim_rs b on a.id = b.PAGE_ID and b.state = 1
LEFT
JOIN DIC_DIM c on c.ID = b.DIM_ID
JOIN ser_page_dim_rs b on a.id = b.PAGE_ID and b.state = 1
JOIN DIC_DIM c on c.ID = b.DIM_ID
where a.state =1 and a.PAGE_CODE = #{pageCode,jdbcType=VARCHAR}
<if
test=
"inFields.size() > 0"
>
and c.DIM_FIELD in
...
...
@@ -82,8 +82,8 @@
</if>
(select a.id,COUNT(b.ID) count
from SER_PAGE a
LEFT
JOIN ser_page_dim_rs b on a.id = b.PAGE_ID and b.state = 1
LEFT
JOIN DIC_DIM c on c.ID = b.DIM_ID
JOIN ser_page_dim_rs b on a.id = b.PAGE_ID and b.state = 1
JOIN DIC_DIM c on c.ID = b.DIM_ID
where a.state =1 and a.PAGE_CODE = #{pageCode,jdbcType=VARCHAR}
GROUP BY a.ID) f
where d.id = f.id
...
...
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