Commit c3a6049d authored by jiaorz's avatar jiaorz

Merge branch 'master-vehicle-count-bug' into dev

parents bda1fa09 a20c96b4
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).getName(); String reserveType = dictionaryMap.get(VEHICE_ORDER + "_" + RESERVE).getDetail();
return ObjectRestResponse.succ(reserveType); return ObjectRestResponse.succ(JSONArray.parse(reserveType));
} }
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment