소스 검색

超级会员优惠券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);
     }
 }