yujian
2019-09-02 f723205213f94e291f140425c0d670f43e213c96
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java
@@ -249,7 +249,10 @@
      // 结束日期
      // 今天在内  减去一天
      String endDay = DateUtil.plusDay(expiryDay - 1, new Date());
      SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
      SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
      if (endDay != null && endDay.trim().length() > 0) {
         endDay += " 23:59:59";
      }
      Date endTime = format.parse(endDay);
      UserSystemCoupon userCoupon = new UserSystemCoupon();
@@ -1378,7 +1381,10 @@
         // 结束日期
         // 今天在内  减去一天
         String endDay = DateUtil.plusDay(systemCoupon.getExpiryDay() - 1, new Date());
         SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
         SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
         if (endDay != null && endDay.trim().length() > 0) {
            endDay += " 23:59:59";
         }
         Date endTime = format.parse(endDay);
         UserSystemCoupon userCoupon = new UserSystemCoupon();
@@ -1453,7 +1459,10 @@
         
         // 结束日期 今天在内  减去一天
         String endDay = DateUtil.plusDay(systemCoupon.getExpiryDay() - 1, new Date());
         SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
         SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
         if (endDay != null && endDay.trim().length() > 0) {
            endDay += " 23:59:59";
         }
         Date endTime = format.parse(endDay);
         
         UserSystemCoupon userCoupon = new UserSystemCoupon();
@@ -1590,7 +1599,10 @@
         
      //  计算结束日期:今天在内  减去一天
      String endDay = DateUtil.plusDay(expiryDay - 1, new Date());
      SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
      SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
      if (endDay != null && endDay.trim().length() > 0) {
         endDay += " 23:59:59";
      }
      Date endTime = format.parse(endDay);
      UserSystemCoupon userCoupon = new UserSystemCoupon();
@@ -2025,7 +2037,10 @@
         try {
            Integer expiryDay =  systemCoupon.getExpiryDay();
            String endDay = DateUtil.plusDay(expiryDay - 1, nowDate);
            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            if (endDay != null && endDay.trim().length() > 0) {
               endDay += " 23:59:59";
            }
            Date endTime = format.parse(endDay);
            
            UserSystemCoupon userCoupon = new UserSystemCoupon();