|
@@ -19,11 +19,13 @@ import com.energy.manage.common.reponse.ResultResp;
|
|
|
import com.energy.manage.common.util.IdGeneratorUtil;
|
|
|
import com.energy.manage.service.domain.dto.anemometertower.AnemometerTowerDto;
|
|
|
import com.energy.manage.service.domain.dto.anemometertower.AnemometerTowerRelationDto;
|
|
|
+import com.energy.manage.service.domain.dto.company.WindCompanyDelDto;
|
|
|
import com.energy.manage.service.domain.dto.company.WindCompanyDto;
|
|
|
import com.energy.manage.service.domain.dto.windfield.*;
|
|
|
import com.energy.manage.service.domain.dto.windrelation.WindRelationDelDto;
|
|
|
import com.energy.manage.service.domain.dto.windrelation.WindRelationDto;
|
|
|
import com.energy.manage.service.domain.vo.anemometertower.AnemometerTowerByFieldVo;
|
|
|
+import com.energy.manage.service.domain.vo.company.WindCompanyVo;
|
|
|
import com.energy.manage.service.domain.vo.excel.WindFieldExceVo;
|
|
|
import com.energy.manage.service.domain.vo.windenginemill.WindEngineMillVo;
|
|
|
import com.energy.manage.service.domain.vo.windfield.WindFieldNameVo;
|
|
@@ -35,6 +37,7 @@ import com.energy.manage.service.mappers.windfield.WindFieldMapper;
|
|
|
import com.energy.manage.service.service.anemometertower.AnemometerTowerService;
|
|
|
import com.energy.manage.service.service.area.AreaApiService;
|
|
|
import com.energy.manage.service.service.cache.CacheService;
|
|
|
+import com.energy.manage.service.service.company.WindCompanyService;
|
|
|
import com.energy.manage.service.service.windfield.WindFieldResourceService;
|
|
|
import com.energy.manage.service.service.windfield.WindFieldService;
|
|
|
import com.energy.manage.service.service.windrelation.WindRelationService;
|
|
@@ -69,6 +72,8 @@ public class WindFieldServiceImpl extends BaseServiceImpl<WindFieldPO> implement
|
|
|
@Autowired
|
|
|
private CacheService cacheService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private WindCompanyService windCompanyService;
|
|
|
|
|
|
@Autowired
|
|
|
private WindFieldMapper windFieldMapper;
|
|
@@ -82,7 +87,6 @@ public class WindFieldServiceImpl extends BaseServiceImpl<WindFieldPO> implement
|
|
|
@Autowired
|
|
|
private WindFieldResourceService windFieldResourceService;
|
|
|
|
|
|
-
|
|
|
@Autowired
|
|
|
private WindRelationService windRelationService;
|
|
|
|
|
@@ -111,7 +115,7 @@ public class WindFieldServiceImpl extends BaseServiceImpl<WindFieldPO> implement
|
|
|
for (WindFieldDto.AnemometerTowerRelationDto anemometerTowerRelationDto1 : windFieldDto.getAnemometerTowerRelationDtos()) {
|
|
|
anemometerTowerRelationDto = new AnemometerTowerRelationDto();
|
|
|
BeanUtils.copyProperties(anemometerTowerRelationDto1, anemometerTowerRelationDto);
|
|
|
- anemometerTowerRelationDto.setFieldCode(windFieldDto.getFieldCode());
|
|
|
+ anemometerTowerRelationDto.setFieldCode(windFieldPO.getFieldCode());
|
|
|
anemometerTowerDtos.add(anemometerTowerRelationDto);
|
|
|
}
|
|
|
anemometerTowerService.bathAnemometerTowerRelation(anemometerTowerDtos);
|
|
@@ -310,6 +314,14 @@ public class WindFieldServiceImpl extends BaseServiceImpl<WindFieldPO> implement
|
|
|
WindFieldVo windFieldVo = new WindFieldVo();
|
|
|
BeanUtil.copyProperties(po, windFieldVo);
|
|
|
|
|
|
+ // 查询企业对象
|
|
|
+ WindCompanyDelDto windCompanyDelDto = new WindCompanyDelDto();
|
|
|
+ windCompanyDelDto.setCompanyCode(po.getCompanyCode());
|
|
|
+ WindCompanyVo windCompanyVo = windCompanyService.getWindCompany(windCompanyDelDto);
|
|
|
+ if(windCompanyVo!=null){
|
|
|
+ windFieldVo.setCompanyName(windCompanyVo.getCompanyName());
|
|
|
+ }
|
|
|
+
|
|
|
//测风塔数据
|
|
|
List<AnemometerTowerByFieldVo> list = anemometerTowerService.getAnemometerTowerByField(windFieldCodeDto.getFieldCode());
|
|
|
if (!CollectionUtils.isEmpty(list)) {
|