|
|
@@ -193,6 +193,11 @@ public class StoreCuisineController {
|
|
|
// 默认只查询已上架的菜品/套餐(shelf_status = 1)
|
|
|
if(null==origin){
|
|
|
queryWrapper.eq(StoreCuisine::getShelfStatus, 1);
|
|
|
+ }else if(origin == 0){
|
|
|
+ queryWrapper.in(StoreCuisine::getShelfStatus, 1,2);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ queryWrapper.eq(StoreCuisine::getShelfStatus, origin);
|
|
|
}
|
|
|
if (storeId != null) {
|
|
|
queryWrapper.eq(StoreCuisine::getStoreId, storeId);
|
|
|
@@ -238,7 +243,15 @@ public class StoreCuisineController {
|
|
|
queryWrapper.eq(StorePrice::getStatus, status);
|
|
|
}
|
|
|
// 默认只查询已上架的菜品/套餐(shelf_status = 1)
|
|
|
- queryWrapper.eq(StorePrice::getShelfStatus, 1);
|
|
|
+ if(null==origin){
|
|
|
+ queryWrapper.eq(StorePrice::getShelfStatus, 1);
|
|
|
+ }else if(origin == 0){
|
|
|
+ queryWrapper.in(StorePrice::getShelfStatus, 1,2);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ queryWrapper.eq(StorePrice::getShelfStatus, origin);
|
|
|
+ }
|
|
|
+// queryWrapper.eq(StorePrice::getShelfStatus, 1);
|
|
|
// 创建时间范围查询
|
|
|
if (startTime != null) {
|
|
|
queryWrapper.ge(StorePrice::getCreatedTime, startTime);
|