feat:删除多余代码

This commit is contained in:
luluyuyu 2024-12-14 21:49:31 +08:00
parent bb15812260
commit 9dc810d61e
2 changed files with 0 additions and 10 deletions

View file

@ -25,5 +25,4 @@ public interface CouponService extends SkyeyeBusinessService<Coupon> {
void queryCouponListByState(InputObject inputObject, OutputObject outputObject); void queryCouponListByState(InputObject inputObject, OutputObject outputObject);
void queryCouponListByMaterialId(InputObject inputObject, OutputObject outputObject); void queryCouponListByMaterialId(InputObject inputObject, OutputObject outputObject);
} }

View file

@ -271,15 +271,6 @@ public class CouponServiceImpl extends SkyeyeBusinessServiceImpl<CouponDao, Coup
outputObject.settotal(list.size()); outputObject.settotal(list.size());
} }
@Override
public Integer getUseCount(String couponId) {
Coupon coupon = selectById(couponId);
if (ObjUtil.isEmpty(coupon)) {
throw new CustomException("优惠券不存在");
}
return coupon.getUseCount();
}
private void setDrawState(List<Coupon> list) { private void setDrawState(List<Coupon> list) {
if (CollectionUtil.isEmpty(list)) return; if (CollectionUtil.isEmpty(list)) return;
List<String> couponIdList = list.stream().map(Coupon::getId).collect(Collectors.toList()); List<String> couponIdList = list.stream().map(Coupon::getId).collect(Collectors.toList());