瀏覽代碼

超级会员优惠券bugfix

chao 3 年之前
父節點
當前提交
5ac103fab0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/java/com/caimei/modules/coupon/service/CmVipCouponService.java

+ 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);
     }
 }