From 2b25c63f4eebf2c400c2ee1608327a093680179d Mon Sep 17 00:00:00 2001
From: sj <1304317391@qq.com>
Date: Sat, 29 Oct 2022 16:23:56 +0800
Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E6=8E=92=E5=BA=8F=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E5=8F=8A=E5=95=86=E5=93=81=E5=88=A0=E9=99=A4=E4=B8=8B?=
=?UTF-8?q?=E6=9E=B6=E6=97=B6=E5=88=A4=E6=96=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
zsw-bxg/pom.xml | 5 ++
.../modules/coupon/rest/CouponController.java | 4 +-
.../product/rest/AppStoreBrandController.java | 2 +-
.../product/rest/StoreProductController.java | 31 ++++++++++++
.../impl/YxStoreProductServiceImpl.java | 47 ++++++++++++++++--
.../store/service/YxStoreBrandService.java | 2 +-
.../modules/store/service/impl/Sort.java | 20 +++++---
.../service/impl/YxStoreBrandServiceImpl.java | 48 ++++---------------
.../main/java/co/yixiang/utils/BrandDTO.java | 1 -
9 files changed, 106 insertions(+), 54 deletions(-)
diff --git a/zsw-bxg/pom.xml b/zsw-bxg/pom.xml
index b1b98840..b53df462 100644
--- a/zsw-bxg/pom.xml
+++ b/zsw-bxg/pom.xml
@@ -27,6 +27,11 @@
yudao-module-system-impl
1.6.2-snapshot
+
+ com.belerweb
+ pinyin4j
+ 2.5.1
+
com.dtflys.forest
forest-spring-boot-starter
diff --git a/zsw-bxg/src/main/java/co/yixiang/app/modules/coupon/rest/CouponController.java b/zsw-bxg/src/main/java/co/yixiang/app/modules/coupon/rest/CouponController.java
index 0a88129e..c09199c7 100644
--- a/zsw-bxg/src/main/java/co/yixiang/app/modules/coupon/rest/CouponController.java
+++ b/zsw-bxg/src/main/java/co/yixiang/app/modules/coupon/rest/CouponController.java
@@ -124,9 +124,11 @@ public class CouponController {
List list = storeCouponUserService.getUserCoupon(uid);
List list1 = new ArrayList<>();
for (YxStoreCouponUserQueryVo couponUser : list) {
- if (couponUser.getIsFail() == 1){//已失效
+ //已失效 //已过期
+ if (couponUser.getIsFail() == 1||couponUser.getStatus() == 2){
list1.add(couponUser);
}
+
}
return ApiResult.ok(list1);
}
diff --git a/zsw-bxg/src/main/java/co/yixiang/app/modules/product/rest/AppStoreBrandController.java b/zsw-bxg/src/main/java/co/yixiang/app/modules/product/rest/AppStoreBrandController.java
index 0f032beb..5990615c 100644
--- a/zsw-bxg/src/main/java/co/yixiang/app/modules/product/rest/AppStoreBrandController.java
+++ b/zsw-bxg/src/main/java/co/yixiang/app/modules/product/rest/AppStoreBrandController.java
@@ -49,7 +49,7 @@ public class AppStoreBrandController {
@AnonymousAccess
@GetMapping("/brandByName")
@ApiOperation(value = "商品品牌列表",notes = "商品品牌列表")
- public ApiResult