代码更新

This commit is contained in:
2022-12-13 13:42:19 +08:00
parent 6e2ea86e49
commit 9fac0930e2
6 changed files with 16 additions and 14 deletions

View File

@@ -29,11 +29,13 @@ public class EmptyVehicleServiceImpl implements EmptyVehicleService {
if (StrUtil.isEmpty(point_code)){
throw new BadRequestException("点位不能为空!");
}
String empty_vehicle_code = "";
JSONObject point_jo = WQLObject.getWQLObject("st_ivt_coolpointivt").query("empty_point_code = '"+point_code+"'").uniqueResult(0);
if (ObjectUtil.isEmpty(point_jo)){
throw new BadRequestException("未查询到对应点位,请扫描正确的空轴点位!");
if (ObjectUtil.isNotEmpty(point_jo)){
empty_vehicle_code = point_jo.getString("empty_vehicle_code");
}
String empty_vehicle_code = point_jo.getString("empty_vehicle_code");
JSONObject vehicle_jo = new JSONObject();
vehicle_jo.put("vehicle_code",empty_vehicle_code);
JSONObject jo = new JSONObject();