1
This commit is contained in:
@ -15,6 +15,7 @@ import org.dromara.sms4j.api.entity.SmsResponse;
|
|||||||
import org.dromara.sms4j.core.factory.SmsFactory;
|
import org.dromara.sms4j.core.factory.SmsFactory;
|
||||||
import org.dromara.system.domain.vo.SysOssVo;
|
import org.dromara.system.domain.vo.SysOssVo;
|
||||||
import org.dromara.system.service.ISysOssService;
|
import org.dromara.system.service.ISysOssService;
|
||||||
|
import org.springframework.context.annotation.Lazy;
|
||||||
import org.springframework.scheduling.annotation.Async;
|
import org.springframework.scheduling.annotation.Async;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@ -26,10 +27,13 @@ import java.util.List;
|
|||||||
public class AsyncUtil {
|
public class AsyncUtil {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
@Lazy
|
||||||
private DeviceMessageSender deviceMessageSender;
|
private DeviceMessageSender deviceMessageSender;
|
||||||
@Resource
|
@Resource
|
||||||
|
@Lazy
|
||||||
private ISysOssService ossService;
|
private ISysOssService ossService;
|
||||||
@Resource
|
@Resource
|
||||||
|
@Lazy
|
||||||
private IBusAttendanceMachineService attendanceMachineService;
|
private IBusAttendanceMachineService attendanceMachineService;
|
||||||
|
|
||||||
//发送短信
|
//发送短信
|
||||||
|
|||||||
@ -99,8 +99,9 @@ public class BusAttendanceMachineController extends BaseController {
|
|||||||
@SaCheckPermission("project:attendanceMachine:reissue")
|
@SaCheckPermission("project:attendanceMachine:reissue")
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PostMapping("/reissue/{ids}")
|
@PostMapping("/reissue/{ids}")
|
||||||
public void reissue(@NotEmpty(message = "主键不能为空")
|
public R<Void> reissue(@NotEmpty(message = "主键不能为空")
|
||||||
@PathVariable Long[] ids){
|
@PathVariable Long[] ids){
|
||||||
busAttendanceMachineService.reissue(List.of(ids));
|
busAttendanceMachineService.reissue(List.of(ids));
|
||||||
|
return R.ok("已开始执行,请稍后刷新");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,6 +32,7 @@ import org.dromara.project.service.IBusProjectTeamService;
|
|||||||
import org.dromara.system.domain.vo.SysOssVo;
|
import org.dromara.system.domain.vo.SysOssVo;
|
||||||
import org.dromara.system.service.ISysOssService;
|
import org.dromara.system.service.ISysOssService;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.context.annotation.Lazy;
|
||||||
import org.springframework.scheduling.annotation.Async;
|
import org.springframework.scheduling.annotation.Async;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@ -62,9 +63,11 @@ public class BusAttendanceMachineServiceImpl extends ServiceImpl<BusAttendanceMa
|
|||||||
private DeviceMessageSender deviceMessageSender;
|
private DeviceMessageSender deviceMessageSender;
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
@Lazy
|
||||||
private ISubConstructionUserService constructionUserService;
|
private ISubConstructionUserService constructionUserService;
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
@Lazy
|
||||||
private ISysOssService ossService;
|
private ISysOssService ossService;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user