|
|
@@ -42,7 +42,7 @@ public class XxlJobUtils {
|
|
|
* @author : 洪旭东
|
|
|
* @date : 2022-06-29 14:15
|
|
|
*/
|
|
|
- public int create(int second, Long planId, String type) {
|
|
|
+ public int create(int second, String planId, String type) {
|
|
|
Map<String, Map<String, Object>> followPlan = xxlJobInfoConfig.getInfo();
|
|
|
int jobGroup = xxlJobInfoConfig.getJobGroup();
|
|
|
|
|
|
@@ -60,7 +60,7 @@ public class XxlJobUtils {
|
|
|
xxlJobInfo.setExecutorTimeout(0);
|
|
|
xxlJobInfo.setExecutorFailRetryCount(0);
|
|
|
xxlJobInfo.setGlueRemark("GLUE代码初始化");
|
|
|
- xxlJobInfo.setExecutorParam(String.valueOf(planId));
|
|
|
+ xxlJobInfo.setExecutorParam(planId);
|
|
|
|
|
|
Map<String, String> header = new HashMap<>(2);
|
|
|
// header.put("Cookie","XXL_JOB_LOGIN_IDENTITY=7b226964223a312c22757365726e616d65223a2261646d696e222c2270617373776f7264223a226531306164633339343962613539616262653536653035376632306638383365222c22726f6c65223a312c227065726d697373696f6e223a6e756c6c7d");
|
|
|
@@ -74,9 +74,8 @@ public class XxlJobUtils {
|
|
|
//提醒时间有问题,任务间隔时间为负数
|
|
|
if (resultVO.getData()!=null &&
|
|
|
Constant.StringConstant.XXL_JOB_ERROR_MESSAGE.getName().equals(resultVO.getData().getString("msg"))){
|
|
|
- // TODO
|
|
|
-// throw new BaseBusinessException(ErrorCodeEnum.CUSTOMER_FOLLOW_NEXT_TIME_OVER.getCode(),
|
|
|
-// ErrorCodeEnum.CUSTOMER_FOLLOW_NEXT_TIME_OVER.getMessage());
|
|
|
+ throw new BaseBusinessException(ErrorCodeEnum.CUSTOMER_FOLLOW_NEXT_TIME_OVER.getCode(),
|
|
|
+ ErrorCodeEnum.CUSTOMER_FOLLOW_NEXT_TIME_OVER.getMessage());
|
|
|
}
|
|
|
throw new BaseBusinessException(resultVO.getData().getInteger("code"), resultVO.getData().getString("msg"));
|
|
|
}
|