fyz 1 месяц назад
Родитель
Сommit
8cfa7b7e68

+ 7 - 4
mjava-lanyun/src/main/java/com/malk/lanyun/service/impl/NCServiceImpl.java

@@ -320,6 +320,8 @@ public class NCServiceImpl implements NCService {
             resultSet = statement.executeQuery(sql);
 
             while (resultSet.next()) {
+                log.info("结果集数据数量:{},",resultSet.getFetchSize());
+
 //                if (ObjectUtil.isNotNull(resultSet.getString("xmcode"))){
                     Map hashMap = new HashMap();
 
@@ -364,7 +366,7 @@ public class NCServiceImpl implements NCService {
         // 获取当前年
         int year = lastMonth.getYear();
         String month = String.format("%02d",lastMonth.getMonthValue()) ;
-        deleteMonthDate("FORM-5654B7C22E7546E9BBE7B4EF46DE08BAXZXU","textField_m0dkzhwo", String.valueOf(year),month);
+        deleteMonthDate("FORM-0A7979E168AF494F9AA190F043DCBBC7CW9Z","textField_m0dkzhwo", String.valueOf(year),month);
 
         System.out.println(month);
         Connection connection = null;
@@ -1949,7 +1951,8 @@ public class NCServiceImpl implements NCService {
             resultSet = statement.executeQuery(sql);
 
             while (resultSet.next()) {
-                if (ObjectUtil.isNotNull(resultSet.getString("xmcode"))){
+                log.info("结果集数据数量:{},",resultSet.getFetchSize());
+//                if (ObjectUtil.isNotNull(resultSet.getString("xmcode"))){
                     Map hashMap = new HashMap();
 
                     String yearAndNonth = year +"-"+month;
@@ -1972,7 +1975,7 @@ public class NCServiceImpl implements NCService {
                             .formDataJson(JSON.toJSONString(hashMap))
                             .build(), YDConf.FORM_OPERATION.create);
                 }
-            }
+//            }
         } catch (Exception e) {
             log.info("数据库连接异常"+e.toString());
             e.printStackTrace();
@@ -1993,7 +1996,7 @@ public class NCServiceImpl implements NCService {
 
         String year = data.get("year").toString();
         String month = data.get("month").toString();
-        deleteMonthDate("FORM-5654B7C22E7546E9BBE7B4EF46DE08BAXZXU","textField_m0dkzhwo", year,month);
+        deleteMonthDate("FORM-0A7979E168AF494F9AA190F043DCBBC7CW9Z","textField_m0dkzhwo", year,month);
 
         System.out.println(month);
         Connection connection = null;