cup 2 years ago
parent
commit
6de5177660

+ 3 - 1
mp-admin/src/main/java/com/qs/mp/web/controller/api/channel/mall/ChannelTicketController.java

@@ -75,7 +75,9 @@ public class ChannelTicketController extends BaseApiController {
     if (Objects.nonNull(param.getIsPre()) && param.getIsPre() == 1) {
       queryWrapper.gt("t1.pre_price", 0);
     }
-    queryWrapper.eq("t1.type",param.getType());
+    if (Objects.nonNull(param.getType())) {
+      queryWrapper.eq("t1.type",param.getType());
+    }
     if (Objects.nonNull(param.getCategoryId()) && param.getCategoryId() != 0) {
       queryWrapper.eq("t1.category_id",param.getCategoryId());
     }