yuanzhi_kuang 5 місяців тому
батько
коміт
e7b976a0c7

+ 5 - 3
src/com/kingdee/eas/custom/recuritment/task/RecruitmentDemandService.java

@@ -59,7 +59,7 @@ public class RecruitmentDemandService {
     //招聘类型
     private static final Map<String, Integer> RECRUITMENTTYPE_MAP = createRecruitmentType();
     
-    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
+//    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
     // 缓存工号到用户ID的映射(避免重复查询)
     private static final Map<String, Integer> jobNumberToUserIdCache = new ConcurrentHashMap<>();
 
@@ -239,12 +239,14 @@ public class RecruitmentDemandService {
         // 日期字段
         Date applyDate = demandInfo.getApplyDate();
         if (applyDate != null) {
-            params.put("createDate", DATE_FORMAT.format(applyDate));
+            SimpleDateFormat dfmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
+            params.put("createDate", dfmt.format(applyDate));
         }
         
         Date arrivalDate = demandInfo.getArrivalDate();
         if (arrivalDate != null) {
-            params.put("arivalTime", DATE_FORMAT.format(arrivalDate));
+            SimpleDateFormat dfmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
+            params.put("arivalTime", dfmt.format(arrivalDate));
         }
 
         // 值映射字段