|
@@ -2,11 +2,14 @@ package com.energy.manage.service.service.windfieldbatch.impl;
|
|
|
|
|
|
import com.energy.manage.common.constant.redis.ManagerRedisKeyConstant;
|
|
|
import com.energy.manage.common.enums.IdPrefixEnum;
|
|
|
+import com.energy.manage.common.po.analysis.AnalysisResultPo;
|
|
|
import com.energy.manage.common.util.IdGeneratorUtil;
|
|
|
+import com.energy.manage.service.domain.dto.analysis.AnalysisResultDto;
|
|
|
import com.energy.manage.service.domain.dto.windfieldbatch.WindFieldBatchDto;
|
|
|
import com.energy.manage.service.domain.dto.windfieldbatch.WindFileBatchPageDto;
|
|
|
import com.energy.manage.service.domain.vo.windfield.WindFieldVo;
|
|
|
import com.energy.manage.service.domain.vo.windfieldbatch.WindFieldBatchVo;
|
|
|
+import com.energy.manage.service.mappers.analysis.AnalysisResultMapper;
|
|
|
import com.energy.manage.service.mappers.windfield.WindFieldMapper;
|
|
|
import com.energy.manage.service.mappers.windfieldbatch.WindFieldBatchMapper;
|
|
|
import com.energy.manage.service.service.cache.CacheService;
|
|
@@ -33,6 +36,9 @@ public class WindFieldBatchServiceImpl implements WindFieldBatchService {
|
|
|
@Autowired
|
|
|
private WindFieldMapper windFieldMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private AnalysisResultMapper analysisResultMapper;
|
|
|
+
|
|
|
@Autowired
|
|
|
private CacheService cacheService;
|
|
|
|
|
@@ -45,7 +51,10 @@ public class WindFieldBatchServiceImpl implements WindFieldBatchService {
|
|
|
windEgineBatchDto.setBatchCode(createWindFieldBatchCode(windEgineBatchDto.getFieldCode()));
|
|
|
WindFieldVo windFieldVo = windFieldMapper.selectByCodeNumber(windEgineBatchDto.getFieldCode());
|
|
|
windEgineBatchDto.setFieldName(windFieldVo.getFieldName());
|
|
|
- return windFieldBatchMapper.addWindFieldBatch(windEgineBatchDto);
|
|
|
+ windFieldBatchMapper.addWindFieldBatch(windEgineBatchDto);
|
|
|
+ AnalysisResultPo analysisResultPo = new AnalysisResultPo();
|
|
|
+ analysisResultPo.setBatchCode(windEgineBatchDto.getBatchCode());
|
|
|
+ return analysisResultMapper.insertSelective(analysisResultPo);
|
|
|
}
|
|
|
|
|
|
/**
|