mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-01-30 19:17:54 +08:00
feat:删除多余代码
This commit is contained in:
parent
bb15812260
commit
9dc810d61e
2 changed files with 0 additions and 10 deletions
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue