Commit bd4c711e by 徐高华

删除好办定时

parent 3f20c8ee
......@@ -2,6 +2,7 @@ package com.gic.haoban.manage.service.service.out.impl;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -52,10 +53,14 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService {
}
private void deleteQuartz(String enterpriseId) {
if(StringUtils.isBlank(enterpriseId)) {
return ;
}
log.info("删除好办定时eid={}",enterpriseId);
// 日报
QuartzTaskDTO task = new QuartzTaskDTO();
task.setTaskService("com.gic.haoban.app.daily.api.service.DailyReportJobApiService");
task.setTaskMethod("callBack");
task.setTaskService("com.gic.haoban.app.daily.api.service.DailyReportTaskApiService");
task.setTaskMethod("run");
task.setReferId(enterpriseId);
this.quartzService.delQuartzTask(task);
}
......
......@@ -485,6 +485,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
dto.setType(1);
Map<String,String> map = new HashMap<>() ;
map.put("enterpriseId", enterpriseId) ;
dto.setParams(map);
this.haobanCommonMQApiService.putCommonMessage(dto);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment