mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-03-04 19:33:08 +08:00
feat: 优惠券根据id查询增加canDraw字段
This commit is contained in:
parent
cf4651a276
commit
4d420bd7ad
1 changed files with 4 additions and 2 deletions
|
@ -33,6 +33,7 @@ import com.skyeye.rest.shopmaterialnorms.sevice.IShopMaterialNormsService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
@ -176,9 +177,10 @@ public class CouponServiceImpl extends SkyeyeBusinessServiceImpl<CouponDao, Coup
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Coupon getDataFromDb(String id) {
|
public Coupon getFromCache(String id) {
|
||||||
Coupon coupon = super.getDataFromDb(id);
|
Coupon coupon = super.getFromCache(id);
|
||||||
coupon.setCouponMaterialList(couponMaterialService.queryListByCouponId(id));
|
coupon.setCouponMaterialList(couponMaterialService.queryListByCouponId(id));
|
||||||
|
setDrawState(Collections.singletonList(coupon));// 设置是否可以领取状态
|
||||||
return coupon;
|
return coupon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue