Commit 70dc4643 authored by tangwei's avatar tangwei

增加电站名称

parent f9df89a3
...@@ -20,4 +20,5 @@ public class TdJpStation implements Serializable { ...@@ -20,4 +20,5 @@ public class TdJpStation implements Serializable {
private String amosCompanyCode; //经销商code private String amosCompanyCode; //经销商code
private String thirdCode ;//厂商标识 private String thirdCode ;//厂商标识
private int isDelete; private int isDelete;
private String stationName; //名称
} }
...@@ -222,7 +222,7 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe ...@@ -222,7 +222,7 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
tdJpStation.setThirdStationId(stationIds.get(i)); tdJpStation.setThirdStationId(stationIds.get(i));
tdJpStation.setThirdCode(PVProducerInfoEnum.JLY.getCode()); tdJpStation.setThirdCode(PVProducerInfoEnum.JLY.getCode());
tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0); tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0);
tdJpStation.setStationName(jpStation.getName());
if (!ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) { if (!ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) {
tdJpStationMapper.insert(tdJpStation); tdJpStationMapper.insert(tdJpStation);
} else { } else {
......
...@@ -146,7 +146,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe ...@@ -146,7 +146,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
tdJpStation.setThirdStationId( jpStation.getThirdStationId()); tdJpStation.setThirdStationId( jpStation.getThirdStationId());
tdJpStation.setThirdCode(PVProducerInfoEnum.GDW.getCode()); tdJpStation.setThirdCode(PVProducerInfoEnum.GDW.getCode());
tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0); tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0);
tdJpStation.setStationName(jpStation.getName());
if (!org.springframework.util.ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) { if (!org.springframework.util.ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) {
tdJpStationMapper.insert(tdJpStation); tdJpStationMapper.insert(tdJpStation);
} else { } else {
......
...@@ -315,7 +315,7 @@ public class ImasterDataServiceImpl implements ImasterDataService { ...@@ -315,7 +315,7 @@ public class ImasterDataServiceImpl implements ImasterDataService {
tdJpStation.setThirdStationId( imasterStationList.getPlantCode()); tdJpStation.setThirdStationId( imasterStationList.getPlantCode());
tdJpStation.setThirdCode(PVProducerInfoEnum.HUAWEI.getCode()); tdJpStation.setThirdCode(PVProducerInfoEnum.HUAWEI.getCode());
tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0); tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0);
tdJpStation.setStationName(jpStation.getName());
if (!ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) { if (!ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) {
tdJpStationMapper.insert(tdJpStation); tdJpStationMapper.insert(tdJpStation);
} else { } else {
......
...@@ -255,7 +255,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe ...@@ -255,7 +255,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
tdJpStation.setThirdStationId( ksolarStation.getStationId()); tdJpStation.setThirdStationId( ksolarStation.getStationId());
tdJpStation.setThirdCode(PVProducerInfoEnum.KSOLAR.getCode()); tdJpStation.setThirdCode(PVProducerInfoEnum.KSOLAR.getCode());
tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0); tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0);
tdJpStation.setStationName(jpStation.getName());
if (!ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) { if (!ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) {
tdJpStationMapper.insert(tdJpStation); tdJpStationMapper.insert(tdJpStation);
......
...@@ -326,7 +326,7 @@ public class SofarDataAcquisitionServiceImpl implements SofarDataAcquisitionServ ...@@ -326,7 +326,7 @@ public class SofarDataAcquisitionServiceImpl implements SofarDataAcquisitionServ
tdJpStation.setThirdStationId( jpStation.getThirdStationId()); tdJpStation.setThirdStationId( jpStation.getThirdStationId());
tdJpStation.setThirdCode(PVProducerInfoEnum.SH.getCode()); tdJpStation.setThirdCode(PVProducerInfoEnum.SH.getCode());
tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0); tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0);
tdJpStation.setStationName(jpStation.getName());
if (!ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) { if (!ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) {
tdJpStationMapper.insert(tdJpStation); tdJpStationMapper.insert(tdJpStation);
} else { } else {
......
...@@ -318,6 +318,7 @@ public class SunlightServiceImpl implements SunlightService { ...@@ -318,6 +318,7 @@ public class SunlightServiceImpl implements SunlightService {
tdJpStation.setThirdStationId( jpStation.getThirdStationId()); tdJpStation.setThirdStationId( jpStation.getThirdStationId());
tdJpStation.setThirdCode( PVProducerInfoEnum.YG.getCode()); tdJpStation.setThirdCode( PVProducerInfoEnum.YG.getCode());
tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0); tdJpStation.setIsDelete(jpStation.getIsDelete()?1:0);
tdJpStation.setStationName(jpStation.getName());
if (!ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) { if (!ObjectUtils.isEmpty(tdJpStation.getCreatedTime())) {
tdJpStationMapper.insert(tdJpStation); tdJpStationMapper.insert(tdJpStation);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment