Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
H
hzsomms
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
ZTGK
hzsomms
Commits
820d61aa
Commit
820d61aa
authored
Aug 22, 2024
by
hkl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:1.统计分析bug
parent
6e66c914
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
StatisticAnalysisMapper.xml
.../statisticAnalysis/mapper/xml/StatisticAnalysisMapper.xml
+5
-8
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/statisticAnalysis/mapper/xml/StatisticAnalysisMapper.xml
View file @
820d61aa
...
@@ -14,14 +14,8 @@
...
@@ -14,14 +14,8 @@
ON t1.movement_master_id = t2.id
ON t1.movement_master_id = t2.id
WHERE
WHERE
t1.project_name = '总计'
t1.project_name = '总计'
AND t2.check_time >= STR_TO_DATE( CONCAT( #{year}
AND t2.check_time >= STR_TO_DATE(CONCAT( #{year},'-01-01'),'%Y-%m-%d')
, '-01-01' )
AND t2.check_time
<
DATE_ADD(STR_TO_DATE(CONCAT(#{year},'-01-01'),'%Y-%m-%d'),INTERVAL 1 YEAR)) t
, '%Y-%m-%d' )
AND t2.check_time
<
DATE_ADD( STR_TO_DATE(CONCAT(#{year}
, '-01-01')
, '%Y-%m-%d')
, INTERVAL 1 YEAR)) t
GROUP BY t.light_rail_id,
GROUP BY t.light_rail_id,
t.check_month
t.check_month
ORDER BY t.check_month ASC
ORDER BY t.check_month ASC
...
@@ -33,6 +27,9 @@
...
@@ -33,6 +27,9 @@
COUNT(1) AS checkNum
COUNT(1) AS checkNum
FROM t_ek_rail_wear_record t1
FROM t_ek_rail_wear_record t1
INNER JOIN t_ek_records_master_check t2 ON t1.records_master_check_id = t2.id
INNER JOIN t_ek_records_master_check t2 ON t1.records_master_check_id = t2.id
WHERE
t2.check_time >= STR_TO_DATE(CONCAT( #{startMonth},'-01'),'%Y-%m-%d')
AND t2.check_time
<
DATE_ADD(STR_TO_DATE(CONCAT(#{endMonth}, '-01'), '%Y-%m-%d'), INTERVAL 1 MONTH)
GROUP BY t2.light_rail_name,
GROUP BY t2.light_rail_name,
t1.damage_type,
t1.damage_type,
t1.damage_degree
t1.damage_degree
...
...
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