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.system.domain.vo.SysOssVo;
|
||||
import org.dromara.system.service.ISysOssService;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@ -26,10 +27,13 @@ import java.util.List;
|
||||
public class AsyncUtil {
|
||||
|
||||
@Resource
|
||||
@Lazy
|
||||
private DeviceMessageSender deviceMessageSender;
|
||||
@Resource
|
||||
@Lazy
|
||||
private ISysOssService ossService;
|
||||
@Resource
|
||||
@Lazy
|
||||
private IBusAttendanceMachineService attendanceMachineService;
|
||||
|
||||
//发送短信
|
||||
|
||||
@ -99,8 +99,9 @@ public class BusAttendanceMachineController extends BaseController {
|
||||
@SaCheckPermission("project:attendanceMachine:reissue")
|
||||
@RepeatSubmit()
|
||||
@PostMapping("/reissue/{ids}")
|
||||
public void reissue(@NotEmpty(message = "主键不能为空")
|
||||
public R<Void> reissue(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable Long[] 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.service.ISysOssService;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@ -62,9 +63,11 @@ public class BusAttendanceMachineServiceImpl extends ServiceImpl<BusAttendanceMa
|
||||
private DeviceMessageSender deviceMessageSender;
|
||||
|
||||
@Resource
|
||||
@Lazy
|
||||
private ISubConstructionUserService constructionUserService;
|
||||
|
||||
@Resource
|
||||
@Lazy
|
||||
private ISysOssService ossService;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user