bug修改
This commit is contained in:
parent
19e4e016c2
commit
bb53af6a31
@ -19,6 +19,7 @@ import org.apache.commons.collections.MapUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.scheduling.annotation.AsyncResult;
|
||||
import org.springframework.stereotype.Component;
|
||||
@ -41,6 +42,7 @@ public class AsyncCommon {
|
||||
private INoticeService noticeService;
|
||||
@Autowired
|
||||
private SystemUserMapper systemUserMapper;
|
||||
@Lazy
|
||||
@Autowired
|
||||
AsyncAiAnalyse asyncAiAnalyse;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ package com.zhgd.xmgl.async;
|
||||
import com.zhgd.xmgl.modules.project.service.IProjectService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@ -15,6 +16,7 @@ import org.springframework.stereotype.Component;
|
||||
@Slf4j
|
||||
@Component
|
||||
public class AsyncDev {
|
||||
@Lazy
|
||||
@Autowired
|
||||
AsyncAiAnalyse asyncAiAnalyse;
|
||||
|
||||
|
||||
@ -12,6 +12,7 @@ import com.zhgd.xmgl.modules.project.service.IProjectService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@ -30,6 +31,7 @@ import java.util.stream.Collectors;
|
||||
public class AsyncDevExcavation {
|
||||
@Autowired
|
||||
private ISystemUserService systemUserService;
|
||||
@Lazy
|
||||
@Autowired
|
||||
AsyncAiAnalyse asyncAiAnalyse;
|
||||
|
||||
|
||||
@ -16,6 +16,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@ -38,6 +39,7 @@ public class AsyncLifter {
|
||||
private ThirdPartyPlatformServiceMapper thirdPartyPlatformServiceMapper;
|
||||
@Autowired
|
||||
private INoticeService noticeService;
|
||||
@Lazy
|
||||
@Autowired
|
||||
private AsyncAiAnalyse asyncAiAnalyse;
|
||||
|
||||
|
||||
@ -15,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@ -38,6 +39,7 @@ public class AsyncTower {
|
||||
private ThirdPartyPlatformServiceMapper thirdPartyPlatformServiceMapper;
|
||||
@Autowired
|
||||
private INoticeService noticeService;
|
||||
@Lazy
|
||||
@Autowired
|
||||
private AsyncAiAnalyse asyncAiAnalyse;
|
||||
|
||||
|
||||
@ -39,6 +39,7 @@ import com.zhgd.xmgl.modules.worker.entity.UserEnterprise;
|
||||
import com.zhgd.xmgl.modules.worker.entity.WorkerInfo;
|
||||
import com.zhgd.xmgl.modules.worker.mapper.WorkerInfoMapper;
|
||||
import com.zhgd.xmgl.modules.worker.service.IUserEnterpriseService;
|
||||
import com.zhgd.xmgl.modules.worker.service.impl.WorkerInfoServiceImpl;
|
||||
import com.zhgd.xmgl.modules.xz.entity.XzRegistry;
|
||||
import com.zhgd.xmgl.modules.xz.mapper.XzRegistryMapper;
|
||||
import com.zhgd.xmgl.modules.xz.service.impl.XzRegistryServiceImpl;
|
||||
@ -765,6 +766,9 @@ public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemU
|
||||
return systemUser.getUserId();
|
||||
}
|
||||
|
||||
@Autowired
|
||||
WorkerInfoServiceImpl workerInfoService;
|
||||
|
||||
@Override
|
||||
public void editSystemUser(SystemUser systemUser) {
|
||||
QueryWrapper<SystemUser> queryWrapper = new QueryWrapper<>();
|
||||
@ -795,13 +799,12 @@ public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemU
|
||||
systemUserMapper.updateById(systemUser);
|
||||
|
||||
if (systemUser.getAccountType() == 6) {
|
||||
WorkerInfo wi = new WorkerInfo();
|
||||
wi.setId(systemUser.getWorkerId());
|
||||
wi.setSex(systemUser.getSex());
|
||||
wi.setPersonMail(systemUser.getPersonMail());
|
||||
wi.setWorkerName(systemUser.getRealName());
|
||||
wi.setPhoneNumber(systemUser.getUserTel());
|
||||
workerInfoMapper.updateById(wi);
|
||||
WorkerInfo workerInfo = workerInfoMapper.selectById(systemUser.getWorkerId());
|
||||
workerInfo.setSex(systemUser.getSex());
|
||||
workerInfo.setPersonMail(systemUser.getPersonMail());
|
||||
workerInfo.setWorkerName(systemUser.getRealName());
|
||||
workerInfo.setPhoneNumber(systemUser.getUserTel());
|
||||
workerInfoService.editWorkerInfo(workerInfo);
|
||||
} else if (systemUser.getAccountType() == 10 || systemUser.getAccountType() == 11) {
|
||||
xzRegistryMapper.update(null, new LambdaUpdateWrapper<XzRegistry>()
|
||||
.set(XzRegistry::getEmail, systemUser.getPersonMail())
|
||||
|
||||
@ -31,6 +31,7 @@ import org.apache.commons.collections.MapUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@ -60,6 +61,7 @@ public class LifterCurrentDataServiceImpl extends ServiceImpl<LifterCurrentDataM
|
||||
private WorkerInfoMapper workerInfoMapper;
|
||||
@Autowired
|
||||
private LifterWorkCycleMapper lifterWorkCycleMapper;
|
||||
@Lazy
|
||||
@Autowired
|
||||
private AsyncLifter asyncLifter;
|
||||
@Autowired
|
||||
|
||||
@ -30,6 +30,7 @@ import com.zhgd.xmgl.util.YsVideoUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections.MapUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.StringUtils;
|
||||
@ -65,6 +66,7 @@ public class LifterServiceImpl extends ServiceImpl<LifterMapper, Lifter> impleme
|
||||
private BigDeviceDriverRecordMapper bigDeviceDriverRecordMapper;
|
||||
@Autowired
|
||||
private BigDeviceVideoMapper bigDeviceVideoMapper;
|
||||
@Lazy
|
||||
@Autowired
|
||||
private AsyncLifter asyncLifter;
|
||||
@Autowired
|
||||
|
||||
@ -39,6 +39,7 @@ import org.apache.commons.collections.MapUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.cglib.beans.BeanMap;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@ -70,6 +71,7 @@ public class TowerCurrentDataServiceImpl extends ServiceImpl<TowerCurrentDataMap
|
||||
private TowerMapper towerMapper;
|
||||
@Autowired
|
||||
private WorkerInfoMapper workerInfoMapper;
|
||||
@Lazy
|
||||
@Autowired
|
||||
private AsyncTower asyncTower;
|
||||
@Autowired
|
||||
|
||||
@ -32,6 +32,7 @@ import com.zhgd.xmgl.util.YsVideoUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections.MapUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.StringUtils;
|
||||
@ -75,6 +76,7 @@ public class TowerServiceImpl extends ServiceImpl<TowerMapper, Tower> implements
|
||||
private ICompanyService companyService;
|
||||
@Autowired
|
||||
private ProjectDevStatisticsMapper projectDevStatisticsMapper;
|
||||
@Lazy
|
||||
@Autowired
|
||||
private AsyncTower asyncTower;
|
||||
@Autowired
|
||||
|
||||
@ -16,6 +16,7 @@ import com.zhgd.xmgl.modules.inspection.mapper.InspectionRectifyRecordMapper;
|
||||
import com.zhgd.xmgl.modules.inspection.service.IInspectionRecordService;
|
||||
import org.apache.commons.collections.MapUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
@ -40,6 +41,7 @@ public class InspectionRecordServiceImpl extends ServiceImpl<InspectionRecordMap
|
||||
private InspectionRecordMapper inspectionRecordMapper;
|
||||
@Autowired
|
||||
private InspectionRectifyRecordMapper inspectionRectifyRecordMapper;
|
||||
@Lazy
|
||||
@Autowired
|
||||
private AsyncAiAnalyse asyncAiAnalyse;
|
||||
@Autowired
|
||||
|
||||
@ -58,6 +58,7 @@ import org.apache.commons.collections.MapUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
@ -96,6 +97,7 @@ public class AiAnalyseHardWareAlarmRecordServiceImpl extends ServiceImpl<AiAnaly
|
||||
private AiAnalyseHardWareRecordMapper aiAnalyseHardWareRecordMapper;
|
||||
@Autowired
|
||||
private UploadFileService uploadFileService;
|
||||
@Lazy
|
||||
@Autowired
|
||||
private AsyncAiAnalyse asyncAiAnalyse;
|
||||
@Autowired
|
||||
|
||||
@ -16,6 +16,7 @@ import net.javacrumbs.shedlock.core.SchedulerLock;
|
||||
import org.apache.commons.lang.time.DateUtils;
|
||||
import org.apache.hadoop.yarn.webapp.hamlet.Hamlet;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
@ -37,6 +38,7 @@ import java.util.stream.Collectors;
|
||||
@EnableScheduling
|
||||
public class MsgPushTask {
|
||||
|
||||
@Lazy
|
||||
@Autowired
|
||||
private AsyncAiAnalyse asyncAiAnalyse;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user