zoujiajian 2 years ago
parent
commit
f1bce873fd

+ 1 - 2
netflix-web/src/main/java/com/cyksj/web/controller/manage/goods/CmsGoodsDonController.java

@@ -191,8 +191,7 @@ public class CmsGoodsDonController {
     public Result<List<GoodsDon>> getAllGoodsList() {
         List<GoodsDon> goodsDons = beanSearcher.searchAll(GoodsDon.class, MapUtils.flatBuilder(request.getParameterMap())
                 .field(GoodsDon::getDeleted, true)
-                .put("condition", String.format("(special_type is null or special_type != giftCard)"))
-                .field(GoodsDon::getSpecialType, GoodsDon.SpecialType.giftCard.name()).op(Operator.NotEqual)
+                .put("condition", "(special_type is null or special_type != 'giftCard')")
                 .onlySelect(GoodsDon::getId, GoodsDon::getCategory, GoodsDon::getType, GoodsDon::getTitle).build());
         return GatewayResponse.SUCCESS.newBuilder().toResult(goodsDons);
     }