This commit is contained in:
loujf
2022-10-08 13:46:54 +08:00
parent 6b274705af
commit 74219d9575
4 changed files with 61 additions and 44 deletions

View File

@@ -14,7 +14,7 @@ public class SortingUtil {
public static void record(JSONObject whereJson) {
String device_code = (String) whereJson.get("device_code");
String vehicle_code = (String) whereJson.get("vehicle_code");
if (StrUtil.isEmpty(vehicle_code)){
if (StrUtil.isEmpty(vehicle_code)) {
return;
}
//木托盘对应刚托盘记录主表【st_buss_vehicleRelaRecord】
@@ -25,7 +25,10 @@ public class SortingUtil {
WQLObject groupTable = WQLObject.getWQLObject("st_buss_vehicleRelaRecordtl");
JSONObject mstObj = ehicleRelaRecordmst.query("vehicle_code='" + vehicle_code + "'").uniqueResult(0);
String record_id = IdUtil.getSnowflake(1, 1).nextIdStr();
if (ObjectUtil.isEmpty(mstObj)) {
mstObj = new JSONObject();
mstObj.put("record_id", record_id);
mstObj.put("vehicle_code", vehicle_code);
ehicleRelaRecordmst.insert(mstObj);