汉字问题

This commit is contained in:
2025-12-10 17:18:42 +08:00
parent df12c83b8e
commit 1e16b413e4

View File

@@ -65,16 +65,9 @@ public class MkPointsGoodsServiceImpl extends ServiceImpl<MkPointsGoodsMapper, M
Map<String, Object> result = new HashMap<>(2);
MkPointsUser pointsUser = pointsUserService.getPointsUser(shopId, null, userId);
PageHelper.startPage(page, size);
if (StrUtil.isNotBlank(goodsCategory)) {
if (goodsCategory.contains("优惠劵")) {
goodsCategory = "优惠劵";
} else if (goodsCategory.contains("其他商品")) {
goodsCategory = "其他商品";
}
}
List<MkPointsGoods> list = mapper.getPointsGoodsPageByUser(shopId, userId, StrUtil.trim(goodsCategory));
list.forEach(goods -> {
if (goods.getGoodsCategory().equals("优惠")) {
if (goods.getGoodsCategory().equals("优惠")) {
ShopCoupon one = shopCouponService.getOne(query().eq(ShopCoupon::getId, goods.getCouponId())
.eq(ShopCoupon::getShopId, shopId)
.eq(ShopCoupon::getStatus, 1)