Commit a5dfb3cb by 杨林龙

优化设备首页统计展示

1 parent 1dc7bdf0
...@@ -201,7 +201,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> { ...@@ -201,7 +201,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> {
* @param appendSql 拼接SQl * @param appendSql 拼接SQl
* @return * @return
*/ */
@DataPerm(showSql = true) @DataPerm(permTable = "temp", showSql = true)
List<DeviceBindVo> getBindDeviceInfoWithAuth(@Param("appendSql") String appendSql); List<DeviceBindVo> getBindDeviceInfoWithAuth(@Param("appendSql") String appendSql);
/** /**
......
...@@ -805,7 +805,8 @@ ...@@ -805,7 +805,8 @@
DATE_FORMAT(temp.created_date, '%Y-%m-%d') as bindDate DATE_FORMAT(temp.created_date, '%Y-%m-%d') as bindDate
FROM ( FROM (
SELECT distinct tv.id, SELECT distinct tv.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 WHERE tvd.bind_status = 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!