Commit 2ffbfde8 by 杨林龙

优化设备首页统计展示

1 parent 951a3e26
...@@ -192,7 +192,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> { ...@@ -192,7 +192,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> {
* @param period 日期类型 * @param period 日期类型
* @return * @return
*/ */
@DataPerm(showSql = true) @DataPerm(permTable = "temp", showSql = true)
List<ActiveDeviceVo> getActiveDeviceInfoWithAuth(@Param("appendSql") String appendSql, @Param("period") Integer period); List<ActiveDeviceVo> getActiveDeviceInfoWithAuth(@Param("appendSql") String appendSql, @Param("period") Integer period);
/** /**
......
...@@ -777,7 +777,8 @@ ...@@ -777,7 +777,8 @@
DATE_FORMAT(temp.created_date,'%H') as activeDate DATE_FORMAT(temp.created_date,'%H') as activeDate
from ( from (
select tvd.id, select tvd.id,
tvd.created_date tvd.created_date,
tv.created_by
FROM t_vehicle tv FROM t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
WHERE tvd.bind_status = 1 and tv.del_flag = 0 and tvd.del_flag = 0 WHERE tvd.bind_status = 1 and tv.del_flag = 0 and tvd.del_flag = 0
...@@ -789,7 +790,8 @@ ...@@ -789,7 +790,8 @@
DATE_FORMAT(temp.created_date,'%Y-%m-%d') as activeDate DATE_FORMAT(temp.created_date,'%Y-%m-%d') as activeDate
from ( from (
select tvd.id, select tvd.id,
tvd.created_date tvd.created_date,
tv.created_by
FROM t_vehicle tv FROM t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
WHERE tvd.bind_status = 1 and tv.del_flag = 0 and tvd.del_flag = 0 WHERE tvd.bind_status = 1 and tv.del_flag = 0 and tvd.del_flag = 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!