Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
@@ -246,7 +246,8 @@ public class ShopCouponServiceImpl extends ServiceImpl<ShopCouponMapper, ShopCou
|
|||||||
coupon.setFoods("全部商品");
|
coupon.setFoods("全部商品");
|
||||||
}
|
}
|
||||||
if ("only".equals(coupon.getUseShopType())) {
|
if ("only".equals(coupon.getUseShopType())) {
|
||||||
coupon.setUseShops("仅本店");
|
ShopInfo shopInfo = shopInfoService.getById(coupon.getShopId());
|
||||||
|
coupon.setUseShops("仅本店:" + shopInfo.getShopName());
|
||||||
} else if ("all".equals(coupon.getUseShopType())) {
|
} else if ("all".equals(coupon.getUseShopType())) {
|
||||||
coupon.setUseShops("所有门店");
|
coupon.setUseShops("所有门店");
|
||||||
} else if ("custom".equals(coupon.getUseShopType())) {
|
} else if ("custom".equals(coupon.getUseShopType())) {
|
||||||
@@ -278,7 +279,7 @@ public class ShopCouponServiceImpl extends ServiceImpl<ShopCouponMapper, ShopCou
|
|||||||
if (StrUtil.isNotBlank(mainShopName)) {
|
if (StrUtil.isNotBlank(mainShopName)) {
|
||||||
coupon.setUseShops(coupon.getUseShops() + ",");
|
coupon.setUseShops(coupon.getUseShops() + ",");
|
||||||
}
|
}
|
||||||
coupon.setUseShops(result.toString());
|
coupon.setUseShops(coupon.getUseShops() + result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user