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