This commit is contained in:
zt
2025-10-24 20:17:03 +08:00
parent ced6cb219c
commit 56418600c5
3 changed files with 9 additions and 1 deletions

View File

@ -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;
//发送短信

View File

@ -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("已开始执行,请稍后刷新");
}
}

View File

@ -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;