Ver código fonte

超级会员优惠券bugfix

chao 3 anos atrás
pai
commit
5ac103fab0

+ 3 - 3
src/main/java/com/caimei/modules/coupon/service/CmVipCouponService.java

@@ -353,7 +353,7 @@ public class CmVipCouponService extends CrudService<CmCouponVipDao, CmVipCoupon>
             // 逻辑删除
             cmCouponService.delete(coupon);
         }
-        cmCouponVipDao.update(cmVipCoupon);
+        cmCouponVipDao.updateVipCouponMonth(cmVipCoupon);
         // 逻辑删除关系表
         cmCouponVipDao.deleteByMonthId(cmVipCoupon.getId());
     }
@@ -366,7 +366,7 @@ public class CmVipCouponService extends CrudService<CmCouponVipDao, CmVipCoupon>
             coupon.setStatus("2");
             cmCouponService.save(coupon);
         }
-        cmCouponVipDao.update(cmVipCoupon);
+        cmCouponVipDao.updateVipCouponMonth(cmVipCoupon);
     }
 
     @Transactional(readOnly = false)
@@ -377,6 +377,6 @@ public class CmVipCouponService extends CrudService<CmCouponVipDao, CmVipCoupon>
             coupon.setStatus("1");
             cmCouponService.save(coupon);
         }
-        cmCouponVipDao.update(cmVipCoupon);
+        cmCouponVipDao.updateVipCouponMonth(cmVipCoupon);
     }
 }