fix(物料同步job):日期可配置
This commit is contained in:
parent
42008b1947
commit
d00235d048
@ -46,12 +46,6 @@ public class SapMaterielReceiveForWorkJob {
|
||||
if (StrUtil.isBlank(site)) {
|
||||
XxlJobHelper.log("******未维护站点[site]参数******");
|
||||
return ReturnT.FAIL;
|
||||
} else if (StrUtil.isBlank(startDate)) {
|
||||
XxlJobHelper.log("******未维护开始日期[startDate]参数******");
|
||||
return ReturnT.FAIL;
|
||||
} else if (StrUtil.isBlank(endDate)) {
|
||||
XxlJobHelper.log("******未维护结束日期[endDate]参数******");
|
||||
return ReturnT.FAIL;
|
||||
} else {
|
||||
LocalDateTime nowLocalDateTime = LocalDateTime.now();
|
||||
String nowTime = nowLocalDateTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
@ -82,8 +76,16 @@ public class SapMaterielReceiveForWorkJob {
|
||||
inputJsonObject.put("VTWEG", "");
|
||||
inputJsonObject.put("ERSDAS", "0000-00-00");
|
||||
inputJsonObject.put("ERSDAE", "0000-00-00");
|
||||
inputJsonObject.put("LAEDAS", startDate);
|
||||
inputJsonObject.put("LAEDAE", endDate);
|
||||
if (StrUtil.isBlank(startDate)) {
|
||||
inputJsonObject.put("LAEDAS", "0000-00-00");
|
||||
} else {
|
||||
inputJsonObject.put("LAEDAS", startDate);
|
||||
}
|
||||
if (StrUtil.isBlank(endDate)) {
|
||||
inputJsonObject.put("LAEDAE", "0000-00-00");
|
||||
} else {
|
||||
inputJsonObject.put("LAEDAE", endDate);
|
||||
}
|
||||
bodyJsonObject.put("IS_INPUT", inputJsonObject);
|
||||
jsonObject.put("REQUEST_BODY", bodyJsonObject);
|
||||
// messageContent内容
|
||||
|
||||
Loading…
Reference in New Issue
Block a user