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
5064a31b
Commit
5064a31b
authored
Oct 17, 2020
by
Wyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
外送添加payType類型
Signed-off-by: Wyh <1239658231>
parent
1d75bbad
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/data/WeatherRepository.kt
+2
-2
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/data/network/CoolWeatherNetwork.kt
+1
-1
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/data/network/api/WeatherService.kt
+1
-1
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/model/viewModel/PageViewModel.kt
+2
-1
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/ui/activity/DeliveryOrderMainActivity.kt
+2
-1
No files found.
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/data/WeatherRepository.kt
View file @
5064a31b
...
@@ -183,8 +183,8 @@ class WeatherRepository private constructor(private val network: CoolWeatherNetw
...
@@ -183,8 +183,8 @@ class WeatherRepository private constructor(private val network: CoolWeatherNetw
network
.
getCancelReason
(
brandId
,
restaurantId
,
type
)
network
.
getCancelReason
(
brandId
,
restaurantId
,
type
)
}
}
suspend
fun
getPayMethod
(
brandId
:
Int
,
restaurantId
:
Int
)
=
withContext
(
Dispatchers
.
IO
)
{
suspend
fun
getPayMethod
(
brandId
:
Int
,
restaurantId
:
Int
,
payType
:
Int
)
=
withContext
(
Dispatchers
.
IO
)
{
network
.
getPayMethod
(
brandId
,
restaurantId
)
network
.
getPayMethod
(
brandId
,
restaurantId
,
payType
)
}
}
suspend
fun
addPrj
(
orderId
:
String
,
restaurantId
:
String
,
orderDetailsIds
:
String
)
=
withContext
(
Dispatchers
.
IO
)
{
suspend
fun
addPrj
(
orderId
:
String
,
restaurantId
:
String
,
orderDetailsIds
:
String
)
=
withContext
(
Dispatchers
.
IO
)
{
...
...
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/data/network/CoolWeatherNetwork.kt
View file @
5064a31b
...
@@ -83,7 +83,7 @@ class CoolWeatherNetwork {
...
@@ -83,7 +83,7 @@ class CoolWeatherNetwork {
suspend
fun
getCancelReason
(
brandId
:
Int
,
restaurantId
:
Int
,
type
:
Int
)
=
cloudService
.
getCancelReason
(
brandId
,
restaurantId
,
type
).
await
()
suspend
fun
getCancelReason
(
brandId
:
Int
,
restaurantId
:
Int
,
type
:
Int
)
=
cloudService
.
getCancelReason
(
brandId
,
restaurantId
,
type
).
await
()
//獲取商家配置的支付方式
//獲取商家配置的支付方式
suspend
fun
getPayMethod
(
brandId
:
Int
,
restaurantId
:
Int
)
=
cloudService
.
getPayMethod
(
brandId
,
restaurantId
).
await
()
suspend
fun
getPayMethod
(
brandId
:
Int
,
restaurantId
:
Int
,
payType
:
Int
)
=
cloudService
.
getPayMethod
(
brandId
,
restaurantId
,
payType
).
await
()
suspend
fun
addPrj
(
requestBody
:
RequestBody
)
=
cloudService
.
addPrj
(
requestBody
).
await
()
suspend
fun
addPrj
(
requestBody
:
RequestBody
)
=
cloudService
.
addPrj
(
requestBody
).
await
()
...
...
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/data/network/api/WeatherService.kt
View file @
5064a31b
...
@@ -63,7 +63,7 @@ interface WeatherService {
...
@@ -63,7 +63,7 @@ interface WeatherService {
fun
getCancelReason
(
@Query
(
"brandId"
)
brandId
:
Int
,
@Query
(
"restaurantId"
)
restaurantId
:
Int
,
@Query
(
"type"
)
type
:
Int
):
Call
<
CancelReason
>
fun
getCancelReason
(
@Query
(
"brandId"
)
brandId
:
Int
,
@Query
(
"restaurantId"
)
restaurantId
:
Int
,
@Query
(
"type"
)
type
:
Int
):
Call
<
CancelReason
>
@GET
(
"restaurant/pay/get"
)
@GET
(
"restaurant/pay/get"
)
fun
getPayMethod
(
@Query
(
"brandId"
)
brandId
:
Int
,
@Query
(
"restaurantId"
)
restaurantId
:
Int
):
Call
<
PayTypeInfo
>
fun
getPayMethod
(
@Query
(
"brandId"
)
brandId
:
Int
,
@Query
(
"restaurantId"
)
restaurantId
:
Int
,
@Query
(
"payType"
)
payType
:
Int
):
Call
<
PayTypeInfo
>
@POST
(
"printerRecording/add"
)
@POST
(
"printerRecording/add"
)
fun
addPrj
(
@Body
requestBody
:
RequestBody
):
Call
<
String
>
fun
addPrj
(
@Body
requestBody
:
RequestBody
):
Call
<
String
>
...
...
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/model/viewModel/PageViewModel.kt
View file @
5064a31b
...
@@ -23,6 +23,7 @@ import com.gingersoft.gsa.cloud.base.utils.time.TimeUtils
...
@@ -23,6 +23,7 @@ import com.gingersoft.gsa.cloud.base.utils.time.TimeUtils
import
com.gingersoft.gsa.cloud.base.utils.toast.ToastUtils
import
com.gingersoft.gsa.cloud.base.utils.toast.ToastUtils
import
com.gingersoft.gsa.cloud.base.widget.DialogUtils
import
com.gingersoft.gsa.cloud.base.widget.DialogUtils
import
com.gingersoft.gsa.cloud.constans.AppConstans
import
com.gingersoft.gsa.cloud.constans.AppConstans
import
com.gingersoft.gsa.cloud.constans.FoodSummaryConstans
import
com.gingersoft.gsa.cloud.constans.PrintConstans
import
com.gingersoft.gsa.cloud.constans.PrintConstans
import
com.gingersoft.gsa.cloud.print.bean.OrderDetails
import
com.gingersoft.gsa.cloud.print.bean.OrderDetails
import
com.gingersoft.gsa.cloud.service.GetInfoUpdateService
import
com.gingersoft.gsa.cloud.service.GetInfoUpdateService
...
@@ -858,7 +859,7 @@ class PageViewModel(private val repository: WeatherRepository) : ViewModel() {
...
@@ -858,7 +859,7 @@ class PageViewModel(private val repository: WeatherRepository) : ViewModel() {
*/
*/
fun
getPayMethod
(
brandId
:
Int
,
restaurantId
:
Int
)
{
fun
getPayMethod
(
brandId
:
Int
,
restaurantId
:
Int
)
{
launch
({
launch
({
repository
.
getPayMethod
(
brandId
,
restaurantId
).
apply
{
repository
.
getPayMethod
(
brandId
,
restaurantId
,
FoodSummaryConstans
.
TAKEAWAY_TYPE
).
apply
{
if
(
isSuccess
&&
data
!=
null
&&
data
.
size
>
0
)
{
if
(
isSuccess
&&
data
!=
null
&&
data
.
size
>
0
)
{
payTypeBean
.
postValue
(
this
.
data
)
payTypeBean
.
postValue
(
this
.
data
)
}
else
{
}
else
{
...
...
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/ui/activity/DeliveryOrderMainActivity.kt
View file @
5064a31b
...
@@ -29,6 +29,7 @@ import com.gingersoft.gsa.cloud.base.utils.toast.ToastUtils
...
@@ -29,6 +29,7 @@ import com.gingersoft.gsa.cloud.base.utils.toast.ToastUtils
import
com.gingersoft.gsa.cloud.base.widget.DialogUtils
import
com.gingersoft.gsa.cloud.base.widget.DialogUtils
import
com.gingersoft.gsa.cloud.constans.AppConstans
import
com.gingersoft.gsa.cloud.constans.AppConstans
import
com.gingersoft.gsa.cloud.constans.ExpandConstant
import
com.gingersoft.gsa.cloud.constans.ExpandConstant
import
com.gingersoft.gsa.cloud.constans.FoodSummaryConstans.TAKEAWAY_TYPE
import
com.gingersoft.gsa.cloud.constans.FunctionManagerConstants
import
com.gingersoft.gsa.cloud.constans.FunctionManagerConstants
import
com.gingersoft.gsa.cloud.database.bean.Function
import
com.gingersoft.gsa.cloud.database.bean.Function
import
com.gingersoft.gsa.cloud.function.FunctionManager
import
com.gingersoft.gsa.cloud.function.FunctionManager
...
@@ -594,7 +595,7 @@ class DeliveryOrderMainActivity : BaseActivity<IPresenter>(), View.OnClickListen
...
@@ -594,7 +595,7 @@ class DeliveryOrderMainActivity : BaseActivity<IPresenter>(), View.OnClickListen
}
}
R
.
id
.
tv_new_order
->
{
R
.
id
.
tv_new_order
->
{
//新訂單
//新訂單
MyOrderManage
.
getInstance
().
orderType
=
MyOrderManage
.
order_type_1
MyOrderManage
.
getInstance
().
orderType
=
TAKEAWAY_TYPE
CC
.
obtainBuilder
(
"Component.Table"
)
CC
.
obtainBuilder
(
"Component.Table"
)
.
setActionName
(
"showMealStandActivity"
)
.
setActionName
(
"showMealStandActivity"
)
.
build
()
.
build
()
...
...
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