zhangyuewww 10 miesięcy temu
rodzic
commit
ef902104fb

+ 9 - 9
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/IdentityAuthenticationInfoServiceImpl.java

@@ -463,11 +463,11 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
 ////            c.add(Calendar.YEAR, -1);
 ////            Date y = c.getTime();
 //            String year = yearNum +"-"+monthNum+"-"+dayNum+" 00:00:00";
-            //本年3.1号
-            SimpleDateFormat now = new SimpleDateFormat("yyyy-03-01 00:00:00");
+            //去年10.1号
+            SimpleDateFormat now = new SimpleDateFormat("yyyy-10-01 00:00:00");
             Calendar c = Calendar.getInstance();
             c.setTime(new java.util.Date());
-            c.add(Calendar.YEAR, 0);
+            c.add(Calendar.YEAR, -1);
             Date y = c.getTime();
             String year = now.format(y);
             //公司id
@@ -554,11 +554,11 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
 ////            c.add(Calendar.YEAR, -1);
 ////            Date y = c.getTime();
 //        String year = yearNum +"-"+monthNum+"-"+dayNum+" 00:00:00";
-        //本年3.1号
-        SimpleDateFormat now = new SimpleDateFormat("yyyy-03-01 00:00:00");
+        //去年10.1号
+        SimpleDateFormat now = new SimpleDateFormat("yyyy-10-01 00:00:00");
         Calendar c = Calendar.getInstance();
         c.setTime(new java.util.Date());
-        c.add(Calendar.YEAR, 0);
+        c.add(Calendar.YEAR, -1);
         Date y = c.getTime();
         String year = now.format(y);
         //公司id
@@ -736,11 +736,11 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
 //        int dayNum = cal.get(Calendar.DAY_OF_MONTH);
 //        yearNum --;
 //        String year = yearNum +"-"+monthNum+"-"+dayNum+" 00:00:00";
-        //本年3.1号
-        SimpleDateFormat now = new SimpleDateFormat("yyyy-03-01 00:00:00");
+        //去年10.1号
+        SimpleDateFormat now = new SimpleDateFormat("yyyy-10-01 00:00:00");
         Calendar c = Calendar.getInstance();
         c.setTime(new java.util.Date());
-        c.add(Calendar.YEAR, 0);
+        c.add(Calendar.YEAR, -1);
         Date y = c.getTime();
         String year = now.format(y);
         //公司id

+ 3 - 3
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/PaymentManagementServiceImpl.java

@@ -1047,11 +1047,11 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
 //        int dayNum = cal.get(Calendar.DAY_OF_MONTH);
 //        yearNum --;
 //        String year = yearNum +"-"+monthNum+"-"+dayNum+" 00:00:00";
-        //本年3.1号
-        SimpleDateFormat now = new SimpleDateFormat("yyyy-03-01 00:00:00");
+        //去年10.1号
+        SimpleDateFormat now = new SimpleDateFormat("yyyy-10-01 00:00:00");
         Calendar c = Calendar.getInstance();
         c.setTime(new java.util.Date());
-        c.add(Calendar.YEAR, 0);
+        c.add(Calendar.YEAR, -1);
         Date y = c.getTime();
         String year = now.format(y);
         if (paymentManagement.getCompId() == null || paymentManagement.getCompId().isEmpty()) {

+ 3 - 3
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/QualityInspectionManagementServiceImpl.java

@@ -232,11 +232,11 @@ public class QualityInspectionManagementServiceImpl extends ServiceImpl<QualityI
 //        int dayNum = cal.get(Calendar.DAY_OF_MONTH);
 //        yearNum --;
 //        String year = yearNum +"-"+monthNum+"-"+dayNum+" 00:00:00";
-        //本年3.1号
-        SimpleDateFormat now = new SimpleDateFormat("yyyy-03-01 00:00:00");
+        //去年10.1号
+        SimpleDateFormat now = new SimpleDateFormat("yyyy-10-01 00:00:00");
         Calendar c = Calendar.getInstance();
         c.setTime(new java.util.Date());
-        c.add(Calendar.YEAR, 0);
+        c.add(Calendar.YEAR, -1);
         Date y = c.getTime();
         String year = now.format(y);
         if (qualityInspectionManagement.getGoodsName().contains("玉米")) {