diff --git a/.gitignore b/.gitignore
index e4ee4f5..4be73d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,7 @@ log
/log/
.DS_Store
/src/main/resources/WEB-INF/prop/weaver.properties
+/src/main/resources/ajzx/
/file/
/src/test/resources/application.properties
diff --git a/javascript/xuanran.wang/longgong/NewProductTest.js b/javascript/xuanran.wang/longgong/NewProductTest.js
index b0f6285..ca63af7 100644
--- a/javascript/xuanran.wang/longgong/NewProductTest.js
+++ b/javascript/xuanran.wang/longgong/NewProductTest.js
@@ -8,8 +8,8 @@ const threeMonthIndex = 1;
const submitWaitNode = WfForm.convertFieldNameToId("sftjddjd");
// 下次超时提醒日期
const timeoutRemindDateFiled = WfForm.convertFieldNameToId("cstxrq");
-// 跟踪天数
-const trackingDays = WfForm.getFieldValue(trackTimeField) <= 1 ? 15 : 30;
+// 跟踪天数 <= 1 ? 15 : 30;
+const trackingDaysField = WfForm.convertFieldNameToId("gzts")
// 跟踪触发行数
const trackingLineField = WfForm.convertFieldNameToId("gzcfxs");
$(() => {
@@ -44,6 +44,7 @@ function getNodeNum(){
let currentDate = getCurrentDate();
let dayDiff = getDaysDiff(firstSaleDate, currentDate);
console.log('当前天数与首台销售日期相差天数 : ', dayDiff)
+ let trackingDays = WfForm.getFieldValue(trackingDaysField);
return Math.floor(dayDiff / trackingDays) + 1;
}
@@ -52,6 +53,7 @@ function initTimeoutDate(){
let firstSaleDate = WfForm.getFieldValue(firstSaleDateField);
const nodeNum = getNodeNum();
console.log('到达节点次数 ', nodeNum);
+ let trackingDays = WfForm.getFieldValue(trackingDaysField);
console.log('跟踪天数 ', trackingDays);
let computeTimeoutDate = addDays(firstSaleDate, nodeNum * trackingDays);
console.log('计算下次超时日期 ', computeTimeoutDate);
diff --git a/src/main/java/aiyh/utils/action/CusBaseCronJob.java b/src/main/java/aiyh/utils/action/CusBaseCronJob.java
index 2ac99a4..87d82b1 100644
--- a/src/main/java/aiyh/utils/action/CusBaseCronJob.java
+++ b/src/main/java/aiyh/utils/action/CusBaseCronJob.java
@@ -5,6 +5,8 @@ import aiyh.utils.excention.CustomerException;
import org.apache.log4j.Logger;
import weaver.interfaces.schedule.BaseCronJob;
+import java.io.IOException;
+
/**
*
基础定时任务模板方法
*
@@ -41,7 +43,7 @@ public abstract class CusBaseCronJob extends BaseCronJob {
*
* @author youHong.ai ******************************************
*/
- public abstract void runCode();
+ public abstract void runCode() throws IOException;
/**
diff --git a/src/main/java/aiyh/utils/recordset/ResultMapper.java b/src/main/java/aiyh/utils/recordset/ResultMapper.java
index 1f1389d..c25e24e 100644
--- a/src/main/java/aiyh/utils/recordset/ResultMapper.java
+++ b/src/main/java/aiyh/utils/recordset/ResultMapper.java
@@ -586,7 +586,7 @@ public class ResultMapper {
if (collectionMapping != null) {
Object collection = collection(rs, collectionMapping, method);
try {
- if (Objects.nonNull(value)) {
+ if (Objects.nonNull(collection)) {
propertyDescriptor.getWriteMethod().invoke(o, collection);
}
} catch (Exception e) {
diff --git a/src/main/java/com/api/bokang/xiao/porsche_repush/controller/ContractRePushController.java b/src/main/java/com/api/bokang/xiao/porsche_repush/controller/ContractRePushController.java
new file mode 100644
index 0000000..137ef38
--- /dev/null
+++ b/src/main/java/com/api/bokang/xiao/porsche_repush/controller/ContractRePushController.java
@@ -0,0 +1,54 @@
+package com.api.bokang.xiao.porsche_repush.controller;
+
+import aiyh.utils.ApiResult;
+import aiyh.utils.Util;
+import com.api.bokang.xiao.porsche_repush.service.ContractRePushService;
+import io.swagger.v3.oas.annotations.parameters.RequestBody;
+import org.apache.log4j.Logger;
+import weaver.hrm.HrmUserVarify;
+import weaver.hrm.User;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.ws.rs.*;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.MediaType;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @ClassName ContractRePushController
+ * @Author 肖博亢
+ * @Date 2023/5/10 10:47
+ * @Description
+ **/
+@Path("/xbk/porsche_repush")
+public class ContractRePushController {
+
+ private final Logger log = Util.getLogger();
+
+ private final ContractRePushService contractRePushService = new ContractRePushService();
+
+ /**
+ * 获取流程的总数
+ * @param request 请求体
+ * @param response 响应体
+ * @param param 请求参数
+ * @return 请求结果
+ */
+ @Path("/contractRePush")
+ @POST
+ @Produces(MediaType.APPLICATION_JSON)
+ public String contractRePush(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody Map param) {
+ try{
+ log.info("into contractRePush success params ==> "+param);
+ User loginUser = HrmUserVarify.getUser(request, response);
+ List