导入修复

This commit is contained in:
guoshengxiong 2024-06-21 17:29:08 +08:00
parent af18c1ce8b
commit f764c944f6
2 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import com.zhgd.xmgl.modules.basicdata.mapper.SystemUserMapper;
import com.zhgd.xmgl.util.DateUtils; import com.zhgd.xmgl.util.DateUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
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;
@ -30,12 +31,16 @@ import java.util.stream.Collectors;
@Slf4j @Slf4j
@Component @Component
public class AsyncCheckingPoint { public class AsyncCheckingPoint {
@Lazy
@Autowired @Autowired
private IMqttSender mqttPushClient; private IMqttSender mqttPushClient;
@Lazy
@Autowired @Autowired
private SystemUserMapper systemUserMapper; private SystemUserMapper systemUserMapper;
@Lazy
@Autowired @Autowired
private AsyncCommon asyncCommon; private AsyncCommon asyncCommon;
@Lazy
@Autowired @Autowired
private NoticeMapper noticeMapper; private NoticeMapper noticeMapper;

View File

@ -18,6 +18,7 @@ import com.zhgd.xmgl.modules.checking.mapper.CheckingPointAlarmMapper;
import com.zhgd.xmgl.modules.checking.mapper.CheckingPointInfoMapper; import com.zhgd.xmgl.modules.checking.mapper.CheckingPointInfoMapper;
import com.zhgd.xmgl.modules.checking.service.CheckingPointAlarmService; import com.zhgd.xmgl.modules.checking.service.CheckingPointAlarmService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -45,6 +46,7 @@ public class CheckingPointAlarmServiceImpl extends ServiceImpl<CheckingPointAlar
CheckingPointInfoMapper checkingPointInfoMapper; CheckingPointInfoMapper checkingPointInfoMapper;
@Resource @Resource
@Lazy
AsyncCheckingPoint asyncCheckingPoint; AsyncCheckingPoint asyncCheckingPoint;
@Override @Override