mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-01-30 11:08:28 +08:00
feat: 根据门店id获取优惠券信息暂时未作storeId的相关操作
This commit is contained in:
parent
e2560506ed
commit
31915b69a8
1 changed files with 1 additions and 6 deletions
|
@ -213,12 +213,7 @@ public class CouponServiceImpl extends SkyeyeBusinessServiceImpl<CouponDao, Coup
|
|||
QueryWrapper<Coupon> queryWrapper = new QueryWrapper<>();
|
||||
String storeId = params.get("storeId").toString();
|
||||
String type = params.get("type").toString();
|
||||
List<CouponStore> couponStoreList = couponStoreService.queryListByStoreId(storeId);
|
||||
List<String> couponIdList = couponStoreList.stream().map(CouponStore::getCouponId).distinct().collect(Collectors.toList());
|
||||
if(CollectionUtil.isEmpty(couponIdList)){
|
||||
return;
|
||||
}
|
||||
queryWrapper.in(CommonConstants.ID, couponIdList);
|
||||
// todo storeId未做
|
||||
String typeKey = MybatisPlusUtil.toColumns(Coupon::getTemplateId);
|
||||
if (StrUtil.equals(type, CommonNumConstants.NUM_ZERO.toString())) {
|
||||
queryWrapper.and(wrapper -> {
|
||||
|
|
Loading…
Reference in a new issue