Browse Source

修改周期计算中的bug

zhangyao 3 weeks ago
parent
commit
fb323962f3

+ 1 - 1
com.awspaas.user.apps.donenow_ctt/src/com/awspaas/user/apps/donenow_ctt/PeriodCalculationUtil.java

@@ -287,7 +287,7 @@ public class PeriodCalculationUtil {
         }
 
         // 3.2 处理首个周期
-        if (currLastDay != null && currLastDay.equals(periodBeginDate) == false) {
+        if (currLastDay != null) {
 
             if(currLastDay.isAfter(periodEndDate))
                 currLastDay=periodEndDate;

+ 1 - 1
com.awspaas.user.apps.donenow_ivt/src/com/awspaas/user/apps/donenow_ivt/utils/PeriodCalculationUtil.java

@@ -287,7 +287,7 @@ public class PeriodCalculationUtil {
         }
 
         // 3.2 处理首个周期
-        if (currLastDay != null && currLastDay.equals(periodBeginDate) == false) {
+        if (currLastDay != null) {
             if(currLastDay.isAfter(periodEndDate))
                 currLastDay=periodEndDate;
             if (userMonthDay) {