艾普MES-生产订单传出厂编号调整
This commit is contained in:
parent
d221f57fcf
commit
d60e215f02
|
@ -84,7 +84,9 @@ public class SyncEpicMesUtil {
|
|||
pushData(pmoUrl, data);
|
||||
|
||||
JSONObject buildSyncData = buildSyncCodeData(aggVO);
|
||||
jsonArray.add(buildSyncData);
|
||||
if (buildSyncData != null && !buildSyncData.isEmpty()) {
|
||||
jsonArray.add(buildSyncData);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!jsonArray.isEmpty()) {
|
||||
|
@ -325,7 +327,7 @@ public class SyncEpicMesUtil {
|
|||
// Map<String, Object> vsncodeList = (Map<String, Object>) dao.executeQuery(vsncode, new MapProcessor());
|
||||
ArrayList<Map<String, Object>> vsncodeList = (ArrayList<Map<String, Object>>) dao.executeQuery(vsncode, new MapListProcessor());
|
||||
if (vsncodeList.isEmpty()) {
|
||||
jsonArray.add("");
|
||||
// jsonArray.add("");
|
||||
continue;
|
||||
}
|
||||
for (Map<String, Object> v : vsncodeList) {
|
||||
|
@ -334,6 +336,9 @@ public class SyncEpicMesUtil {
|
|||
// String detailItem = (null != materialtype ? materialtype : "") + hvo.getDbilldate().toStdString().substring(0, 3) + hvo.getDbilldate().toStdString().substring(5, 6) + code;
|
||||
// jsonArray.add(detailItem);
|
||||
}
|
||||
if (jsonArray.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
obj.put("releaseNo", jsonArray.toString());
|
||||
|
||||
return obj;
|
||||
|
|
Loading…
Reference in New Issue