|
|
@@ -799,7 +799,6 @@ public class ERPServiceImpl implements ERPService {
|
|
|
int batchSize = 1000;
|
|
|
int totalSize = stockDataList.size();
|
|
|
int batchCount = (totalSize + batchSize - 1) / batchSize;
|
|
|
-
|
|
|
for (int i = 0; i < batchCount; i++) {
|
|
|
int fromIndex = i * batchSize;
|
|
|
int toIndex = Math.min((i + 1) * batchSize, totalSize);
|
|
|
@@ -824,17 +823,17 @@ public class ERPServiceImpl implements ERPService {
|
|
|
String errTip = docCommonService.sendToWms(json, "openapi.inventory.foreign.synchronize");
|
|
|
if (errTip!=null) {
|
|
|
resMap.put("success", false);
|
|
|
- resMap.put("message", "同步第" + (fromIndex) + "~"+toIndex+"行数据失败:" + errTip);
|
|
|
+ resMap.put("message", "【dataNo:"+dataNo+"】同步第" + (fromIndex) + "~"+toIndex+"行数据失败:" + errTip);
|
|
|
break;
|
|
|
}
|
|
|
} catch (JsonProcessingException e) {
|
|
|
e.printStackTrace();
|
|
|
resMap.put("success", false);
|
|
|
- resMap.put("message", "同步第" + (fromIndex) + "~"+toIndex+"行数据失败:JSON转换失败" );
|
|
|
+ resMap.put("message", "【dataNo:"+dataNo+"】同步第" + (fromIndex) + "~"+toIndex+"行数据失败:JSON转换失败" );
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- resMap.put("message", "库存数据同步成功,共处理" + totalSize + "条数据");
|
|
|
+ resMap.put("message", "【dataNo:"+dataNo+"】库存数据同步成功,共处理" + totalSize + "条数据");
|
|
|
}
|
|
|
if("JOB".equals(emCode)){
|
|
|
//记录日志
|
|
|
@@ -843,7 +842,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
+("true".equals(resMap.get("success")) ? "成功:":"失败")+": "+resMap.get("message")
|
|
|
+"','InventoryToWms|emCode=" + emCode + "','" + emCode + "')");
|
|
|
}
|
|
|
- logger.info("sendStockData-End-success master {} emCode {} ",master,emCode);
|
|
|
+ logger.info("sendStockData-End-success master {} emCode {} dataNo {}",master,emCode,dataNo);
|
|
|
return resMap;
|
|
|
}
|
|
|
|