Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
182b619f
Commit
182b619f
authored
Dec 07, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车辆统计bug
parent
21ff9ff5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+4
-4
No files found.
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
182b619f
...
@@ -595,12 +595,12 @@
...
@@ -595,12 +595,12 @@
SELECT
SELECT
b.id AS companyId,
b.id AS companyId,
DATE_FORMAT(
DATE_FORMAT(
DATE_SUB(NOW(), INTERVAL 1 DAY
),
NOW(
),
'%Y'
'%Y'
) AS countYear,
) AS countYear,
DATE_FORMAT(
DATE_SUB(NOW(), INTERVAL 1 DAY
), '%m') AS countMonth,
DATE_FORMAT(
NOW(
), '%m') AS countMonth,
DATE_FORMAT(
DATE_SUB(NOW(), INTERVAL 1 DAY
), '%u') AS countWeek,
DATE_FORMAT(
NOW(
), '%u') AS countWeek,
DATE_FORMAT(
DATE_SUB(NOW(), INTERVAL 1 DAY
), '%Y-%m-%d') AS countDate,
DATE_FORMAT(
NOW(
), '%Y-%m-%d') AS countDate,
count(*) AS vehicleNum
count(*) AS vehicleNum
FROM
FROM
vehicle v
vehicle v
...
...
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