Commit d8de6639 by 向延琳

Merge branch 'v1.6.0' of http://192.168.3.233:8090/eshiled-new/ne-shield-trialdr…

…ive-admin into v1.6.0
2 parents 0a919e22 ddeae7cf
...@@ -146,7 +146,7 @@ public class VehicleController { ...@@ -146,7 +146,7 @@ public class VehicleController {
@GetMapping("/drivevehicle/export") @GetMapping("/drivevehicle/export")
public void exportDriveVehicle(VehicleManageSearch search) throws Exception { public void exportDriveVehicle(VehicleManageSearch search) throws Exception {
List<TrialDriveVehicleExport> list = vehicleService.exportDriveVehicle(search); List<TrialDriveVehicleExport> list = vehicleService.exportDriveVehicle(search);
String fileName = "试驾车辆_" + DateUtils.formatSerial(new Date()); String fileName = "试驾车辆列表_" + DateUtils.formatSerial(new Date());
String sheetName = "Sheet1"; String sheetName = "Sheet1";
EasyExcelUtils.writeExcel(response, list, fileName, sheetName, TrialDriveVehicleExport.class); EasyExcelUtils.writeExcel(response, list, fileName, sheetName, TrialDriveVehicleExport.class);
} }
...@@ -312,7 +312,7 @@ public class VehicleController { ...@@ -312,7 +312,7 @@ public class VehicleController {
@GetMapping("/vehicleinfo/export") @GetMapping("/vehicleinfo/export")
public void exportVehicleInfo(VehicleInfoSearch search) throws Exception { public void exportVehicleInfo(VehicleInfoSearch search) throws Exception {
List<VehicleInfoExport> vehicleInfoList = vehicleService.exportVehicleInfo(search); List<VehicleInfoExport> vehicleInfoList = vehicleService.exportVehicleInfo(search);
String fileName = "车辆信息列表_" + DateUtils.format(new Date(), "yyyy-MM-dd"); String fileName = "车辆列表_" + DateUtils.formatSerial(new Date());
String sheetName = "Sheet1"; String sheetName = "Sheet1";
EasyExcelUtils.writeExcel(response, vehicleInfoList, fileName, sheetName, VehicleInfoExport.class); EasyExcelUtils.writeExcel(response, vehicleInfoList, fileName, sheetName, VehicleInfoExport.class);
} }
......
...@@ -61,7 +61,7 @@ public class WorkOrderController { ...@@ -61,7 +61,7 @@ public class WorkOrderController {
@GetMapping(value = "/export") @GetMapping(value = "/export")
public void export(HttpServletResponse response, WorkOrderSearch search) throws Exception { public void export(HttpServletResponse response, WorkOrderSearch search) throws Exception {
List<WorkOrderExport> list = workOrderService.export(search); List<WorkOrderExport> list = workOrderService.export(search);
EasyExcelUtils.writeExcel(response, list, "工单_" + DateUtils.formatSerial(new Date()), "Sheet1", WorkOrderExport.class); EasyExcelUtils.writeExcel(response, list, "工单列表_" + DateUtils.formatSerial(new Date()), "Sheet1", WorkOrderExport.class);
} }
@ApiOperation(value = "工单照片导出") @ApiOperation(value = "工单照片导出")
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from t_electric_fence_sns from t_electric_fence_sns
where del_flag = 0 where del_flag = 0
where fence_id = #{fenceId} and fence_id = #{fenceId}
and sn in and sn in
<foreach collection="sns" separator="," open="(" close=")" item="item"> <foreach collection="sns" separator="," open="(" close=")" item="item">
#{item} #{item}
......
...@@ -469,15 +469,18 @@ ...@@ -469,15 +469,18 @@
<if test="deviceState != null"> <if test="deviceState != null">
<choose> <choose>
<when test="deviceState == 0"> <!-- 行驶中--> <when test="deviceState == 0"> <!-- 行驶中-->
and (td.source=1) and speed>0 and ((timestampdiff(SECOND,tdl.last_gps_time,now())) <![CDATA[<]]> 600 or (timestampdiff(SECOND,tdl.last_bs_time,now())) and (td.source=1) and speed>0 and ((timestampdiff(SECOND,tdl.last_gps_time,now())) <![CDATA[<]]> 360 or (timestampdiff(SECOND,tdl.last_bs_time,now())) <![CDATA[<]]> 360)
<![CDATA[<]]> 600)
</when> </when>
<when test="deviceState == 1"> <!-- 静止--> <when test="deviceState == 1"> <!-- 静止-->
and (td.source=1) and (speed=0 or speed is null) and ((timestampdiff(SECOND,tdl.last_gps_time,now())) <![CDATA[<]]> 600 or and (td.source=1) and (speed=0 or speed is null) and ((timestampdiff(SECOND,tdl.last_gps_time,now())) <![CDATA[<]]> 360 or
(timestampdiff(SECOND,tdl.last_bs_time,now())) <![CDATA[<]]> 600) (timestampdiff(SECOND,tdl.last_bs_time,now())) <![CDATA[<]]> 360)
</when> </when>
<when test="deviceState == 2"> <!-- 离线--> <when test="deviceState == 2"> <!-- 离线-->
and (timestampdiff(SECOND,tdl.last_gps_time,now())) &gt; #{offlineTime} and (timestampdiff(SECOND,tdl.last_bs_time,now())) &gt; #{offlineTime} and ((timestampdiff(SECOND, tdl.last_gps_time, now()) &gt; #{offlineTime} and timestampdiff(SECOND, tdl.last_bs_time, now()) &gt; #{offlineTime})
or (tdl.last_gps_time is null and tdl.last_bs_time is null)
or (tdl.last_gps_time is null and timestampdiff(SECOND, tdl.last_bs_time, now()) &gt; #{offlineTime})
or (timestampdiff(SECOND, tdl.last_gps_time, now()) &gt; #{offlineTime} and tdl.last_bs_time is null)
)
</when> </when>
<when test="deviceState == 3"> <!-- 在线--> <when test="deviceState == 3"> <!-- 在线-->
and (timestampdiff(SECOND,tdl.last_gps_time,now()) &lt; #{offlineTime} or timestampdiff(SECOND,tdl.last_bs_time,now()) &lt; #{offlineTime}) and (timestampdiff(SECOND,tdl.last_gps_time,now()) &lt; #{offlineTime} or timestampdiff(SECOND,tdl.last_bs_time,now()) &lt; #{offlineTime})
...@@ -547,15 +550,18 @@ ...@@ -547,15 +550,18 @@
<if test="deviceState != null"> <if test="deviceState != null">
<choose> <choose>
<when test="deviceState == 0"> <!-- 行驶中--> <when test="deviceState == 0"> <!-- 行驶中-->
and (td.source=1) and speed>0 and ((timestampdiff(SECOND,tdl.last_gps_time,now())) <![CDATA[<]]> 600 or (timestampdiff(SECOND,tdl.last_bs_time,now())) and (td.source=1) and speed>0 and ((timestampdiff(SECOND,tdl.last_gps_time,now())) <![CDATA[<]]> 360 or (timestampdiff(SECOND,tdl.last_bs_time,now())) <![CDATA[<]]> 360)
<![CDATA[<]]> 600)
</when> </when>
<when test="deviceState == 1"> <!-- 静止--> <when test="deviceState == 1"> <!-- 静止-->
and (td.source=1) and (speed=0 or speed is null) and ((timestampdiff(SECOND,tdl.last_gps_time,now())) <![CDATA[<]]> 600 or and (td.source=1) and (speed=0 or speed is null) and ((timestampdiff(SECOND,tdl.last_gps_time,now())) <![CDATA[<]]> 360 or
(timestampdiff(SECOND,tdl.last_bs_time,now())) <![CDATA[<]]> 600) (timestampdiff(SECOND,tdl.last_bs_time,now())) <![CDATA[<]]> 360)
</when> </when>
<when test="deviceState == 2"> <!-- 离线--> <when test="deviceState == 2"> <!-- 离线-->
and (timestampdiff(SECOND,tdl.last_gps_time,now())) &gt; #{offlineTime} and (timestampdiff(SECOND,tdl.last_bs_time,now())) &gt; #{offlineTime} and ((timestampdiff(SECOND, tdl.last_gps_time, now()) &gt; #{offlineTime} and timestampdiff(SECOND, tdl.last_bs_time, now()) &gt; #{offlineTime})
or (tdl.last_gps_time is null and tdl.last_bs_time is null)
or (tdl.last_gps_time is null and timestampdiff(SECOND, tdl.last_bs_time, now()) &gt; #{offlineTime})
or (timestampdiff(SECOND, tdl.last_gps_time, now()) &gt; #{offlineTime} and tdl.last_bs_time is null)
)
</when> </when>
<when test="deviceState == 3"> <!-- 在线--> <when test="deviceState == 3"> <!-- 在线-->
and (timestampdiff(SECOND,tdl.last_gps_time,now()) &lt; #{offlineTime} or timestampdiff(SECOND,tdl.last_bs_time,now()) &lt; #{offlineTime}) and (timestampdiff(SECOND,tdl.last_gps_time,now()) &lt; #{offlineTime} or timestampdiff(SECOND,tdl.last_bs_time,now()) &lt; #{offlineTime})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!