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
Show 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 @@
...
@@ -211,35 +211,38 @@
<!-- 获取展板总量 -->
<!-- 获取展板总量 -->
<select
id=
"getBoardTotal"
resultType=
"java.lang.Integer"
>
<select
id=
"getBoardTotal"
resultType=
"java.lang.Integer"
>
SELECT count( a.id )
SELECT COUNT(1)
FROM
FROM exhibition_board
( SELECT e.id
WHERE is_deleted = 0
FROM exhibition_board e
left join t_board_statistic s on e.id = s.board_id
<!--SELECT count( a.board_id )-->
left join t_organ o on o.id = s.organ_id
<!--FROM-->
<where>
<!--( SELECT s.board_id-->
<if
test=
"statisticDate != null and statisticDate.length() == 4"
>
<!--FROM t_board_statistic s-->
left(s.play_date,4) = ${statisticDate}
<!--left join t_organ o on o.id = s.organ_id-->
</if>
<!--<where>-->
<if
test=
"statisticDate != null and statisticDate.length() == 6"
>
<!--<if test="statisticDate != null and statisticDate.length() == 4">-->
left(s.play_date,6) = ${statisticDate}
<!--left(s.play_date,4) = ${statisticDate}-->
</if>
<!--</if>-->
<if
test=
"statisticDate != null and statisticDate.length() == 8"
>
<!--<if test="statisticDate != null and statisticDate.length() == 6">-->
s.play_date = ${statisticDate}
<!--left(s.play_date,6) = ${statisticDate}-->
</if>
<!--</if>-->
<if
test=
"organCode != null"
>
<!--<if test="statisticDate != null and statisticDate.length() == 8">-->
and o.code LIKE concat(#{organCode}, '%')
<!--s.play_date = ${statisticDate}-->
</if>
<!--</if>-->
<!--<if test="organCode != null">-->
<if
test=
"areaIds !=null and areaIds.size() > 0"
>
<!--and o.code LIKE concat(#{organCode}, '%')-->
AND s.area_id IN
<!--</if>-->
<foreach
collection=
"areaIds"
separator=
","
open=
"("
close=
")"
item=
"item"
>
#{item}
<!--<if test="areaIds !=null and areaIds.size() > 0">-->
</foreach>
<!--AND s.area_id IN-->
</if>
<!--<foreach collection="areaIds" separator="," open="(" close=")" item="item">-->
<!--#{item}-->
</where>
<!--</foreach>-->
GROUP BY s.board_id ) a
<!--</if>-->
<!--</where>-->
<!--GROUP BY s.board_id ) a-->
</select>
</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