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
b5790dcf
Commit
b5790dcf
authored
Jan 14, 2021
by
宁斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.1.8正式版
parent
c07d6ee1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
8 deletions
+20
-8
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/TablePresenter.java
+1
-0
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/activity/OrderPayActivity.java
+9
-2
config.gradle
+2
-2
library-database/src/main/java/com/gingersoft/gsa/cloud/database/utils/FoodDaoUtils.java
+8
-4
No files found.
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/TablePresenter.java
View file @
b5790dcf
...
...
@@ -49,6 +49,7 @@ import com.gingersoft.gsa.cloud.table.mvp.ui.adapter.BottomFunctionAdapter;
import
com.gingersoft.gsa.cloud.table.mvp.ui.widget.SplitTableDialog
;
import
com.gingersoft.gsa.cloud.ui.widget.dialog.BaseRetryDialog
;
import
com.gingersoft.gsa.cloud.ui.widget.dialog.CommonTipDialog
;
import
com.google.android.material.internal.NavigationMenuItemView
;
import
com.jess.arms.base.DefaultAdapter
;
import
com.jess.arms.di.scope.ActivityScope
;
import
com.jess.arms.http.imageloader.ImageLoader
;
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/activity/OrderPayActivity.java
View file @
b5790dcf
...
...
@@ -467,7 +467,14 @@ public class OrderPayActivity extends BaseActivity<OrderPayPresenter> implements
mAppManager
.
killActivity
(
"PrintActivity"
);
}
});
printBill
();
RxJavaUtils
.
delay
(
1
,
TimeUnit
.
SECONDS
)
.
subscribe
(
new
Consumer
<
Long
>()
{
@Override
public
void
accept
(
Long
aLong
)
throws
Exception
{
printBill
();
}
});
}
private
void
printBill
()
{
...
...
@@ -481,11 +488,11 @@ public class OrderPayActivity extends BaseActivity<OrderPayPresenter> implements
.
callAsyncCallbackOnMainThread
(
new
IComponentCallback
()
{
@Override
public
void
onResult
(
CC
cc
,
CCResult
result
)
{
hideLoading
();
LoganManager
.
w_code
(
TAG
,
"printBill "
+
"是否成功打印:"
+
result
.
isSuccess
());
mAppManager
.
killActivity
(
"PrintActivity"
);
mAppManager
.
killActivity
(
MealStandActivity
.
class
);
mAppManager
.
killActivity
(
OrderContentActivity
.
class
);
hideLoading
();
killMyself
();
}
});
...
...
config.gradle
View file @
b5790dcf
...
...
@@ -7,8 +7,8 @@ ext {
targetSdkVersion
:
29
,
//正式版: 1.0.3 3
//內部測試版:1.2.0 20
versionCode
:
1
7
,
versionName
:
"1.1.
7
"
versionCode
:
1
8
,
versionName
:
"1.1.
8
"
]
version
=
[
...
...
library-database/src/main/java/com/gingersoft/gsa/cloud/database/utils/FoodDaoUtils.java
View file @
b5790dcf
...
...
@@ -4,7 +4,9 @@ import android.content.Context;
import
android.util.Log
;
import
com.gingersoft.gsa.cloud.database.DaoManager
;
import
com.gingersoft.gsa.cloud.database.bean.ColorBean
;
import
com.gingersoft.gsa.cloud.database.bean.Food
;
import
com.gingersoft.gsa.cloud.database.greendao.ColorBeanDao
;
import
com.gingersoft.gsa.cloud.database.greendao.FoodDao
;
import
org.greenrobot.greendao.query.QueryBuilder
;
...
...
@@ -161,10 +163,12 @@ public class FoodDaoUtils {
public
List
<
Food
>
queryFoodGroupByQueryBuilder
()
{
QueryBuilder
<
Food
>
queryBuilder
=
mManager
.
getDaoSession
().
queryBuilder
(
Food
.
class
);
long
currentTime
=
System
.
currentTimeMillis
();
return
queryBuilder
.
where
(
queryBuilder
.
and
(
FoodDao
.
Properties
.
ParentId
.
eq
(
0
),
FoodDao
.
Properties
.
StartDate
.
le
(
currentTime
),
FoodDao
.
Properties
.
EndDate
.
ge
(
currentTime
))).
orderAsc
(
FoodDao
.
Properties
.
SeqNo
).
list
();
// queryBuilder.join(ColorBean.class, ColorBeanDao.Properties.ColorId)
queryBuilder
.
where
(
queryBuilder
.
and
(
FoodDao
.
Properties
.
ParentId
.
eq
(
0
),
FoodDao
.
Properties
.
StartDate
.
le
(
currentTime
),
FoodDao
.
Properties
.
EndDate
.
ge
(
currentTime
)));
return
queryBuilder
.
orderAsc
(
FoodDao
.
Properties
.
SeqNo
).
list
();
}
/**
...
...
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