Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王宇航
supplier
Commits
6b99bb52
Commit
6b99bb52
authored
Jul 13, 2021
by
张建升
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜品消耗 api 加入 代码同步
parent
83b8b62e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
+26
-6
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/contract/OtherFunctionContract.java
+2
-1
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/model/OtherFunctionModel.java
+3
-2
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/presenter/OtherFunctionPresenter.java
+4
-3
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/server/SupplierServer.java
+17
-0
No files found.
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/contract/OtherFunctionContract.java
View file @
6b99bb52
...
...
@@ -68,6 +68,7 @@ public interface OtherFunctionContract {
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);
}
}
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/model/OtherFunctionModel.java
View file @
6b99bb52
...
...
@@ -68,7 +68,7 @@ public class OtherFunctionModel extends BaseModel implements OtherFunctionContra
}
@Override
public
Observable
<
FoodByCategoryResultBean
>
getFood
ByCategory
(
Map
<
String
,
Object
>
map
)
{
return
mRepositoryManager
.
obtainRetrofitService
(
SupplierServer
.
class
).
getFood
ByCategory
(
map
);
public
Observable
<
FoodByCategoryResultBean
>
getFood
List
(
Map
<
String
,
Object
>
map
)
{
return
mRepositoryManager
.
obtainRetrofitService
(
SupplierServer
.
class
).
getFood
List
(
map
);
}
}
\ No newline at end of file
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/presenter/OtherFunctionPresenter.java
View file @
6b99bb52
...
...
@@ -42,7 +42,7 @@ import java.util.Map;
/**
* ================================================
* Created by zjs on 07/07/2021 21:11
* Description
* Description
菜品食材消耗
* ================================================
*/
@FragmentScope
...
...
@@ -184,8 +184,9 @@ public class OtherFunctionPresenter extends BasePresenter<OtherFunctionContract.
map
.
put
(
"pageIndex"
,
0
);
AppConstant
.
addBrandId
(
map
);
AppConstant
.
addRestaurantId
(
map
);
map
.
put
(
"parentId"
,
categoryTrees
.
getId
());
mModel
.
getFoodByCategory
(
map
)
map
.
put
(
"parentId"
,
""
);
map
.
put
(
"isParent"
,
"0"
);
mModel
.
getFoodList
(
map
)
.
subscribeOn
(
Schedulers
.
io
())
.
doOnSubscribe
(
disposable
->
{
// mRootView.showLoading(Constant.GET_INFO_LOADING)
...
...
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/server/SupplierServer.java
View file @
6b99bb52
...
...
@@ -543,4 +543,21 @@ public interface SupplierServer {
@GET
(
"purchaseWarehousingOrder/details/getFoodNoInventoryDetails"
+
RetrofitUrlManager
.
IDENTIFICATION_PATH_SIZE
+
2
)
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
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment