-动态表单拉取SAP日期格式;定时任务拉取SAP日期格式优化

--s
This commit is contained in:
weiyunlong 2025-04-29 11:29:04 +08:00
parent 327e7e8e3e
commit fb4c8f5922
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public class SappzFormPlugin extends AbstractFormPlugin {
Boolean isselfprocurement = (Boolean) this.getModel().getValue("shjh_isselfprocurement");//是否自行采购 Boolean isselfprocurement = (Boolean) this.getModel().getValue("shjh_isselfprocurement");//是否自行采购
// 日期格式 // 日期格式
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
JSONArray IT_LIST = new JSONArray(); JSONArray IT_LIST = new JSONArray();
// 添加公司过滤条件--改成多选 // 添加公司过滤条件--改成多选
for (DynamicObject doinfo : shjhOrgfields) { for (DynamicObject doinfo : shjhOrgfields) {

View File

@ -52,7 +52,7 @@ public class QuerySapCreatePayApplyTask extends AbstractTask {
// LocalDate currentDate = LocalDate.now();// 获取当前日期 // LocalDate currentDate = LocalDate.now();// 获取当前日期
LocalDate newDate = currentDate.plusDays(daysToAdd);// 计算新日期 LocalDate newDate = currentDate.plusDays(daysToAdd);// 计算新日期
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");// 格式化日期 DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");// 格式化日期
String formattedoldDate = currentDate.format(formatter);//开始日期 String formattedoldDate = currentDate.format(formatter);//开始日期
String formattedNewDate = newDate.format(formatter);//结束日期 String formattedNewDate = newDate.format(formatter);//结束日期