代码更新
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user