yujian
2019-03-05 c9eef762a23fabf7c05a460dc1cdc5aaca22e1c7
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java
@@ -1065,9 +1065,11 @@
      
      for (UserSystemCoupon userSystemCoupon: list) {
         // 激活
         userSystemCoupon.setStateActivated(1);
         userSystemCoupon.setUpdateTime(new Date());
         userSystemCouponMapper.updateByPrimaryKeySelective(userSystemCoupon);
         UserSystemCoupon update=new UserSystemCoupon();
         update.setId(userSystemCoupon.getId());
         update.setStateActivated(1);
         update.setUpdateTime(new Date());
         userSystemCouponMapper.updateByPrimaryKeySelective(update);
         
         Integer state = userSystemCoupon.getState();
         if (UserSystemCoupon.STATE_OVERDUE == state) {
@@ -1076,7 +1078,9 @@
         
         // 消息推送
         try {
            userOtherMsgNotificationService.welfareCouponActive(userSystemCoupon, new UserInfo(uid));
            UserInfo userInfo = userInfoService.selectByPKey(uid);
            userOtherMsgNotificationService.welfareCouponActive(userSystemCoupon, userInfo);
         } catch(Exception e) {
            try {
               LogHelper.errorDetailInfo(e);
@@ -1450,7 +1454,5 @@
      userInfoExtraService.saveUserInfoExtra(userInfoExtra);
   
   }
}