fix(完工入库报工): 新增物料消耗报工job、完工入库过账日期自定义1.2

This commit is contained in:
chengzhaofeng 2025-01-09 11:22:55 +08:00
parent a42c7b8b7c
commit 098661f7ee
2 changed files with 8 additions and 0 deletions

View File

@ -92,6 +92,10 @@ public class SapMaterialConsumptionJob {
// 使用原来的过账日期
postingDate = syncPostingDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
}
if (StrUtil.isBlank(postingDate)) {
// 如果还不存在,默认为当天过账日期
postingDate = DateUtil.format(LocalDateTime.now(), "yyyy-MM-dd");
}
targetObj.setSyncPostingDate(LocalDate.parse(postingDate));
srcList.add(targetObj);
JSONObject jsonObject = new JSONObject();

View File

@ -102,6 +102,10 @@ public class SapShopOrderCompleteJob {
// 使用原来的过账日期
postingDate = syncPostingDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
}
if (StrUtil.isBlank(postingDate)) {
// 如果还不存在,默认为当天过账日期
postingDate = DateUtil.format(LocalDateTime.now(), "yyyy-MM-dd");
}
targetObj.setSyncPostingDate(LocalDate.parse(postingDate));
srcList.add(targetObj);
JSONObject jsonObject = new JSONObject();