Commit cfafe922 by 杨林龙

开发无在店统计和车辆管理功能+优化接口功能

1 parent 4f9eb040
...@@ -315,7 +315,7 @@ public class VehicleController { ...@@ -315,7 +315,7 @@ public class VehicleController {
@ApiOperation(value = "根据id查询某条车辆信息(数据回显)") @ApiOperation(value = "根据id查询某条车辆信息(数据回显)")
@SysLog(value = "查询车辆信息", action = OperateType.QUERY) @SysLog(value = "查询车辆信息", action = OperateType.QUERY)
@GetMapping("/vehicleInfo/findbyvehicleid") @GetMapping("/vehicleInfo/findbyvehicleid")
public R findVehicleInfoById(@RequestParam() Long vehicleId) { public R findVehicleInfoById(@RequestParam Long vehicleId) {
VehicleInfoVo vehicleInfoVo = vehicleService.findVehicleInfoById(vehicleId); VehicleInfoVo vehicleInfoVo = vehicleService.findVehicleInfoById(vehicleId);
return R.ok().data(vehicleInfoVo); return R.ok().data(vehicleInfoVo);
} }
......
...@@ -17,9 +17,14 @@ public class VehicleInfoSearch extends Page { ...@@ -17,9 +17,14 @@ public class VehicleInfoSearch extends Page {
private String keywords; private String keywords;
/** /**
* 激活时间 * 激活开始时间
*/ */
private String activateTime; private String activateTimeStart;
/**
* 激活结束时间
*/
private String activateTimeEnd;
/** /**
* 设备类型 1 有线 0无线 * 设备类型 1 有线 0无线
......
...@@ -292,8 +292,11 @@ ...@@ -292,8 +292,11 @@
or tv.model_name like '%${keywords}%' or tv.model_name like '%${keywords}%'
) )
</if> </if>
<if test="activateTime != null and activateTime !=''"> <if test="activateTimeStart != null and activateTimeStart !=''">
and left(td.activate_time,10) = #{activateTime} and left(td.activate_time,10) &gt;= #{activateTimeStart}
</if>
<if test="activateTimeEnd != null and activateTimeEnd !=''">
and left(td.activate_time,10) &lt;= #{activateTimeEnd}
</if> </if>
<if test="deviceType != null"> <if test="deviceType != null">
and td.device_type = #{deviceType} and td.device_type = #{deviceType}
...@@ -324,8 +327,11 @@ ...@@ -324,8 +327,11 @@
or tv.model_name like '%${keywords}%' or tv.model_name like '%${keywords}%'
) )
</if> </if>
<if test="activateTime != null and activateTime !=''"> <if test="activateTimeStart != null and activateTimeStart !=''">
and left(td.activate_time,10) = #{activateTime} and left(td.activate_time,10) &gt;= #{activateTimeStart}
</if>
<if test="activateTimeEnd != null and activateTimeEnd !=''">
and left(td.activate_time,10) &lt;= #{activateTimeEnd}
</if> </if>
<if test="deviceType != null"> <if test="deviceType != null">
and td.device_type = #{deviceType} and td.device_type = #{deviceType}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!