记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
d1ccb4fe
Commit
d1ccb4fe
authored
Nov 03, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getProvinceDataListResult
parent
c12cd10e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ReportPerformanceMapper.xml
...iquidnet.service.kylin.mapper/ReportPerformanceMapper.xml
+5
-5
No files found.
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/ReportPerformanceMapper.xml
View file @
d1ccb4fe
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<result column="province" property="province"/>
<result column="province" property="province"/>
<result column="total_number" property="totalNumber"/>
<result column="total_number" property="totalNumber"/>
</resultMap>-->
</resultMap>-->
<resultMap
id=
"getCityDataListResult"
type=
"com.liquidnet.service.kylin.dao.report.PerformanceCityDataDto"
>
<
!--<
resultMap id="getCityDataListResult" type="com.liquidnet.service.kylin.dao.report.PerformanceCityDataDto">
<result column="performance_id" property="performanceId"/>
<result column="performance_id" property="performanceId"/>
<result column="city_name" property="cityName"/>
<result column="city_name" property="cityName"/>
<result column="total_number" property="totalNumber"/>
<result column="total_number" property="totalNumber"/>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<resultMap id="getSexDataListResult" type="com.liquidnet.service.kylin.dao.report.PerformanceSexDataDto">
<resultMap id="getSexDataListResult" type="com.liquidnet.service.kylin.dao.report.PerformanceSexDataDto">
<result column="sex" property="sex"/>
<result column="sex" property="sex"/>
<result column="total_number" property="totalNumber"/>
<result column="total_number" property="totalNumber"/>
</resultMap>
</resultMap>
-->
<!-- 演出按省统计-->
<!-- 演出按省统计-->
<select
id=
"getProvinceDataList"
parameterType=
"java.lang.String"
>
<select
id=
"getProvinceDataList"
parameterType=
"java.lang.String"
>
select x.* from (
select x.* from (
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
) x order by x.total_number desc
) x order by x.total_number desc
</select>
</select>
<!-- 演出按城市统计-->
<!-- 演出按城市统计-->
<select
id=
"getCityDataList"
parameterType=
"java.lang.String"
resultMap=
"getCityDataListResult"
>
<select
id=
"getCityDataList"
parameterType=
"java.lang.String"
>
select x.* from (
select x.* from (
SELECT
SELECT
kotr.performance_id AS 'performance_id',
kotr.performance_id AS 'performance_id',
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
) x order by x.total_number desc limit 20
) x order by x.total_number desc limit 20
</select>
</select>
<!-- 演出按年龄统计-->
<!-- 演出按年龄统计-->
<select
id=
"getAgeDataList"
parameterType=
"java.lang.String"
resultMap=
"getAgeDataListResult"
>
<select
id=
"getAgeDataList"
parameterType=
"java.lang.String"
>
select * from (
select * from (
SELECT kotr.performance_id AS 'performance_id',
SELECT kotr.performance_id AS 'performance_id',
CONCAT(substr(curdate(), 1, 4) - substr(kote.enter_id_code, 7, 4),'') age,
CONCAT(substr(curdate(), 1, 4) - substr(kote.enter_id_code, 7, 4),'') age,
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
)x order by x.age
)x order by x.age
</select>
</select>
<!-- 演出按性别统计-->
<!-- 演出按性别统计-->
<select
id=
"getSexDataList"
parameterType=
"java.lang.String"
resultMap=
"getSexDataListResult"
>
<select
id=
"getSexDataList"
parameterType=
"java.lang.String"
>
select x.sex,count(1) total_number from (
select x.sex,count(1) total_number from (
SELECT kotr.performance_id AS 'performance_id',
SELECT kotr.performance_id AS 'performance_id',
case when substr(kote.enter_id_code,17,1)%2=0 then '女' else '男' end sex
case when substr(kote.enter_id_code,17,1)%2=0 then '女' else '男' end sex
...
...
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