Commit 50bac7f1 by 徐高华

Merge branch 'master-xgh-好办停用' into 'developer'

删除好办定时

See merge request !223
parents 2d23bdf9 bd4c711e
...@@ -2,6 +2,7 @@ package com.gic.haoban.manage.service.service.out.impl; ...@@ -2,6 +2,7 @@ package com.gic.haoban.manage.service.service.out.impl;
import java.util.Map; import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -52,10 +53,14 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService { ...@@ -52,10 +53,14 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService {
} }
private void deleteQuartz(String enterpriseId) { private void deleteQuartz(String enterpriseId) {
if(StringUtils.isBlank(enterpriseId)) {
return ;
}
log.info("删除好办定时eid={}",enterpriseId); log.info("删除好办定时eid={}",enterpriseId);
// 日报
QuartzTaskDTO task = new QuartzTaskDTO(); QuartzTaskDTO task = new QuartzTaskDTO();
task.setTaskService("com.gic.haoban.app.daily.api.service.DailyReportJobApiService"); task.setTaskService("com.gic.haoban.app.daily.api.service.DailyReportTaskApiService");
task.setTaskMethod("callBack"); task.setTaskMethod("run");
task.setReferId(enterpriseId); task.setReferId(enterpriseId);
this.quartzService.delQuartzTask(task); this.quartzService.delQuartzTask(task);
} }
......
...@@ -485,6 +485,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService { ...@@ -485,6 +485,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
dto.setType(1); dto.setType(1);
Map<String,String> map = new HashMap<>() ; Map<String,String> map = new HashMap<>() ;
map.put("enterpriseId", enterpriseId) ; map.put("enterpriseId", enterpriseId) ;
dto.setParams(map);
this.haobanCommonMQApiService.putCommonMessage(dto); 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