增添根据车辆VIN查询车辆围栏列表
parent
65cfcf4c8d
commit
13008cc2bb
|
@ -40,4 +40,10 @@ public class FenceQueryRequest extends PageQuery {
|
|||
*/
|
||||
private Integer driveStatus;
|
||||
|
||||
|
||||
/**
|
||||
* 车辆VIN
|
||||
*/
|
||||
private String carVinId;
|
||||
|
||||
}
|
||||
|
|
|
@ -135,6 +135,10 @@ public class FenceServiceImpl extends ServiceImpl<FenceMapper , Fence> implement
|
|||
//精确查询
|
||||
lambdaQueryWrapper.eq(Fence::getDriveStatus,fenceQueryRequest.getDriveStatus());
|
||||
}
|
||||
//判断车辆VIN是否为空
|
||||
if (StringUtils.isNotEmpty(fenceQueryRequest.getCarVinId())) {
|
||||
lambdaQueryWrapper.eq(Fence::getCarVinId , fenceQueryRequest.getCarVinId());
|
||||
}
|
||||
//分页
|
||||
Page<Fence> fencePage = fenceQueryRequest.buildPage();
|
||||
log.info("分页查询:[ {} ]", JSONObject.toJSONString(fencePage));
|
||||
|
|
Loading…
Reference in New Issue