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
c3a6049d
Commit
c3a6049d
authored
Dec 09, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-vehicle-count-bug' into dev
parents
bda1fa09
a20c96b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
VehicleDepartureController.java
...xfc/platform/vehicle/rest/VehicleDepartureController.java
+3
-2
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+4
-4
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleDepartureController.java
View file @
c3a6049d
package
com
.
xxfc
.
platform
.
vehicle
.
rest
;
package
com
.
xxfc
.
platform
.
vehicle
.
rest
;
import
com.alibaba.fastjson.JSONArray
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.dto.UserDTO
;
import
com.github.wxiaoqi.security.admin.feign.dto.UserDTO
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
...
@@ -170,8 +171,8 @@ public class VehicleDepartureController {
...
@@ -170,8 +171,8 @@ public class VehicleDepartureController {
@GetMapping
(
"findReserveType"
)
@GetMapping
(
"findReserveType"
)
public
ObjectRestResponse
<
OrderPageVO
>
getOrderDetail
()
{
public
ObjectRestResponse
<
OrderPageVO
>
getOrderDetail
()
{
Map
<
String
,
Dictionary
>
dictionaryMap
=
thirdFeign
.
dictionaryGetAll4Map
().
getData
();
Map
<
String
,
Dictionary
>
dictionaryMap
=
thirdFeign
.
dictionaryGetAll4Map
().
getData
();
String
reserveType
=
dictionaryMap
.
get
(
VEHICE_ORDER
+
"_"
+
RESERVE
).
get
Name
();
String
reserveType
=
dictionaryMap
.
get
(
VEHICE_ORDER
+
"_"
+
RESERVE
).
get
Detail
();
return
ObjectRestResponse
.
succ
(
reserveType
);
return
ObjectRestResponse
.
succ
(
JSONArray
.
parse
(
reserveType
)
);
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
c3a6049d
...
@@ -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