|
@@ -1,5 +1,6 @@
|
|
|
package com.malk.kabeiyi;
|
|
|
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.malk.kabeiyi.service.KabeiyiService;
|
|
|
import com.malk.server.aliwork.YDConf;
|
|
@@ -131,7 +132,7 @@ public class DdTest {
|
|
|
|
|
|
List<Map> dataList = (List<Map>) ydClient.queryData(YDParam.builder()
|
|
|
.formUuid("FORM-F4ED246EADD8427381BC13C4F0FEF7FDYMKJ")//审核任务
|
|
|
- .pageNumber(1)
|
|
|
+ .pageNumber(3)
|
|
|
.pageSize(100)
|
|
|
.build(), YDConf.FORM_QUERY.retrieve_list).getData();
|
|
|
|
|
@@ -142,22 +143,29 @@ public class DdTest {
|
|
|
|
|
|
String status = UtilMap.getString(formData, "selectField_m0dbmfxd");//审核状态
|
|
|
|
|
|
- if (Strings.isNotBlank(status)){
|
|
|
- Long deadLine = (Long) formData.get("dateField_m061zye7");
|
|
|
+ Long deadLine = (Long) formData.get("dateField_m061zye7");
|
|
|
+
|
|
|
+ Long date = (Long) formData.get("dateField_m1hod4tv");
|
|
|
|
|
|
- Long date = (Long) formData.get("dateField_m1hod4tv");
|
|
|
+ long nowTime = new Date().getTime();
|
|
|
|
|
|
+ //当前时间大于审核截止日期
|
|
|
+ if (nowTime > deadLine){
|
|
|
Map updateFormDate = new HashMap();
|
|
|
|
|
|
- if (Objects.isNull(date)){
|
|
|
- updateFormDate.put("selectField_m0dbmfxd","已超期");
|
|
|
- }else {
|
|
|
- if (date <= deadLine && !"未超期".equals(status)){
|
|
|
- updateFormDate.put("selectField_m0dbmfxd","未超期");
|
|
|
- }
|
|
|
- if (date > deadLine && !"已超期".equals(status)){
|
|
|
+ if (Strings.isNotBlank(status)){
|
|
|
+ if (Objects.isNull(date)){
|
|
|
updateFormDate.put("selectField_m0dbmfxd","已超期");
|
|
|
+ }else {
|
|
|
+ if (date <= deadLine && !"未超期".equals(status)){
|
|
|
+ updateFormDate.put("selectField_m0dbmfxd","未超期");
|
|
|
+ }
|
|
|
+ if (date > deadLine && !"已超期".equals(status)){
|
|
|
+ updateFormDate.put("selectField_m0dbmfxd","已超期");
|
|
|
+ }
|
|
|
}
|
|
|
+ }else {
|
|
|
+ updateFormDate.put("selectField_m0dbmfxd","已超期");
|
|
|
}
|
|
|
|
|
|
if (!updateFormDate.keySet().isEmpty()){
|
|
@@ -166,8 +174,9 @@ public class DdTest {
|
|
|
.updateFormDataJson(JSONObject.toJSONString(updateFormDate))
|
|
|
.build(), YDConf.FORM_OPERATION.update);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|