fix:修复出窑反馈找不到组盘信息

This commit is contained in:
ludj
2024-05-11 08:38:29 +08:00
parent adc79c6702
commit b68365cf90

View File

@@ -47,13 +47,17 @@ public class KilnUtil {
//出窑扫码
public static void outKiln(String vehicle_code) {
// KilnQueue.offer(vehicle_code);
//更新窑设备记录表
WQLObject recordTable = WQLObject.getWQLObject("pdm_bi_kilnrecord");
JSONObject vehicleObj = recordTable.query("vehicle_code='"+vehicle_code+"'and out_time=''","in_time desc").uniqueResult(0);
if (ObjectUtil.isEmpty(vehicleObj)) {
throw new BadRequestException("未找到信息");
// throw new BadRequestException("未找到信息");
//未找到入窑记录信息,不做校验!
return;
}
vehicleObj.put("out_time", DateUtil.now());
recordTable.update(vehicleObj);