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
d258cdd8
Commit
d258cdd8
authored
Aug 08, 2020
by
Wyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8.8 1.新訂單提示音BUG修復 2、外送接單支付方式顯示字段修改
Signed-off-by: Wyh <1239658231>
parent
04a91a6f
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
33 deletions
+42
-33
base-module/src/main/java/com/gingersoft/gsa/cloud/print/bean/OrderDetails.kt
+2
-2
gradle.properties
+1
-0
other_order_mode/src/main/java/com/gingersoft/gsa/other_order_mode/service/GetInfoUpdateService.kt
+3
-1
other_order_mode/src/main/java/com/gingersoft/gsa/other_order_mode/ui/activity/OrderDetailsActivity.kt
+14
-2
print-module/src/main/java/com/joe/print/mvp/model/bean/PrintInfoBean.java
+2
-1
print-module/src/main/java/com/joe/print/mvp/print/PrintOtherOrder.java
+1
-1
print-module/src/main/java/com/joe/print/mvp/print/PrintOtherOrderClosing.java
+6
-6
print-module/src/main/java/com/joe/print/mvp/print/PrinterRoot.java
+10
-2
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/adapter/TableAdapter.java
+3
-18
No files found.
base-module/src/main/java/com/gingersoft/gsa/cloud/print/bean/OrderDetails.kt
View file @
d258cdd8
...
@@ -77,8 +77,8 @@ class OrderDetails {
...
@@ -77,8 +77,8 @@ class OrderDetails {
var
isDelete
:
Int
=
1
//默認為1,為0是第三方物流,其他則是本店配送
var
isDelete
:
Int
=
1
//默認為1,為0是第三方物流,其他則是本店配送
var
payTime
:
String
?
=
null
var
payTime
:
String
?
=
null
var
payType
:
Int
=
0
//1:積分支付;2:支付寶;3:财付通;4:微信支付;5:貨到付款;6:其他支付
var
payType
:
Int
=
0
//1:積分支付;2:支付寶;3:财付通;4:微信支付;5:貨到付款;6:其他支付
var
payName
:
String
?
=
null
//
var payName: String? = null
var
payAmount
:
Double
=
0.0
//
var payAmount: Double = 0.0
//
//
// var payType2: Int = 0//1:積分支付;2:支付寶;3:财付通;4:微信支付;5:貨到付款;6:其他支付
// var payType2: Int = 0//1:積分支付;2:支付寶;3:财付通;4:微信支付;5:貨到付款;6:其他支付
// var payName2: String? = null
// var payName2: String? = null
...
...
gradle.properties
View file @
d258cdd8
...
@@ -26,4 +26,5 @@ QMUI_LINT_VERSION = 1.1.0
...
@@ -26,4 +26,5 @@ QMUI_LINT_VERSION = 1.1.0
QMUI_SKIN_MAKER_VERSION
=
0.0.1
QMUI_SKIN_MAKER_VERSION
=
0.0.1
POM_GIT_URL
=
https://github.com/Tencent/QMUI_Android/
POM_GIT_URL
=
https://github.com/Tencent/QMUI_Android/
POM_SITE_URL
=
https://qmuiteam.com/android
POM_SITE_URL
=
https://qmuiteam.com/android
android.injected.testOnly
=
false
other_order_mode/src/main/java/com/gingersoft/gsa/other_order_mode/service/GetInfoUpdateService.kt
View file @
d258cdd8
...
@@ -280,12 +280,14 @@ class GetInfoUpdateService : Service() {
...
@@ -280,12 +280,14 @@ class GetInfoUpdateService : Service() {
private
var
lastSoundTime
:
Long
=
0L
private
var
lastSoundTime
:
Long
=
0L
fun
initSoundPool
(
resId
:
Int
)
{
fun
initSoundPool
(
resId
:
Int
)
{
val
nowTime
=
System
.
currentTimeMillis
()
//當前時間減去上次播放的時間,如果超過五秒,那麼才會再次播放提示聲
val
nowTime
=
System
.
currentTimeMillis
()
//當前時間減去上次播放的時間,如果超過五秒,那麼才會再次播放提示聲
if
(
resId
==
R
.
raw
.
newordervocal
&&
nowTime
-
lastSoundTime
>
5000
)
{
if
(
resId
==
R
.
raw
.
newordervocal
)
{
if
(
nowTime
-
lastSoundTime
>
5000
)
{
Log
.
e
(
"eee"
,
"間隔時間"
+
(
nowTime
-
lastSoundTime
))
Log
.
e
(
"eee"
,
"間隔時間"
+
(
nowTime
-
lastSoundTime
))
putTimeLog
(
"現在時間:$nowTime 上次播放時間:$lastSoundTime"
)
putTimeLog
(
"現在時間:$nowTime 上次播放時間:$lastSoundTime"
)
putTimeLog
(
"新訂單播放:$nowTime"
)
putTimeLog
(
"新訂單播放:$nowTime"
)
lastSoundTime
=
nowTime
lastSoundTime
=
nowTime
OtherOrderUtils
.
initSoundPool
(
this
,
resId
)
OtherOrderUtils
.
initSoundPool
(
this
,
resId
)
}
}
else
{
}
else
{
lastSoundTime
=
nowTime
lastSoundTime
=
nowTime
OtherOrderUtils
.
initSoundPool
(
this
,
resId
)
OtherOrderUtils
.
initSoundPool
(
this
,
resId
)
...
...
other_order_mode/src/main/java/com/gingersoft/gsa/other_order_mode/ui/activity/OrderDetailsActivity.kt
View file @
d258cdd8
...
@@ -156,9 +156,21 @@ class OrderDetailsActivity : BaseActivity() {
...
@@ -156,9 +156,21 @@ class OrderDetailsActivity : BaseActivity() {
tv_order_state
.
setTextColor
(
ContextCompat
.
getColor
(
this
@OrderDetailsActivity
,
R
.
color
.
order_state0_color
))
tv_order_state
.
setTextColor
(
ContextCompat
.
getColor
(
this
@OrderDetailsActivity
,
R
.
color
.
order_state0_color
))
}
}
}
}
if
(
orderDetails
.
orderPayType
==
2
&&
orderDetails
.
payName
!=
null
)
{
// if (orderDetails.orderPayType == 2 && orderDetails.payName != null) {
binding
.
patMethod
=
orderDetails
.
payName
// binding.patMethod = orderDetails.payName
// }
if
(
orderDetails
.
orderPayType
==
2
&&
orderDetails
.
payMultiple
!=
null
)
{
val
sb
=
StringBuilder
()
for
(
value
in
orderDetails
.
payMultiple
!!
)
{
sb
.
append
(
value
.
payName
)
sb
.
append
(
","
)
}
}
if
(
sb
.
isNotEmpty
())
{
sb
.
deleteCharAt
(
sb
.
length
-
1
)
}
binding
.
patMethod
=
sb
.
toString
()
}
binding
.
orderStatus
=
type
+
orderStatusText
binding
.
orderStatus
=
type
+
orderStatusText
rv_food
.
layoutManager
=
LinearLayoutManager
(
this
@OrderDetailsActivity
)
rv_food
.
layoutManager
=
LinearLayoutManager
(
this
@OrderDetailsActivity
)
...
...
print-module/src/main/java/com/joe/print/mvp/model/bean/PrintInfoBean.java
View file @
d258cdd8
...
@@ -345,7 +345,8 @@ public class PrintInfoBean {
...
@@ -345,7 +345,8 @@ public class PrintInfoBean {
}
else
if
(
data
.
getOrderPayType
()
==
0
)
{
}
else
if
(
data
.
getOrderPayType
()
==
0
)
{
payType
=
"店內支付"
;
payType
=
"店內支付"
;
}
else
if
(
data
.
getOrderPayType
()
==
2
)
{
}
else
if
(
data
.
getOrderPayType
()
==
2
)
{
payType
=
"在線支付:"
+
data
.
getPayName
();
// payType = "在線支付:" + data.getPayName();
payType
=
"在線支付"
;
}
}
printInfoBeans
.
add
(
new
PrintInfoBean
(
new
String
[]{
payType
},
new
Boolean
[]{
true
},
new
Double
[]{
2
d
}));
printInfoBeans
.
add
(
new
PrintInfoBean
(
new
String
[]{
payType
},
new
Boolean
[]{
true
},
new
Double
[]{
2
d
}));
...
...
print-module/src/main/java/com/joe/print/mvp/print/PrintOtherOrder.java
View file @
d258cdd8
...
@@ -161,7 +161,7 @@ public class PrintOtherOrder extends PrinterRoot {
...
@@ -161,7 +161,7 @@ public class PrintOtherOrder extends PrinterRoot {
layout
.
addView
(
getTakeawayLargeAmount
(
mContext
,
"總金額:"
,
MONETARY_UNIT
+
data
.
getTOTAL_AMOUNT
()));
layout
.
addView
(
getTakeawayLargeAmount
(
mContext
,
"總金額:"
,
MONETARY_UNIT
+
data
.
getTOTAL_AMOUNT
()));
layout
.
addView
(
getLine
(
mContext
));
layout
.
addView
(
getLine
(
mContext
));
if
(
data
.
getPayMultiple
()
!=
null
)
{
if
(
data
.
getPayMultiple
()
!=
null
&&
data
.
getPayMultiple
().
size
()
>
0
)
{
for
(
OrderDetails
.
DataBean
.
PayMultiple
payMultiple
:
data
.
getPayMultiple
())
{
for
(
OrderDetails
.
DataBean
.
PayMultiple
payMultiple
:
data
.
getPayMultiple
())
{
if
(!
TextUtil
.
isEmptyOrNullOrUndefined
(
payMultiple
.
getPayName
()))
{
if
(!
TextUtil
.
isEmptyOrNullOrUndefined
(
payMultiple
.
getPayName
()))
{
layout
.
addView
(
getTakeawayLargeAmount
(
mContext
,
payMultiple
.
getPayName
(),
MONETARY_UNIT
+
payMultiple
.
getAmount
()));
layout
.
addView
(
getTakeawayLargeAmount
(
mContext
,
payMultiple
.
getPayName
(),
MONETARY_UNIT
+
payMultiple
.
getAmount
()));
...
...
print-module/src/main/java/com/joe/print/mvp/print/PrintOtherOrderClosing.java
View file @
d258cdd8
...
@@ -126,19 +126,19 @@ public class PrintOtherOrderClosing extends PrinterRoot {
...
@@ -126,19 +126,19 @@ public class PrintOtherOrderClosing extends PrinterRoot {
if
(
data
.
getOrderPayType
()
==
1
)
{
if
(
data
.
getOrderPayType
()
==
1
)
{
//貨到付款
//貨到付款
setText
(
view
,
R
.
id
.
tv_pay_type
,
"貨到付款"
);
setText
(
view
,
R
.
id
.
tv_pay_type
,
"貨到付款"
);
if
(
data
.
getPayName
()
!=
null
)
{
//
if (data.getPayName() != null) {
//支付金額
//
//支付金額
setText
(
view
,
R
.
id
.
tv_pay_amount_text
,
data
.
getPayName
()
+
":"
+
amountUnit
+
MoneyUtil
.
sub
(
Double
.
parseDouble
(
data
.
getTOTAL_AMOUNT
()),
data
.
getDiscount_amount
()));
//
setText(view, R.id.tv_pay_amount_text, data.getPayName() + ":" + amountUnit + MoneyUtil.sub(Double.parseDouble(data.getTOTAL_AMOUNT()), data.getDiscount_amount()));
}
else
{
//
} else {
setIsShow
(
view
,
R
.
id
.
tv_pay_amount_text
,
false
);
setIsShow
(
view
,
R
.
id
.
tv_pay_amount_text
,
false
);
setIsShow
(
view
,
R
.
id
.
tv_pay_amount_line
,
false
);
setIsShow
(
view
,
R
.
id
.
tv_pay_amount_line
,
false
);
}
//
}
}
else
if
(
data
.
getOrderPayType
()
==
0
)
{
}
else
if
(
data
.
getOrderPayType
()
==
0
)
{
setText
(
view
,
R
.
id
.
tv_pay_type
,
"店內支付"
);
setText
(
view
,
R
.
id
.
tv_pay_type
,
"店內支付"
);
}
else
if
(
data
.
getOrderPayType
()
==
2
)
{
}
else
if
(
data
.
getOrderPayType
()
==
2
)
{
setText
(
view
,
R
.
id
.
tv_pay_type
,
"在線支付"
);
setText
(
view
,
R
.
id
.
tv_pay_type
,
"在線支付"
);
// setText(view, R.id.tv_pay_amount_text, data.getPayName() + ":" + amountUnit + MoneyUtil.sub(Double.parseDouble(data.getTOTAL_AMOUNT()), data.getDiscount_amount()));
// setText(view, R.id.tv_pay_amount_text, data.getPayName() + ":" + amountUnit + MoneyUtil.sub(Double.parseDouble(data.getTOTAL_AMOUNT()), data.getDiscount_amount()));
setText
(
view
,
R
.
id
.
tv_pay_amount_text
,
data
.
getPayName
()
+
":"
+
amountUnit
+
data
.
getPayAmount
());
//
setText(view, R.id.tv_pay_amount_text, data.getPayName() + ":" + amountUnit + data.getPayAmount());
}
}
if
(
data
.
getPayTime
()
!=
null
)
{
if
(
data
.
getPayTime
()
!=
null
)
{
tvOrderClosing
.
setText
(
"結賬時間:"
+
data
.
getPayTime
());
tvOrderClosing
.
setText
(
"結賬時間:"
+
data
.
getPayTime
());
...
...
print-module/src/main/java/com/joe/print/mvp/print/PrinterRoot.java
View file @
d258cdd8
...
@@ -500,8 +500,16 @@ public abstract class PrinterRoot implements PrintSocketHolder.OnStateChangedLis
...
@@ -500,8 +500,16 @@ public abstract class PrinterRoot implements PrintSocketHolder.OnStateChangedLis
}
else
if
(
data
.
getOrderPayType
()
==
0
)
{
}
else
if
(
data
.
getOrderPayType
()
==
0
)
{
payType
=
"店內支付"
;
payType
=
"店內支付"
;
}
else
if
(
data
.
getOrderPayType
()
==
2
)
{
}
else
if
(
data
.
getOrderPayType
()
==
2
)
{
if
(!
TextUtil
.
isEmptyOrNullOrUndefined
(
data
.
getPayName
()))
{
if
(
data
.
getPayMultiple
()
!=
null
)
{
payType
=
"在線支付:"
+
data
.
getPayName
();
StringBuilder
payName
=
new
StringBuilder
();
for
(
OrderDetails
.
DataBean
.
PayMultiple
payMultiple
:
data
.
getPayMultiple
())
{
payName
.
append
(
payMultiple
.
getPayName
());
payName
.
append
(
","
);
}
if
(
payName
.
length
()
>
0
)
{
payName
.
deleteCharAt
(
payName
.
length
()
-
1
);
}
payType
=
"在線支付:"
+
payName
.
toString
();
}
else
{
}
else
{
payType
=
"在線支付"
;
payType
=
"在線支付"
;
}
}
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/adapter/TableAdapter.java
View file @
d258cdd8
...
@@ -2,46 +2,31 @@ package com.gingersoft.gsa.cloud.table.mvp.ui.adapter;
...
@@ -2,46 +2,31 @@ package com.gingersoft.gsa.cloud.table.mvp.ui.adapter;
import
android.content.Context
;
import
android.content.Context
;
import
android.graphics.Color
;
import
android.graphics.Color
;
import
android.graphics.drawable.GradientDrawable
;
import
android.graphics.drawable.StateListDrawable
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.view.Gravity
;
import
android.view.Gravity
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.Button
;
import
android.widget.FrameLayout
;
import
android.widget.FrameLayout
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.RelativeLayout
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.gingersoft.gsa.cloud.aspectj.SingleClick
;
import
androidx.core.content.ContextCompat
;
import
com.gingersoft.gsa.cloud.aspectj.XClickUtil
;
import
com.gingersoft.gsa.cloud.base.common.bean.TableBean
;
import
com.gingersoft.gsa.cloud.base.common.bean.TableItem
;
import
com.gingersoft.gsa.cloud.base.common.bean.TableItem
;
import
com.gingersoft.gsa.cloud.base.utils.log.LogUtil
;
import
com.gingersoft.gsa.cloud.base.utils.log.LogUtil
;
import
com.gingersoft.gsa.cloud.base.utils.time.TimeUtil
;
import
com.gingersoft.gsa.cloud.base.utils.time.TimeUtil
;
import
com.gingersoft.gsa.cloud.base.utils.time.TimeUtils
;
import
com.gingersoft.gsa.cloud.table.R
;
import
com.gingersoft.gsa.cloud.table.R
;
import
com.gingersoft.gsa.cloud.table.R2
;
import
com.gingersoft.gsa.cloud.table.R2
;
import
com.gingersoft.gsa.cloud.base.common.bean.TableBean
;
import
com.gingersoft.gsa.cloud.table.mvp.presenter.TablePresenter
;
import
com.gingersoft.gsa.cloud.ui.view.TriangleLabelView
;
import
com.gingersoft.gsa.cloud.ui.view.TriangleLabelView
;
import
com.jess.arms.base.BaseHolder
;
import
com.jess.arms.base.BaseHolder
;
import
com.jess.arms.base.DefaultAdapter
;
import
com.jess.arms.base.DefaultAdapter
;
import
com.jess.arms.utils.ArmsUtils
;
import
com.qmuiteam.qmui.alpha.QMUIAlphaLinearLayout
;
import
com.qmuiteam.qmui.alpha.QMUIAlphaRelativeLayout
;
import
com.qmuiteam.qmui.alpha.QMUIAlphaRelativeLayout
;
import
com.qmuiteam.qmui.alpha.QMUIAlphaTextView
;
import
com.qmuiteam.qmui.layout.QMUIConstraintLayout
;
import
com.qmuiteam.qmui.layout.QMUIConstraintLayout
;
import
com.qmuiteam.qmui.layout.QMUILinearLayout
;
import
com.qmuiteam.qmui.layout.QMUIRelativeLayout
;
import
com.qmuiteam.qmui.util.QMUIDisplayHelper
;
import
com.qmuiteam.qmui.util.QMUIDisplayHelper
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
androidx.core.content.ContextCompat
;
import
butterknife.BindView
;
import
butterknife.BindView
;
/**
/**
...
...
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