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