浏览代码

怀仁光伏逆变器导出修改

wangb 2 年之前
父节点
当前提交
10a8bc97c0

+ 19 - 12
web/monitor-web-sxjn/src/main/java/com/gyee/SpringbootStart.java

@@ -26,7 +26,7 @@ public class SpringbootStart {
 
 
               InitialPointGoldenService initialPointGoldenService= SpringUtils.getBean("initialPointGoldenService");
-////
+//
 //        System.out.println("开始导出风机测点。。。。。。");
 //        initialPointGoldenService.initalFj();
 //        System.out.println("结束导出风机测点。。。。。。");
@@ -34,8 +34,8 @@ public class SpringbootStart {
 //        System.out.println("开始导出风场测点。。。。。。");
 //        initialPointGoldenService.initalFc();
 //        System.out.println("结束导出风场测点。。。。。。");
-//
-//
+
+
 //        System.out.println("开始导出风功率测点。。。。。。");
 //        initialPointGoldenService.initalFgl();
 //        System.out.println("结束导出风功率测点。。。。。。");
@@ -46,20 +46,27 @@ public class SpringbootStart {
 //        System.out.println("结束导出地调测点。。。。。。");
 
 
-//
+
+        String[] arr = {"HR01_XL"};
         System.out.println("开始导出逆变器测点。。。。。。");
-        initialPointGoldenService.initalNbq();
+        for(String s:arr){
+            initialPointGoldenService.initalNbq(s);
+        }
+//        initialPointGoldenService.initalNbq();
         System.out.println("结束导出逆变器测点。。。。。。");
 
 
 
-        System.out.println("开始导出汇流箱测点。。。。。。");
-        initialPointGoldenService.initalHlx();
-        System.out.println("结束导出汇流箱测点。。。。。。");
-
-        System.out.println("开始导出支路测点。。。。。。");
-        initialPointGoldenService.initalZl();
-        System.out.println("结束导出支路测点。。。。。。");
+//        System.out.println("开始导出汇流箱测点。。。。。。");
+//        initialPointGoldenService.initalHlx();
+//        System.out.println("结束导出汇流箱测点。。。。。。");
+//
+//        String[] arr = {"PL01_XL","PL02_XL","PL03_XL","PL04_XL","PL05_XL"};
+//       System.out.println("开始导出支路测点。。。。。。");
+//        for(String s:arr) {
+//            initialPointGoldenService.initalZl(s);
+//        }
+//        System.out.println("结束导出支路测点。。。。。。");
 
 
 //        System.out.println("初始化结束!");

+ 2 - 2
web/monitor-web-sxjn/src/main/java/com/gyee/frame/common/spring/InitialRunner.java

@@ -483,7 +483,7 @@ public class InitialRunner implements CommandLineRunner {
 
 
         WindpowerstationExample.Criteria cr=windpowerstationExample.createCriteria();
-        cr.andIdNotLike("%HR_GDC%");
+//        cr.andIdNotLike("%HR_GDC%");
 //        cr.andIdNotLike("%PL_GDC%");
         cr.andIdNotLike("%TL_GDC%");
         cr.andIdNotLike("%TZ_GDC%");
@@ -579,7 +579,7 @@ public class InitialRunner implements CommandLineRunner {
         projectExample.setOrderByClause("ordernum ASC");
 //        projectExample.createCriteria().andWindpowerstationidNotLike("%SY_FDC%");
         ProjectExample.Criteria pjcr=projectExample.createCriteria();
-        pjcr.andWindpowerstationidNotLike("%HR_GDC%");
+//        pjcr.andWindpowerstationidNotLike("%HR_GDC%");
 //        pjcr.andWindpowerstationidNotLike("%PL_GDC%");
         pjcr.andWindpowerstationidNotLike("%TL_GDC%");
         pjcr.andWindpowerstationidNotLike("%TZ_GDC%");

+ 1 - 1
web/monitor-web-sxjn/src/main/java/com/gyee/frame/service/initialpoint/InitialPointGoldenService.java

@@ -1365,7 +1365,7 @@ public class InitialPointGoldenService implements  IinitialPoint {
 
 //                if (wp.getId().endsWith("GDC") && (wp.getId().equals("FS_GDC") || wp.getId().equals("TL_GDC")
 //                        ||  wp.getId().equals("PL_GDC") ||  wp.getId().equals("YX_GDC")  || wp.getId().equals("JR_GDC")))
-                if (wp.getId().endsWith("GDC") && (wp.getId().equals("PL_GDC"))) {
+                if (wp.getId().endsWith("GDC") && (wp.getId().equals("HR_GDC"))) {
                     for (Inverter wt : wtls) {
 
                         List<PhotovoltaicTestingPointNew> points = new ArrayList<>();

+ 1 - 1
web/monitor-web-sxjn/src/main/java/com/gyee/frame/service/photovolatic/BoxChangeService.java

@@ -95,7 +95,7 @@ public class BoxChangeService implements BaseService<BoxChange, BoxChangeExample
     public List<BoxChange> selectAll() {
         BoxChangeExample example=new BoxChangeExample();
 		BoxChangeExample.Criteria cr=example.createCriteria();
-		cr.andWindpowerstationidNotLike("%HR_GDC%");
+//		cr.andWindpowerstationidNotLike("%HR_GDC%");
 //		cr.andWindpowerstationidNotLike("%PL_GDC%");
 		cr.andWindpowerstationidNotLike("%TL_GDC%");
 		cr.andWindpowerstationidNotLike("%TZ_GDC%");

+ 1 - 1
web/monitor-web-sxjn/src/main/java/com/gyee/frame/service/photovolatic/InverterService.java

@@ -95,7 +95,7 @@ public class InverterService implements BaseService<Inverter, InverterExample> {
     public List<Inverter> selectAll() {
         InverterExample example=new InverterExample();
 		InverterExample.Criteria cr=example.createCriteria();
-		cr.andWindpowerstationidNotLike("%HR_GDC%");
+//		cr.andWindpowerstationidNotLike("%HR_GDC%");
 //		cr.andWindpowerstationidNotLike("%PL_GDC%");
 		cr.andWindpowerstationidNotLike("%TL_GDC%");
 		cr.andWindpowerstationidNotLike("%TZ_GDC%");

+ 1 - 1
web/monitor-web-sxjn/src/main/java/com/gyee/frame/service/photovolatic/JunctionboxService.java

@@ -95,7 +95,7 @@ public class JunctionboxService implements BaseService<Junctionbox, JunctionboxE
     public List<Junctionbox> selectAll() {
         JunctionboxExample example=new JunctionboxExample();
 		JunctionboxExample.Criteria cr=example.createCriteria();
-		cr.andWindpowerstationidNotLike("%HR_GDC%");
+//		cr.andWindpowerstationidNotLike("%HR_GDC%");
 //		cr.andWindpowerstationidNotLike("%PL_GDC%");
 		cr.andWindpowerstationidNotLike("%TL_GDC%");
 		cr.andWindpowerstationidNotLike("%TZ_GDC%");

+ 1 - 1
web/monitor-web-sxjn/src/main/java/com/gyee/frame/service/photovolatic/PhotovoltaicTestingPointNewService.java

@@ -98,7 +98,7 @@ public class PhotovoltaicTestingPointNewService implements BaseService<Photovolt
     public List<PhotovoltaicTestingPointNew> selectAll() {
         PhotovoltaicTestingPointNewExample example=new PhotovoltaicTestingPointNewExample();
         PhotovoltaicTestingPointNewExample.Criteria cr=example.createCriteria();
-        cr.andWindpowerstationidNotLike("%HR_GDC%");
+//        cr.andWindpowerstationidNotLike("%HR_GDC%");
 //        cr.andWindpowerstationidNotLike("%PL_GDC%");
         cr.andWindpowerstationidNotLike("%TL_GDC%");
         cr.andWindpowerstationidNotLike("%TZ_GDC%");

+ 1 - 1
web/monitor-web-sxjn/src/main/java/com/gyee/frame/service/photovolatic/SquareService.java

@@ -95,7 +95,7 @@ public class SquareService implements BaseService<Square, SquareExample> {
     public List<Square> selectAll() {
         SquareExample example=new SquareExample();
 		SquareExample.Criteria cr=example.createCriteria();
-		cr.andWindpowerstationidNotLike("%HR_GDC%");
+//		cr.andWindpowerstationidNotLike("%HR_GDC%");
 //		cr.andWindpowerstationidNotLike("%PL_GDC%");
 		cr.andWindpowerstationidNotLike("%TL_GDC%");
 		cr.andWindpowerstationidNotLike("%TZ_GDC%");