Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
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
liqin
chnmuseum-party
Commits
c1888a5c
Commit
c1888a5c
authored
Jun 26, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-大屏统计数据出错
parent
cd4008e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
29 deletions
+32
-29
TBoardStatisticMapper.xml
src/main/resources/mapper/TBoardStatisticMapper.xml
+32
-29
No files found.
src/main/resources/mapper/TBoardStatisticMapper.xml
View file @
c1888a5c
...
...
@@ -211,35 +211,38 @@
<!-- 获取展板总量 -->
<select
id=
"getBoardTotal"
resultType=
"java.lang.Integer"
>
SELECT count( a.id )
FROM
( SELECT e.id
FROM exhibition_board e
left join t_board_statistic s on e.id = s.board_id
left join t_organ o on o.id = s.organ_id
<where>
<if
test=
"statisticDate != null and statisticDate.length() == 4"
>
left(s.play_date,4) = ${statisticDate}
</if>
<if
test=
"statisticDate != null and statisticDate.length() == 6"
>
left(s.play_date,6) = ${statisticDate}
</if>
<if
test=
"statisticDate != null and statisticDate.length() == 8"
>
s.play_date = ${statisticDate}
</if>
<if
test=
"organCode != null"
>
and o.code LIKE concat(#{organCode}, '%')
</if>
<if
test=
"areaIds !=null and areaIds.size() > 0"
>
AND s.area_id IN
<foreach
collection=
"areaIds"
separator=
","
open=
"("
close=
")"
item=
"item"
>
#{item}
</foreach>
</if>
</where>
GROUP BY s.board_id ) a
SELECT COUNT(1)
FROM exhibition_board
WHERE is_deleted = 0
<!--SELECT count( a.board_id )-->
<!--FROM-->
<!--( SELECT s.board_id-->
<!--FROM t_board_statistic s-->
<!--left join t_organ o on o.id = s.organ_id-->
<!--<where>-->
<!--<if test="statisticDate != null and statisticDate.length() == 4">-->
<!--left(s.play_date,4) = ${statisticDate}-->
<!--</if>-->
<!--<if test="statisticDate != null and statisticDate.length() == 6">-->
<!--left(s.play_date,6) = ${statisticDate}-->
<!--</if>-->
<!--<if test="statisticDate != null and statisticDate.length() == 8">-->
<!--s.play_date = ${statisticDate}-->
<!--</if>-->
<!--<if test="organCode != null">-->
<!--and o.code LIKE concat(#{organCode}, '%')-->
<!--</if>-->
<!--<if test="areaIds !=null and areaIds.size() > 0">-->
<!--AND s.area_id IN-->
<!--<foreach collection="areaIds" separator="," open="(" close=")" item="item">-->
<!--#{item}-->
<!--</foreach>-->
<!--</if>-->
<!--</where>-->
<!--GROUP BY s.board_id ) a-->
</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