fix(物料同步接口):定时器增加物料条件
This commit is contained in:
parent
6aa601bbcb
commit
6f3fb12586
@ -35,6 +35,7 @@ public class SapMaterielReceiveForWorkJob {
|
||||
String site = null;
|
||||
String startDate = null;
|
||||
String endDate = null;
|
||||
String item = null;
|
||||
|
||||
String jobParam = XxlJobHelper.getJobParam();
|
||||
if (StrUtil.isNotBlank(jobParam)) {
|
||||
@ -42,6 +43,7 @@ public class SapMaterielReceiveForWorkJob {
|
||||
site = paramMap.get("site");
|
||||
startDate = paramMap.get("startDate");
|
||||
endDate = paramMap.get("endDate");
|
||||
item = paramMap.get("item");
|
||||
}
|
||||
if (StrUtil.isBlank(site)) {
|
||||
XxlJobHelper.log("******未维护站点[site]参数******");
|
||||
@ -68,7 +70,11 @@ public class SapMaterielReceiveForWorkJob {
|
||||
jsonObject.put("REQUEST_CONTEXT", conTextJsonObject);
|
||||
JSONObject bodyJsonObject = new JSONObject();
|
||||
JSONObject inputJsonObject = new JSONObject();
|
||||
inputJsonObject.put("MATNR", "");
|
||||
if (StrUtil.isBlank(item)) {
|
||||
inputJsonObject.put("MATNR", "");
|
||||
} else {
|
||||
inputJsonObject.put("MATNR", item);
|
||||
}
|
||||
inputJsonObject.put("MTART", "");
|
||||
inputJsonObject.put("MATKL", "");
|
||||
inputJsonObject.put("WERKS", site);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user