wms租赁定时任务推送到bms(未完成 定时任务没有当前登录人 需要改造后面方法)

This commit is contained in:
zhou-hongcheng
2026-02-25 19:56:10 +08:00
parent d4a30d8b40
commit 2a570fbefc
19 changed files with 668 additions and 16 deletions
@@ -10,11 +10,14 @@ import com.mhd.common.core.enums.MessageTypeEnum;
import com.mhd.common.core.service.jPush.AsyncJPushApplicationService;
import com.mhd.common.core.utils.StringUtils;
import com.mhd.common.redis.service.RedisService;
import com.mhd.job.domain.SysJob;
import com.mhd.job.service.ISysJobService;
import com.mhd.system.api.SystemServiceFeign;
import com.mhd.system.api.UserServiceFeign;
import com.mhd.system.api.WlhyServiceFeign;
import lombok.extern.slf4j.Slf4j;
import org.quartz.SchedulerException;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -44,6 +47,26 @@ public class AppLocationTask {
@Resource
private SystemServiceFeign systemServiceFeign;
@Autowired
private ISysJobService jobService;
/**
* 整租同步bms调用
*/
public void getBms(){
systemServiceFeign.wholeRentSynchronization();
log.info("租赁同步bms调定任务调用完成");
SysJob sysJob = new SysJob();
sysJob.setInvokeTarget("appLocationTask.getBms");
List<SysJob> sysJobs = jobService.selectJobList(sysJob);
try {
jobService.deleteJob(sysJobs.get(0));
} catch (SchedulerException e) {
throw new RuntimeException(e);
}
}
public void getUserException(){
// log.info("app离线司机任务开始调用,时间{}", DateUtil.date());
//所有在运输的司机