fix:修复出窑反馈找不到组盘信息
This commit is contained in:
@@ -47,13 +47,17 @@ public class KilnUtil {
|
|||||||
|
|
||||||
//出窑扫码
|
//出窑扫码
|
||||||
public static void outKiln(String vehicle_code) {
|
public static void outKiln(String vehicle_code) {
|
||||||
|
|
||||||
// KilnQueue.offer(vehicle_code);
|
// KilnQueue.offer(vehicle_code);
|
||||||
//更新窑设备记录表
|
//更新窑设备记录表
|
||||||
WQLObject recordTable = WQLObject.getWQLObject("pdm_bi_kilnrecord");
|
WQLObject recordTable = WQLObject.getWQLObject("pdm_bi_kilnrecord");
|
||||||
JSONObject vehicleObj = recordTable.query("vehicle_code='"+vehicle_code+"'and out_time=''","in_time desc").uniqueResult(0);
|
JSONObject vehicleObj = recordTable.query("vehicle_code='"+vehicle_code+"'and out_time=''","in_time desc").uniqueResult(0);
|
||||||
if (ObjectUtil.isEmpty(vehicleObj)) {
|
if (ObjectUtil.isEmpty(vehicleObj)) {
|
||||||
throw new BadRequestException("未找到信息");
|
// throw new BadRequestException("未找到信息");
|
||||||
|
//未找到入窑记录信息,不做校验!
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
vehicleObj.put("out_time", DateUtil.now());
|
vehicleObj.put("out_time", DateUtil.now());
|
||||||
recordTable.update(vehicleObj);
|
recordTable.update(vehicleObj);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user