Commit 6b99bb52 by 张建升

菜品消耗 api 加入 代码同步

parent 83b8b62e
...@@ -68,6 +68,7 @@ public interface OtherFunctionContract { ...@@ -68,6 +68,7 @@ public interface OtherFunctionContract {
Observable<OrderCategoryBean> getCategoryTrees(Map<String, Object> map); Observable<OrderCategoryBean> getCategoryTrees(Map<String, Object> map);
Observable<FoodByCategoryResultBean> getFoodByCategory(Map<String, Object> map); Observable<FoodByCategoryResultBean> getFoodList(Map<String, Object> map);
// Observable<FoodByCategoryResultBean> getFoodByCategory(Map<String, Object> map);
} }
} }
...@@ -68,7 +68,7 @@ public class OtherFunctionModel extends BaseModel implements OtherFunctionContra ...@@ -68,7 +68,7 @@ public class OtherFunctionModel extends BaseModel implements OtherFunctionContra
} }
@Override @Override
public Observable<FoodByCategoryResultBean> getFoodByCategory(Map<String, Object> map) { public Observable<FoodByCategoryResultBean> getFoodList(Map<String, Object> map) {
return mRepositoryManager.obtainRetrofitService(SupplierServer.class).getFoodByCategory(map); return mRepositoryManager.obtainRetrofitService(SupplierServer.class).getFoodList(map);
} }
} }
\ No newline at end of file
...@@ -42,7 +42,7 @@ import java.util.Map; ...@@ -42,7 +42,7 @@ import java.util.Map;
/** /**
* ================================================ * ================================================
* Created by zjs on 07/07/2021 21:11 * Created by zjs on 07/07/2021 21:11
* Description * Description 菜品食材消耗
* ================================================ * ================================================
*/ */
@FragmentScope @FragmentScope
...@@ -184,8 +184,9 @@ public class OtherFunctionPresenter extends BasePresenter<OtherFunctionContract. ...@@ -184,8 +184,9 @@ public class OtherFunctionPresenter extends BasePresenter<OtherFunctionContract.
map.put("pageIndex", 0); map.put("pageIndex", 0);
AppConstant.addBrandId(map); AppConstant.addBrandId(map);
AppConstant.addRestaurantId(map); AppConstant.addRestaurantId(map);
map.put("parentId", categoryTrees.getId()); map.put("parentId","");
mModel.getFoodByCategory(map) map.put("isParent", "0");
mModel.getFoodList(map)
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.doOnSubscribe(disposable -> { .doOnSubscribe(disposable -> {
// mRootView.showLoading(Constant.GET_INFO_LOADING) // mRootView.showLoading(Constant.GET_INFO_LOADING)
......
...@@ -543,4 +543,21 @@ public interface SupplierServer { ...@@ -543,4 +543,21 @@ public interface SupplierServer {
@GET("purchaseWarehousingOrder/details/getFoodNoInventoryDetails" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2) @GET("purchaseWarehousingOrder/details/getFoodNoInventoryDetails" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
Observable<BaseResult> getFoodInOutBoundRecordDetails(@QueryMap Map<String, Object> map); Observable<BaseResult> getFoodInOutBoundRecordDetails(@QueryMap Map<String, Object> map);
/**
* 查询菜品
* https://hktest.ricepon.com:64377/ricepon-restaurant/api/admin/food/getFood?
* pageSize=10&pageIndex=0&restaurantId=441&parentId=&brandId=1&isParent=0
* pageSize: 10
* pageIndex: 0
* restaurantId: 441
* parentId:
* brandId: 1
* isParent: 0
* admin/food/getFood?
*/
@Headers({"Domain-Name: ricepon_restaurant"})
@GET("admin/food/getFood" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
Observable<FoodByCategoryResultBean> getFoodList(@QueryMap Map<String, Object> map);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment