|
@@ -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());
|
|
|
}
|