|
|
|
@ -70,8 +70,15 @@ public class NodeDataPushListener {
|
|
|
|
|
JSONObject jsons = new JSONObject(); |
|
|
|
|
List<JSONObject> packages = new ArrayList<>(); |
|
|
|
|
for (PushData pushData : content) { |
|
|
|
|
String packageCode = pushData.getPackageCode(); |
|
|
|
|
// 新系统自动生成的包条码,不用回传
|
|
|
|
|
if (StrUtil.isNotEmpty(packageCode) && packageCode.startsWith("HT")) { |
|
|
|
|
if (packageCode.length() == 22) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
JSONObject js = new JSONObject(); |
|
|
|
|
js.set("paNo", pushData.getPackageCode()); |
|
|
|
|
js.set("paNo", packageCode); |
|
|
|
|
js.set("subinventoryCode", ""); |
|
|
|
|
js.set("locatorCode", ""); |
|
|
|
|
js.set("updateDate", DateUtil.now()); |
|
|
|
@ -97,6 +104,13 @@ public class NodeDataPushListener {
|
|
|
|
|
JSONObject jsons = new JSONObject(); |
|
|
|
|
List<String> packages = new ArrayList<>(); |
|
|
|
|
for (PushData pushData : content) { |
|
|
|
|
String packageCode = pushData.getPackageCode(); |
|
|
|
|
// 新系统自动生成的包条码,不用回传
|
|
|
|
|
if (StrUtil.isNotEmpty(packageCode) && packageCode.startsWith("HT")) { |
|
|
|
|
if (packageCode.length() == 22) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
packages.add(pushData.getPackageCode()); |
|
|
|
|
} |
|
|
|
|
if (StrUtil.isNotEmpty(main)) { |
|
|
|
|