|
@@ -1,30 +1,14 @@
|
|
|
package com.jiayue.biz.service.impl;
|
|
|
|
|
|
-import cn.hutool.core.date.DateTime;
|
|
|
-import cn.hutool.core.util.StrUtil;
|
|
|
-import cn.hutool.db.Entity;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.jiayue.biz.domain.*;
|
|
|
-import com.jiayue.biz.dto.EquipmentDto;
|
|
|
-import com.jiayue.biz.dto.ProjectEvolveDto;
|
|
|
-import com.jiayue.biz.dto.ProjectInfoDto;
|
|
|
-import com.jiayue.biz.dto.SelectLabForVal;
|
|
|
-import com.jiayue.biz.eunms.WindDirectionEnum;
|
|
|
import com.jiayue.biz.mapper.WindTowerDataParentTableMapper;
|
|
|
import com.jiayue.biz.service.*;
|
|
|
-import com.jiayue.biz.util.CalculationUtil;
|
|
|
-import com.jiayue.biz.util.DateTimeUtil;
|
|
|
-import com.jiayue.common.utils.DateUtil;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
+import org.springframework.data.mongodb.core.MongoTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.math.BigDecimal;
|
|
|
-import java.math.RoundingMode;
|
|
|
-import java.sql.Timestamp;
|
|
|
-import java.text.ParseException;
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* 人工录入Service业务层处理
|
|
@@ -40,6 +24,8 @@ public class ManualEntryServiceImpl extends ServiceImpl<WindTowerDataParentTable
|
|
|
|
|
|
private final ProvincialEnergyStationsService provincialEnergyStationsService;
|
|
|
|
|
|
+ private final MongoTemplate mongoTemplate;
|
|
|
+
|
|
|
/*
|
|
|
* 获取光伏站下拉框,风场站的下拉框
|
|
|
*/
|
|
@@ -70,6 +56,12 @@ public class ManualEntryServiceImpl extends ServiceImpl<WindTowerDataParentTable
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
+ //更新
|
|
|
+ public void updateProvincialEnergyStations(ProvincialEnergyStations provincialEnergyStations){
|
|
|
+ mongoTemplate.save(provincialEnergyStations,"province_info");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
//获取华电以及全省资源概况
|
|
|
public ProvincialEnergyStations getProvincialEnergyStations() {
|
|
|
return provincialEnergyStationsService.getProvincialEnergyStations();
|