|
@@ -149,6 +149,7 @@ public class TransferVehicleManage {
|
|
|
public List<VehicleDataResp> queryVehicleDataList(VehicleDataRequest request) {
|
|
public List<VehicleDataResp> queryVehicleDataList(VehicleDataRequest request) {
|
|
|
//mock数据
|
|
//mock数据
|
|
|
// request.setwOrderNo("W1709780533650");
|
|
// request.setwOrderNo("W1709780533650");
|
|
|
|
|
+ request.setwOrderNo(request.getOrderNo());
|
|
|
if (request == null || (StringUtils.isEmpty(request.getCarNo()) && StringUtils.isEmpty(request.getwOrderNo()))) {
|
|
if (request == null || (StringUtils.isEmpty(request.getCarNo()) && StringUtils.isEmpty(request.getwOrderNo()))) {
|
|
|
throw new IotException(ErrorCodeEnum.ILLEGAL_PARAM, "接口参数为null!");
|
|
throw new IotException(ErrorCodeEnum.ILLEGAL_PARAM, "接口参数为null!");
|
|
|
}
|
|
}
|
|
@@ -187,7 +188,7 @@ public class TransferVehicleManage {
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
// 查询车辆id关系数据中是否存在
|
|
// 查询车辆id关系数据中是否存在
|
|
|
- VehicleData vehicleData = vehicleDataService.getOne(Wrappers.<VehicleData>lambdaQuery().eq(VehicleData::getCarNo, request.getCarNo()));
|
|
|
|
|
|
|
+ VehicleData vehicleData = vehicleDataService.getOne(Wrappers.<VehicleData>lambdaQuery().eq(VehicleData::getCarNo, request.getCarNo()).last("limit 1"));
|
|
|
if (vehicleData == null) {
|
|
if (vehicleData == null) {
|
|
|
log.info("子表 {} 不存在,返回空结果", "vehicle_data_" + request.getCarNo().trim());
|
|
log.info("子表 {} 不存在,返回空结果", "vehicle_data_" + request.getCarNo().trim());
|
|
|
return new VehicleDataResp();
|
|
return new VehicleDataResp();
|