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
d088025b
Commit
d088025b
authored
Mar 17, 2021
by
Wyh
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
e860097a
029dc97d
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
1455 additions
and
1057 deletions
+1455
-1057
component-login/src/main/java/com/gingersoft/gsa/cloud/login/mvp/ui/activity/mvp/ui/activity/WelcomeActivity.java
+3
-0
component-manager/src/main/java/com/gingersoft/gsa/cloud/manager/di/module/AddAreaModule.java
+1
-0
component-manager/src/main/java/com/gingersoft/gsa/cloud/manager/mvp/ui/activity/TableManageActivity.java
+1
-0
component-manager/src/main/java/com/gingersoft/gsa/cloud/manager/mvp/ui/fragment/AreaListFragment.java
+4
-10
component-manager/src/main/java/com/gingersoft/gsa/cloud/manager/mvp/ui/fragment/TableListFragment.java
+4
-7
component-print/src/main/java/com/joe/print/mvp/print/PrintSlip.java
+1
-0
component-print/src/main/java/com/joe/print/mvp/ui/activity/PrintActivity.java
+39
-37
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/contract/MealStandContract.java
+2
-0
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/model/MealStandModel.java
+8
-1
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/model/bean/request/AddOrderRequest.java
+1
-10
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/model/utils/MealConditionFilterUtils.java
+20
-16
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/BaseOrderPresenter.java
+5
-1
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/MealStandPresenter.java
+46
-20
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/OrderContentPresenter.java
+24
-4
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/OrderPayPresenter.java
+2
-0
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/activity/MealStandActivity.java
+24
-0
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/adapter/meal/FineItemOneAdapter.java
+0
-2
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/CustomFoodDialog.java
+216
-0
component-table/src/main/res/layout/meal_dialog_custom_food.xml
+66
-0
component-table/src/main/res/layout/meal_layout_custom_food_money.xml
+43
-0
component-table/src/main/res/layout/meal_layout_custom_food_name.xml
+40
-0
config.gradle
+2
-2
library-base/src/main/java/com/jess/arms/base/delegate/AppDelegate.java
+11
-0
library-base/src/main/java/com/jess/arms/di/module/GlobalConfigModule.java
+15
-0
library-base/src/main/java/com/jess/arms/integration/IRepositoryManager.java
+9
-0
library-base/src/main/java/com/jess/arms/integration/RepositoryManager.java
+18
-2
library-base/src/main/java/com/jess/arms/integration/RetrofitServiceProxyHandler.java
+53
-0
library-common/src/main/java/com/gingersoft/gsa/cloud/app/GsaCloudApplication.java
+3
-1
library-common/src/main/java/com/gingersoft/gsa/cloud/common/core/restaurant/RestaurantInfoManager.java
+1
-1
library-common/src/main/java/com/gingersoft/gsa/cloud/common/core/user/UserContext.java
+1
-1
library-common/src/main/res/values-v21/styles.xml
+1
-0
library-database/build.gradle
+6
-1
library-database/src/main/java/com/gingersoft/gsa/cloud/database/bean/Food.java
+348
-561
library-database/src/main/java/com/gingersoft/gsa/cloud/database/greendao/DaoMaster.java
+2
-2
library-database/src/main/java/com/gingersoft/gsa/cloud/database/greendao/FoodDao.java
+364
-350
library-database/src/main/java/com/gingersoft/gsa/cloud/database/utils/FoodDaoUtils.java
+2
-1
library-order/src/main/java/com/gingersoft/gsa/cloud/order/bean/discount/CouponDiscountBean.java
+2
-0
library-order/src/main/java/com/gingersoft/gsa/cloud/order/bean/request/MealOrderPayRequest.java
+5
-10
library-order/src/main/java/com/gingersoft/gsa/cloud/order/bean/response/OrderDiscountResponse.java
+4
-0
library-order/src/main/java/com/gingersoft/gsa/cloud/order/order/DoshokuOrder.java
+19
-1
library-ui/src/main/java/com/gingersoft/gsa/cloud/ui/recylcler/event/RecyItemTouchHelperCallback.java
+39
-16
No files found.
component-login/src/main/java/com/gingersoft/gsa/cloud/login/mvp/ui/activity/mvp/ui/activity/WelcomeActivity.java
View file @
d088025b
...
...
@@ -16,6 +16,9 @@ import androidx.annotation.NonNull;
import
androidx.annotation.Nullable
;
import
androidx.constraintlayout.widget.ConstraintLayout
;
import
androidx.viewpager2.widget.ViewPager2
;
import
com.gingersoft.gsa.cloud.common.bean.BaseResult
;
import
com.gingersoft.gsa.cloud.common.bean.BaseResultOld
;
import
com.gingersoft.gsa.cloud.common.core.login.LoginBean
;
import
com.gingersoft.gsa.cloud.common.core.restaurant.RestaurantInfoManager
;
import
com.gingersoft.gsa.cloud.common.core.user.UserConstans
;
...
...
component-manager/src/main/java/com/gingersoft/gsa/cloud/manager/di/module/AddAreaModule.java
View file @
d088025b
...
...
@@ -5,6 +5,7 @@ import com.jess.arms.di.scope.FragmentScope;
import
dagger.Binds
;
import
dagger.Module
;
import
dagger.Provides
;
import
dagger.Subcomponent
;
import
com.gingersoft.gsa.cloud.manager.mvp.contract.AddAreaContract
;
import
com.gingersoft.gsa.cloud.manager.mvp.model.AddAreaModel
;
...
...
component-manager/src/main/java/com/gingersoft/gsa/cloud/manager/mvp/ui/activity/TableManageActivity.java
View file @
d088025b
...
...
@@ -25,6 +25,7 @@ import com.scwang.smartrefresh.layout.api.RefreshLayout;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Stream
;
import
me.yokeyword.fragmentation.ISupportFragment
;
import
me.yokeyword.fragmentation.anim.DefaultHorizontalAnimator
;
...
...
component-manager/src/main/java/com/gingersoft/gsa/cloud/manager/mvp/ui/fragment/AreaListFragment.java
View file @
d088025b
...
...
@@ -12,14 +12,12 @@ import android.widget.CheckBox;
import
android.widget.CompoundButton
;
import
android.widget.EditText
;
import
android.widget.LinearLayout
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.Nullable
;
import
androidx.core.content.ContextCompat
;
import
androidx.recyclerview.widget.ItemTouchHelper
;
import
androidx.recyclerview.widget.LinearLayoutManager
;
import
androidx.recyclerview.widget.RecyclerView
;
import
com.gingersoft.gsa.cloud.common.core.restaurant.RestaurantInfoManager
;
import
com.gingersoft.gsa.cloud.common.core.table.TableArea
;
import
com.gingersoft.gsa.cloud.manager.R
;
...
...
@@ -234,14 +232,10 @@ public class AreaListFragment extends BaseFragment<AreaListPresenter> implements
itemTouchHelperCallback
.
setOnMoveListener
(
new
RecyItemTouchHelperCallback
.
onMoveListener
()
{
@Override
public
void
onMoveFinish
(
RecyclerView
.
Adapter
adapter
)
{
if
(
adapter
instanceof
DefaultAdapter
)
{
DefaultAdapter
defaultAdapter
=
(
DefaultAdapter
)
adapter
;
if
(
defaultAdapter
.
getInfos
()
!=
null
)
{
String
ids
=
getTableAreaIds
(
defaultAdapter
.
getInfos
());
if
(!
TextUtils
.
isEmpty
(
ids
))
{
mActivity
.
changeAreaSort
(
ids
);
}
public
void
onMoveFinish
(
RecyclerView
.
Adapter
adapter
,
String
ids
)
{
if
(!
TextUtils
.
isEmpty
(
ids
))
{
if
(!
TextUtils
.
isEmpty
(
ids
))
{
mActivity
.
changeAreaSort
(
ids
);
}
}
}
...
...
component-manager/src/main/java/com/gingersoft/gsa/cloud/manager/mvp/ui/fragment/TableListFragment.java
View file @
d088025b
...
...
@@ -29,6 +29,7 @@ import androidx.recyclerview.widget.RecyclerView;
import
com.gingersoft.gsa.cloud.common.core.table.TableArea
;
import
com.gingersoft.gsa.cloud.common.core.table.TableManagerItem
;
import
com.gingersoft.gsa.cloud.common.logan.LoganManager
;
import
com.gingersoft.gsa.cloud.manager.R
;
import
com.gingersoft.gsa.cloud.manager.R2
;
import
com.gingersoft.gsa.cloud.manager.di.component.DaggerTableListComponent
;
...
...
@@ -318,14 +319,10 @@ public class TableListFragment extends BaseFragment<TableListPresenter> implemen
itemTouchHelperCallback
.
setOnMoveListener
(
new
RecyItemTouchHelperCallback
.
onMoveListener
()
{
@Override
public
void
onMoveFinish
(
RecyclerView
.
Adapter
adapter
)
{
if
(
mAdapter
instanceof
QMUIStickySectionAdapter
)
{
QMUIStickySectionAdapter
qmuiStickySectionAdapter
=
(
QMUIStickySectionAdapter
)
mAdapter
;
List
<
QMUISection
<
SectionHeader
,
TableManagerItem
>>
qmuiSectionList
=
qmuiStickySectionAdapter
.
getCurrentData
();
String
ids
=
getTableIds
(
qmuiSectionList
);
public
void
onMoveFinish
(
RecyclerView
.
Adapter
adapter
,
String
ids
)
{
if
(!
TextUtils
.
isEmpty
(
ids
))
{
if
(!
TextUtils
.
isEmpty
(
ids
))
{
mActivity
.
changeTableSort
(
getTableIds
(
qmuiSectionList
)
);
mActivity
.
changeTableSort
(
ids
);
}
}
}
...
...
component-print/src/main/java/com/joe/print/mvp/print/PrintSlip.java
View file @
d088025b
...
...
@@ -203,6 +203,7 @@ public class PrintSlip extends PrinterRoot<PrintSlipContent> {
layout
.
addView
(
getDiningFoodList
(
mContext
,
foodList
,
printerDeviceBean
,
0
,
true
));
layout
.
addView
(
getHalfLine
(
mContext
));
List
<
BillingBean
>
billingBeans
=
new
ArrayList
<>();
//添加合計項
billingBeans
.
add
(
new
BillingBean
(
"合計"
,
mPrintSlipContent
.
getWholeAmount
()));
//添加其他金額項
...
...
component-print/src/main/java/com/joe/print/mvp/ui/activity/PrintActivity.java
View file @
d088025b
...
...
@@ -114,52 +114,53 @@ public class PrintActivity extends BaseActivity<PrintPresenter> implements Print
@Override
public
void
initData
(
@Nullable
Bundle
savedInstanceState
)
{
PrinterFlowProxy
.
newInstance
().
registerPrinterFlowListener
(
new
PrinterFlowListener
()
{
PrinterFlowProxy
.
newInstance
().
registerPrinterFlowListener
(
printerFlowListener
);
}
@Override
public
void
connectionBefore
(
String
deviceName
,
String
IP
,
int
port
,
long
ioTimeout
,
long
printTimeout
)
{
private
PrinterFlowListener
printerFlowListener
=
new
PrinterFlowListener
()
{
@Override
public
void
connectionBefore
(
String
deviceName
,
String
IP
,
int
port
,
long
ioTimeout
,
long
printTimeout
)
{
}
}
@Override
public
void
connectionSuccess
()
{
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_PRINTING
,
PrinterLoadingDialog
.
STATUS_SUCCESS
,
null
);
}
@Override
public
void
connectionSuccess
()
{
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_PRINTING
,
PrinterLoadingDialog
.
STATUS_SUCCESS
,
null
);
}
@Override
public
void
connectionError
(
Exception
e
)
{
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_PRINTING
,
PrinterLoadingDialog
.
STATUS_ERROR
,
e
.
getMessage
());
printFail
();
}
@Override
public
void
connectionError
(
Exception
e
)
{
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_PRINTING
,
PrinterLoadingDialog
.
STATUS_ERROR
,
e
.
getMessage
());
printFail
();
}
@Override
public
void
disconnect
(
Exception
e
)
{
}
@Override
public
void
disconnect
(
Exception
e
)
{
}
@Override
public
void
onPrinterDataBefore
(
int
orderType
,
int
printType
,
String
printerData
,
String
printerDeviceInfo
)
{
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_CONNECTING
,
PrinterLoadingDialog
.
STATUS_SUCCESS
,
null
);
}
@Override
public
void
onPrinterDataBefore
(
int
orderType
,
int
printType
,
String
printerData
,
String
printerDeviceInfo
)
{
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_CONNECTING
,
PrinterLoadingDialog
.
STATUS_SUCCESS
,
null
);
}
@Override
public
void
onPrinterBitmapBefore
(
int
orderType
,
int
printType
,
String
directoryName
,
List
<
Bitmap
>
bitmaps
)
{
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_CONNECTING
,
PrinterLoadingDialog
.
STATUS_SUCCESS
,
null
);
}
@Override
public
void
onPrinterBitmapBefore
(
int
orderType
,
int
printType
,
String
directoryName
,
List
<
Bitmap
>
bitmaps
)
{
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_CONNECTING
,
PrinterLoadingDialog
.
STATUS_SUCCESS
,
null
);
}
@Override
public
void
onPrintSuccess
()
{
printerResult
=
true
;
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_RESULT
,
PrinterLoadingDialog
.
STATUS_SUCCESS
,
null
);
printSuccess
();
}
@Override
public
void
onPrintSuccess
()
{
printerResult
=
true
;
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_RESULT
,
PrinterLoadingDialog
.
STATUS_SUCCESS
,
null
);
printSuccess
();
}
@Override
public
void
onPrintError
(
Exception
e
,
int
errorCode
)
{
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_RESULT
,
PrinterLoadingDialog
.
STATUS_ERROR
,
e
.
getMessage
());
printFail
();
}
});
}
@Override
public
void
onPrintError
(
Exception
e
,
int
errorCode
)
{
printerLoadingDialog
.
setStep
(
PrinterLoadingDialog
.
PROGRESS_RESULT
,
PrinterLoadingDialog
.
STATUS_ERROR
,
e
.
getMessage
());
printFail
();
}
};
private
void
printFail
()
{
printerResult
=
false
;
...
...
@@ -544,6 +545,7 @@ public class PrintActivity extends BaseActivity<PrintPresenter> implements Print
printerInIt
.
disconnectEpson
();
}
printerLoadingDialog
.
dismiss
();
PrinterFlowProxy
.
newInstance
().
unregisterPrinterFlowListener
(
printerFlowListener
);
}
@Override
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/contract/MealStandContract.java
View file @
d088025b
...
...
@@ -11,6 +11,7 @@ import com.gingersoft.gsa.cloud.database.bean.Food;
import
com.gingersoft.gsa.cloud.database.bean.FoodCombo
;
import
com.gingersoft.gsa.cloud.database.bean.FoodModifier
;
import
com.gingersoft.gsa.cloud.database.bean.Modifier
;
import
com.gingersoft.gsa.cloud.order.commodity.OrderDetail
;
import
com.gingersoft.gsa.cloud.table.mvp.model.bean.response.BaseOrderResponse
;
import
com.jess.arms.base.DefaultAdapter
;
...
...
@@ -108,6 +109,7 @@ public interface MealStandContract {
void
setModifierTop
(
int
Margins
);
void
setCustomFoodDialog
(
int
customType
,
OrderDetail
foodItem
);
}
//Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/model/MealStandModel.java
View file @
d088025b
...
...
@@ -3,6 +3,7 @@ package com.gingersoft.gsa.cloud.table.mvp.model;
import
android.app.Application
;
import
com.gingersoft.gsa.cloud.common.bean.BaseResult
;
import
com.gingersoft.gsa.cloud.common.logan.LoganManager
;
import
com.gingersoft.gsa.cloud.database.bean.ComboItem
;
import
com.gingersoft.gsa.cloud.database.bean.Discount
;
import
com.gingersoft.gsa.cloud.database.bean.Food
;
...
...
@@ -27,13 +28,19 @@ import com.jess.arms.di.scope.ActivityScope;
import
com.jess.arms.integration.IRepositoryManager
;
import
com.jess.arms.mvp.BaseModel
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.inject.Inject
;
import
io.reactivex.Observable
;
import
io.reactivex.Observer
;
import
io.reactivex.disposables.Disposable
;
import
io.reactivex.functions.Action
;
import
io.reactivex.functions.Consumer
;
import
io.reactivex.functions.Function
;
import
okhttp3.RequestBody
;
import
retrofit2.Retrofit
;
/**
...
...
@@ -91,7 +98,7 @@ public class MealStandModel extends BaseModel implements MealStandContract.Model
@Override
public
List
<
Modifier
>
queryDB_ModifierList
(
long
fid
,
int
mode
)
{
ModifierDaoUtils
daoUtils
=
new
ModifierDaoUtils
(
mApplication
);
return
MealStyleUtils
.
assemblyModifiersColor
(
daoUtils
.
queryModifiersByFid
(
fid
,
mode
))
;
return
MealStyleUtils
.
assemblyModifiersColor
(
daoUtils
.
queryModifiersByFid
(
fid
,
mode
));
}
@Override
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/model/bean/request/AddOrderRequest.java
View file @
d088025b
...
...
@@ -27,19 +27,10 @@ public class AddOrderRequest {
private
long
tableId
;
private
String
tableNumber
;
/**
* 合計金額
*/
/**
* 服務費
*/
/**
* 賬單小數
*/
private
Double
rounding
;
/**
* 總金額
*/
private
List
<
Long
>
deleteDiscountIds
;
private
List
<
OrderDiscountRequest
>
discountDetails
;
private
Map
<
String
,
List
<
OrderResponse
.
OrderDetailsBean
>>
maps
;
private
List
<
DeleteOrderRequest
>
deleteOrders
;
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/model/utils/MealConditionFilterUtils.java
View file @
d088025b
...
...
@@ -27,15 +27,17 @@ public class MealConditionFilterUtils {
* @return
*/
public
static
List
<
Food
>
foodConditionFilter
(
List
<
Food
>
foodList
,
int
summary
)
{
String
strSummary
=
String
.
valueOf
(
summary
);
List
<
Food
>
newFoodList
=
new
ArrayList
<>();
for
(
Food
food
:
foodList
)
{
String
foodSummary
=
food
.
getFoodSummary
();
if
(!
TextUtils
.
isEmpty
(
foodSummary
))
{
String
[]
summarys
=
foodSummary
.
split
(
","
);
for
(
String
item
:
summarys
)
{
if
(
item
.
equals
(
strSummary
))
{
newFoodList
.
add
(
food
);
if
(
foodList
==
null
||
foodList
.
size
()
>
0
)
{
String
strSummary
=
String
.
valueOf
(
summary
);
for
(
Food
food
:
foodList
)
{
String
foodSummary
=
food
.
getFoodSummary
();
if
(!
TextUtils
.
isEmpty
(
foodSummary
))
{
String
[]
summarys
=
foodSummary
.
split
(
","
);
for
(
String
item
:
summarys
)
{
if
(
item
.
equals
(
strSummary
))
{
newFoodList
.
add
(
food
);
}
}
}
}
...
...
@@ -51,15 +53,17 @@ public class MealConditionFilterUtils {
* @return
*/
public
static
List
<
ComboItem
>
comboConditionFilter
(
List
<
ComboItem
>
comboItemList
,
int
summary
)
{
String
strSummary
=
String
.
valueOf
(
summary
);
List
<
ComboItem
>
newComboItemList
=
new
ArrayList
<>();
for
(
ComboItem
comboItem
:
comboItemList
)
{
String
foodSummary
=
comboItem
.
getFoodSummary
();
if
(!
TextUtils
.
isEmpty
(
foodSummary
))
{
String
[]
summarys
=
foodSummary
.
split
(
","
);
for
(
String
item
:
summarys
)
{
if
(
item
.
equals
(
strSummary
))
{
newComboItemList
.
add
(
comboItem
);
if
(
newComboItemList
==
null
||
newComboItemList
.
size
()
>
0
)
{
String
strSummary
=
String
.
valueOf
(
summary
);
for
(
ComboItem
comboItem
:
comboItemList
)
{
String
foodSummary
=
comboItem
.
getFoodSummary
();
if
(!
TextUtils
.
isEmpty
(
foodSummary
))
{
String
[]
summarys
=
foodSummary
.
split
(
","
);
for
(
String
item
:
summarys
)
{
if
(
item
.
equals
(
strSummary
))
{
newComboItemList
.
add
(
comboItem
);
}
}
}
}
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/BaseOrderPresenter.java
View file @
d088025b
...
...
@@ -320,6 +320,7 @@ public abstract class BaseOrderPresenter<M extends BaseOrderContract.Model, V ex
//整單折扣
Discount
discount
=
new
Discount
();
discount
.
setId
(
orderDiscount
.
getDiscountId
());
discount
.
setDiscountRecordId
(
orderDiscount
.
getId
());
discount
.
setType
(
orderDiscount
.
getDiscountType
());
discount
.
setRemark
(
orderDiscount
.
getRemark
());
discount
.
setDiscountValue
(
orderDiscount
.
getDiscountValue
());
...
...
@@ -336,6 +337,7 @@ public abstract class BaseOrderPresenter<M extends BaseOrderContract.Model, V ex
LoganManager
.
w_tableMode
(
TAG
,
"已下單優惠券折扣金額="
+
orderDiscount
.
getDiscountAmount
());
//優惠券折扣
CouponDiscountBean
couponDiscount
=
new
CouponDiscountBean
();
couponDiscount
.
setDiscountRecordId
(
orderDiscount
.
getId
());
couponDiscount
.
setCouponTypeName1
(
orderDiscount
.
getRemark
());
couponDiscount
.
setCouponTypeName2
(
orderDiscount
.
getRemark2
());
couponDiscount
.
setCouponTypeName3
(
orderDiscount
.
getRemark3
());
...
...
@@ -1013,7 +1015,9 @@ public abstract class BaseOrderPresenter<M extends BaseOrderContract.Model, V ex
if
(
mDoshokuOrder
.
getDeleteMealOrders
()
!=
null
)
{
request
.
setDeleteOrders
(
mDoshokuOrder
.
getDeleteMealOrders
());
}
if
(
mDoshokuOrder
.
getDeleteDiscountIds
()
!=
null
)
{
request
.
setDeleteDiscountIds
(
mDoshokuOrder
.
getDeleteDiscountIds
());
}
Double
rounding
=
getRounding
();
request
.
setRounding
(
rounding
!=
null
?
rounding
:
0
);
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/MealStandPresenter.java
View file @
d088025b
...
...
@@ -212,13 +212,16 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
public
void
initMealData
()
{
long
startTime
=
System
.
currentTimeMillis
();
List
<
Food
>
foodGroupList
=
mModel
.
queryDB_FoodGroupList
(
BaseOrder
.
orderType
);
long
endTime
=
System
.
currentTimeMillis
();
LoganManager
.
w_tableMode
(
TAG
,
"queryDB_FoodGroupList執行時間-》"
+
(
endTime
-
startTime
));
if
(
foodGroupList
!=
null
&&
foodGroupList
.
size
()
>
0
)
{
// for (Food foodGroup: foodGroupList) {
// foodGroup.setColorBean(foodGroup.getColorBean());
// }
mFoodGroupList
.
addAll
(
foodGroupList
);
Food
defalutFoodGroup
=
getDefalutFoodGroup
(
mFoodGroupList
);
...
...
@@ -327,8 +330,13 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
changedMealByParentId
(
datasBean
.
getId
());
}
else
{
mCurrentOrderDetailBean
=
OrderDetail
.
foodTransOrderDetails
(
datasBean
,
1
);
//加載套餐食品
loadComboData
(
mCurrentOrderDetailBean
,
false
);
if
(
datasBean
.
getCustomType
()
==
null
)
{
//自定義食品
mRootView
.
setCustomFoodDialog
(
Food
.
CUSTOM_TYPE_100
,
mCurrentOrderDetailBean
);
}
else
{
//加載套餐食品
loadComboData
(
mCurrentOrderDetailBean
,
false
);
}
}
}
});
...
...
@@ -418,7 +426,6 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
});
}
private
void
addFoodItemBefore
(
OrderDetail
datasBean
)
{
int
addPosition
=
addFoodItem
(
datasBean
);
//这里主食品作为选中主体
...
...
@@ -561,7 +568,6 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
}
}
@Override
public
void
onError
(
Throwable
e
)
{
}
...
...
@@ -584,19 +590,22 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
if
(
IActivity
.
getCurrentViewMode
()
!=
MealConstant
.
fine_ViewMode
&&
isSelectedMeal
||
autoMod
)
{
mRootView
.
showViewModeVisibility
(
MealConstant
.
combo_ViewMode
);
}
if
(!
RvMealClicked
)
{
//新增食品
addFoodItemBefore
(
mCurrentOrderDetailBean
);
//更新沽清食品數量
updateFoodSoldoutCtrData
();
//更新賬單金額
updateBillInfo
();
}
updateOrderFoodNumber
();
toAddFoodItem
(
mCurrentOrderDetailBean
);
}
});
}
public
void
toAddFoodItem
(
OrderDetail
foodItem
)
{
if
(!
RvMealClicked
)
{
//新增食品
addFoodItemBefore
(
foodItem
);
//更新沽清食品數量
updateFoodSoldoutCtrData
();
//更新賬單金額
updateBillInfo
();
}
updateOrderFoodNumber
();
}
/**
* 裁減掉已超出的細項
...
...
@@ -1185,12 +1194,33 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
}
public
void
changedMealByParentId
(
long
parentId
)
{
long
startTime
=
System
.
currentTimeMillis
();
List
<
Food
>
foodList
=
mModel
.
queryDB_FoodList
(
parentId
,
BaseOrder
.
orderType
);
long
endTime
=
System
.
currentTimeMillis
();
LoganManager
.
w_tableMode
(
TAG
,
"queryDB_FoodList執行時間-》"
+
(
endTime
-
startTime
));
mFoodAdapter
.
resetSelect
(-
1
,
null
);
if
(
foodList
!=
null
)
{
updateFoodData
(
foodList
,
parentId
);
}
mRootView
.
showViewModeVisibility
(
MealConstant
.
food_ViewMode
,
MealConstant
.
food_group_ViewMode
);
// .subscribeOn(Schedulers.io())
// .subscribeOn(AndroidSchedulers.mainThread())
// .observeOn(AndroidSchedulers.mainThread())
// .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
// .subscribe(new ErrorHandleSubscriber<List<Food>>(mErrorHandler) {
//
// @Override
// public void onNext(@NonNull List<Food> foodList) {
// mFoodAdapter.resetSelect(-1, null);
// if (foodList != null) {
// updateFoodData(foodList, parentId);
// }
// mRootView.showViewModeVisibility(MealConstant.food_ViewMode, MealConstant.food_group_ViewMode);
// }
// });
}
/**
...
...
@@ -1821,10 +1851,6 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
* @param parentId
*/
private
void
updateFoodData
(
List
<
Food
>
foodList
,
long
parentId
)
{
for
(
Food
food
:
foodList
)
{
ColorBean
colorBean
=
food
.
getColorBean
();
int
i
=
0
;
}
setTopId
(
foodList
,
parentId
);
setFoodComboListStatus
(
foodList
);
mFoodList
.
clear
();
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/OrderContentPresenter.java
View file @
d088025b
...
...
@@ -29,6 +29,8 @@ import com.gingersoft.gsa.cloud.order.bean.response.OrderResponse;
import
com.gingersoft.gsa.cloud.order.billItem.BillItem
;
import
com.gingersoft.gsa.cloud.order.billItem.DiscountItem
;
import
com.gingersoft.gsa.cloud.order.commodity.OrderDetail
;
import
com.gingersoft.gsa.cloud.order.discount.CouponDiscount
;
import
com.gingersoft.gsa.cloud.order.discount.MemberDiscount
;
import
com.gingersoft.gsa.cloud.order.discount.NomalDiscount
;
import
com.gingersoft.gsa.cloud.order.order.BaseOrder
;
import
com.gingersoft.gsa.cloud.order.order.DoshokuOrder
;
...
...
@@ -175,7 +177,7 @@ public class OrderContentPresenter extends BaseOrderPresenter<OrderContentContra
@Override
public
void
onItemClick
(
View
v
,
Function
function
)
{
LoganManager
.
w_tableMode
(
TAG
,
LoganManager
.
EVENT_CLICK
,
function
.
getResName
());
LoganManager
.
w_tableMode
(
TAG
,
LoganManager
.
EVENT_CLICK
,
function
.
getResName
());
mRootView
.
recordOperat
(
true
);
...
...
@@ -237,7 +239,7 @@ public class OrderContentPresenter extends BaseOrderPresenter<OrderContentContra
@Override
public
boolean
onItemLongClick
(
View
v
,
Function
datasBean
)
{
LoganManager
.
w_tableMode
(
TAG
,
LoganManager
.
EVENT_LONG_CLICK
,
datasBean
.
getResName
());
LoganManager
.
w_tableMode
(
TAG
,
LoganManager
.
EVENT_LONG_CLICK
,
datasBean
.
getResName
());
if
(
datasBean
.
getResName
().
equals
(
"印單"
)
||
datasBean
.
getResName
().
equals
(
"送單"
))
{
PrinterUtils
.
switchPrintMethod
(
IActivity
,
datasBean
,
mOrderTopFunctionAdapter
);
}
...
...
@@ -253,11 +255,29 @@ public class OrderContentPresenter extends BaseOrderPresenter<OrderContentContra
@Override
public
void
onItemDeleteClick
(
BillItem
datasBean
,
int
position
)
{
addDeleteDiscountIdByType
(
datasBean
);
removeBillItemByPosition
(
position
);
}
});
}
/**
* 跟进折扣类型将Id加入到删除列表,注:会员折扣不可删除
*
* @param item
*/
private
void
addDeleteDiscountIdByType
(
BillItem
item
)
{
if
(
item
instanceof
DiscountItem
)
{
if
(
item
.
getType
()
==
BillItem
.
NOMAL_DISCOUNT_TYPE
)
{
NomalDiscount
nomalDiscount
=
(
NomalDiscount
)
((
DiscountItem
)
item
).
getDiscount
();
mDoshokuOrder
.
addDeleteDiscountId
(
nomalDiscount
.
getDiscount
().
getDiscountRecordId
());
}
else
if
(
item
.
getType
()
==
BillItem
.
COUPON_DISCOUNT_TYPE
)
{
CouponDiscount
couponDiscount
=
(
CouponDiscount
)
((
DiscountItem
)
item
).
getDiscount
();
mDoshokuOrder
.
addDeleteDiscountId
(
couponDiscount
.
getCouponDiscountId
());
}
}
}
public
void
initTopFunctionData
()
{
if
(
mFunctionList
.
size
()
>
0
)
{
mFunctionList
.
clear
();
...
...
@@ -404,7 +424,7 @@ public class OrderContentPresenter extends BaseOrderPresenter<OrderContentContra
.
setActionName
(
"printActivity"
)
.
addParam
(
PrintConstans
.
PRINT_TYPE
,
PrintConstans
.
PRINT_SERVE
)
.
addParam
(
PrintConstans
.
PRINT_CONTENT
,
printContent
)
.
addParam
(
PrintConstans
.
PRINT_ORDER_NO
,
DoshokuOrder
.
getInstance
().
getOrderNo
())
.
addParam
(
PrintConstans
.
PRINT_ORDER_NO
,
DoshokuOrder
.
getInstance
().
getOrderNo
())
.
build
()
.
callAsyncCallbackOnMainThread
((
cc
,
result
)
->
{
if
(
result
.
isSuccess
())
{
...
...
@@ -451,7 +471,7 @@ public class OrderContentPresenter extends BaseOrderPresenter<OrderContentContra
CC
.
obtainBuilder
(
ComponentName
.
COMPONENT_PRINT
)
.
addParam
(
PrintConstans
.
PRINT_TYPE
,
PrintConstans
.
PRINT_SLIP
)
//印單
.
addParam
(
PrintConstans
.
PRINT_CONTENT
,
printContent
)
.
addParam
(
PrintConstans
.
PRINT_ORDER_NO
,
DoshokuOrder
.
getInstance
().
getOrderNo
())
.
addParam
(
PrintConstans
.
PRINT_ORDER_NO
,
DoshokuOrder
.
getInstance
().
getOrderNo
())
.
setActionName
(
"printActivity"
)
.
build
()
.
callAsyncCallbackOnMainThread
((
cc
,
result
)
->
{
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/OrderPayPresenter.java
View file @
d088025b
...
...
@@ -239,6 +239,8 @@ public class OrderPayPresenter extends BaseOrderPresenter<OrderPayContract.Model
}
whetherFreeService
=
payMethod
.
getWhetherFreeService
();
orderPay
.
setAmount
(
payMethod
.
getPayMoney
());
orderPay
.
setWhetherReportCount
(
payMethod
.
getWhetherReportCount
());
orderPay
.
setPayName
(
payMethod
.
getPayName
());
payRequest
.
getOrderPays
().
add
(
orderPay
);
}
payRequest
.
setWhetherFreeService
(
whetherFreeService
);
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/activity/MealStandActivity.java
View file @
d088025b
...
...
@@ -6,15 +6,19 @@ import android.graphics.Color;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.SystemClock
;
import
android.text.Editable
;
import
android.text.TextUtils
;
import
android.text.TextWatcher
;
import
android.util.DisplayMetrics
;
import
android.util.SparseArray
;
import
android.util.TypedValue
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewStub
;
import
android.widget.BaseAdapter
;
import
android.widget.Button
;
import
android.widget.Chronometer
;
import
android.widget.EditText
;
import
android.widget.FrameLayout
;
import
android.widget.ImageButton
;
import
android.widget.ImageView
;
...
...
@@ -65,12 +69,14 @@ import com.gingersoft.gsa.cloud.table.di.component.DaggerMealStandComponent;
import
com.gingersoft.gsa.cloud.table.mvp.contract.MealStandContract
;
import
com.gingersoft.gsa.cloud.table.mvp.model.bean.SoldoutCtrFood
;
import
com.gingersoft.gsa.cloud.table.mvp.model.bean.event.InitTableEvent
;
import
com.gingersoft.gsa.cloud.table.mvp.model.constant.OrderConentActionConstant
;
import
com.gingersoft.gsa.cloud.table.mvp.presenter.MealStandPresenter
;
import
com.gingersoft.gsa.cloud.table.mvp.ui.adapter.BaseFragmentAdapter
;
import
com.gingersoft.gsa.cloud.table.mvp.ui.adapter.meal.FoodGroupAdapter
;
import
com.gingersoft.gsa.cloud.table.mvp.ui.adapter.meal.SelectMealAdapter
;
import
com.gingersoft.gsa.cloud.table.mvp.ui.fragment.FineItemAllFragment
;
import
com.gingersoft.gsa.cloud.table.mvp.ui.widget.ChooseNumberDialog
;
import
com.gingersoft.gsa.cloud.table.mvp.ui.widget.CustomFoodDialog
;
import
com.gingersoft.gsa.cloud.table.mvp.ui.widget.UseMemberDialog
;
import
com.gingersoft.gsa.cloud.ui.recylcler.Indicator.PagerConfig
;
import
com.gingersoft.gsa.cloud.ui.recylcler.Indicator.PagerGridLayoutManager
;
...
...
@@ -86,8 +92,12 @@ import com.jess.arms.base.BaseFragmentActivity;
import
com.jess.arms.base.DefaultAdapter
;
import
com.jess.arms.di.component.AppComponent
;
import
com.jess.arms.utils.ArmsUtils
;
import
com.lxj.xpopup.util.KeyboardUtils
;
import
com.qmuiteam.qmui.alpha.QMUIAlphaTextView
;
import
com.qmuiteam.qmui.util.QMUIDisplayHelper
;
import
com.qmuiteam.qmui.widget.dialog.QMUIDialog
;
import
com.qmuiteam.qmui.widget.dialog.QMUIDialogAction
;
import
com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
;
import
org.simple.eventbus.EventBus
;
...
...
@@ -1401,6 +1411,20 @@ public class MealStandActivity extends BaseFragmentActivity<MealStandPresenter>
}
@Override
public
void
setCustomFoodDialog
(
int
customType
,
OrderDetail
foodItem
)
{
new
CustomFoodDialog
(
mContext
,
customType
)
.
create
(
R
.
style
.
MyEditDialogTheme
)
.
setOnEditListener
((
dialog
,
name
,
money
)
->
{
dialog
.
dismiss
();
foodItem
.
setProductName
(
name
);
foodItem
.
setUnit_price
(
Double
.
parseDouble
(
money
));
foodItem
.
setPrice
(
foodItem
.
getUnit_price
());
mPresenter
.
toAddFoodItem
(
foodItem
);
})
.
show
();
}
@Override
public
void
showBtnMealModifyRestoreVisibility
(
boolean
show
)
{
btn_meal_modify_restore
.
setVisibility
(
show
?
View
.
VISIBLE
:
View
.
GONE
);
}
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/adapter/meal/FineItemOneAdapter.java
View file @
d088025b
...
...
@@ -9,9 +9,7 @@ import android.view.ViewGroup;
import
android.widget.ImageView
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
androidx.recyclerview.widget.GridLayoutManager
;
import
com.gingersoft.gsa.cloud.app.GsaCloudApplication
;
import
com.gingersoft.gsa.cloud.database.bean.ColorBean
;
import
com.gingersoft.gsa.cloud.database.bean.Modifier
;
...
...
component-table/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/CustomFoodDialog.java
0 → 100644
View file @
d088025b
package
com
.
gingersoft
.
gsa
.
cloud
.
table
.
mvp
.
ui
.
widget
;
import
android.app.Dialog
;
import
android.content.Context
;
import
android.content.DialogInterface
;
import
android.os.MessageQueue
;
import
android.text.Editable
;
import
android.text.TextWatcher
;
import
android.view.ViewGroup
;
import
android.view.ViewStub
;
import
android.widget.Button
;
import
android.widget.EditText
;
import
android.widget.FrameLayout
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
androidx.constraintlayout.widget.ConstraintLayout
;
import
com.gingersoft.gsa.cloud.app.GsaCloudApplication
;
import
com.gingersoft.gsa.cloud.common.utils.LanguageUtils
;
import
com.gingersoft.gsa.cloud.database.bean.Food
;
import
com.gingersoft.gsa.cloud.table.R
;
import
com.jess.arms.utils.ArmsUtils
;
import
com.lxj.xpopup.util.KeyboardUtils
;
import
com.qmuiteam.qmui.layout.QMUILinearLayout
;
import
com.qmuiteam.qmui.util.QMUIDisplayHelper
;
import
com.qmuiteam.qmui.widget.dialog.QMUIDialog
;
import
com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
;
/**
* @作者: bin
* @創建時間: 2021-03-11 17:38
* @更新時間: 2021-03-11 17:38
* @描述:
*/
public
class
CustomFoodDialog
{
private
Context
mContext
;
private
QMUIDialog
customDialog
;
private
EditText
ed_name
,
ed_money
;
private
int
mRadius
;
//0:value焦点、1:money焦点
private
int
currFocus
=
0
;
//0:清除、1:返回
private
int
clearOrReturn
=
1
;
private
int
mCustomType
;
public
CustomFoodDialog
(
Context
context
,
int
customType
)
{
this
.
mContext
=
context
;
this
.
mCustomType
=
customType
;
mRadius
=
QMUIDisplayHelper
.
dp2px
(
mContext
,
8
);
}
public
CustomFoodDialog
create
(
int
style
)
{
customDialog
=
new
QMUIDialog
.
CustomDialogBuilder
(
mContext
)
.
setLayout
(
R
.
layout
.
meal_dialog_custom_food
)
.
create
(
style
);
buildViews
();
return
this
;
}
public
void
show
()
{
if
(
customDialog
!=
null
)
{
customDialog
.
show
();
}
}
private
void
buildViews
()
{
QMUILinearLayout
llContainer
=
customDialog
.
findViewById
(
R
.
id
.
lLayout_bg
);
ViewStub
vs_name
=
customDialog
.
findViewById
(
R
.
id
.
vs_name
);
ViewStub
vs_money
=
customDialog
.
findViewById
(
R
.
id
.
vs_money
);
QMUIRoundButton
btn_ok
=
customDialog
.
findViewById
(
R
.
id
.
btn_ok
);
QMUIRoundButton
btn_clear_or_return
=
customDialog
.
findViewById
(
R
.
id
.
btn_clear_or_return
);
float
mShadowAlpha
=
0.25f
;
int
mShadowElevationDp
=
14
;
llContainer
.
setRadiusAndShadow
(
mRadius
,
QMUIDisplayHelper
.
dp2px
(
mContext
,
mShadowElevationDp
),
mShadowAlpha
);
llContainer
.
setLayoutParams
(
new
ConstraintLayout
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
));
if
(
mCustomType
==
Food
.
CUSTOM_TYPE_101
)
{
vs_name
.
inflate
();
TextView
tv_name
=
customDialog
.
findViewById
(
R
.
id
.
tv_name
);
ed_name
=
customDialog
.
findViewById
(
R
.
id
.
ed_name
);
tv_name
.
setText
(
"名稱"
);
setOnFocusChangeListener
(
ed_name
);
addTextChangedListener
(
ed_name
,
btn_clear_or_return
);
}
else
if
(
mCustomType
==
Food
.
CUSTOM_TYPE_102
)
{
vs_money
.
inflate
();
TextView
tv_money
=
customDialog
.
findViewById
(
R
.
id
.
tv_money
);
ed_money
=
customDialog
.
findViewById
(
R
.
id
.
et_money
);
tv_money
.
setText
(
"金額"
);
setOnFocusChangeListener
(
ed_money
);
addTextChangedListener
(
ed_money
,
btn_clear_or_return
);
}
else
{
vs_name
.
inflate
();
vs_money
.
inflate
();
TextView
tv_name
=
customDialog
.
findViewById
(
R
.
id
.
tv_name
);
TextView
tv_money
=
customDialog
.
findViewById
(
R
.
id
.
tv_money
);
ed_name
=
customDialog
.
findViewById
(
R
.
id
.
ed_name
);
ed_money
=
customDialog
.
findViewById
(
R
.
id
.
et_money
);
tv_name
.
setText
(
"名稱"
);
tv_money
.
setText
(
"金額"
);
setOnFocusChangeListener
(
ed_name
);
setOnFocusChangeListener
(
ed_money
);
addTextChangedListener
(
ed_name
,
btn_clear_or_return
);
addTextChangedListener
(
ed_money
,
btn_clear_or_return
);
}
btn_ok
.
setOnClickListener
((
view
)
->
{
if
(
ed_name
!=
null
)
{
KeyboardUtils
.
hideSoftInput
(
ed_name
);
}
if
(
ed_money
!=
null
)
{
KeyboardUtils
.
hideSoftInput
(
ed_money
);
}
String
name
=
getTvNameText
();
String
money
=
getTvMoneyText
();
if
(
onEditListener
!=
null
)
{
onEditListener
.
onInput
(
customDialog
,
name
,
money
);
}
});
btn_clear_or_return
.
setOnClickListener
((
view
)
->
{
if
(
clearOrReturn
==
1
)
{
customDialog
.
cancel
();
}
else
{
//检查焦点
String
s
;
switch
(
currFocus
)
{
case
0
:
s
=
ed_name
.
getText
().
toString
();
if
(
s
.
length
()
>
0
)
{
s
=
s
.
substring
(
0
,
s
.
length
()
-
1
);
ed_name
.
setText
(
s
);
ed_name
.
setSelection
(
s
.
length
());
}
break
;
case
1
:
s
=
ed_money
.
getText
().
toString
();
if
(
s
.
length
()
>
0
)
{
s
=
s
.
substring
(
0
,
s
.
length
()
-
1
);
ed_money
.
setText
(
s
);
ed_money
.
setSelection
(
s
.
length
());
}
break
;
}
}
});
}
private
void
setOnFocusChangeListener
(
EditText
editText
)
{
editText
.
setOnFocusChangeListener
((
v
,
hasFocus
)
->
{
if
(
hasFocus
)
{
if
(
editText
.
getId
()
==
R
.
id
.
ed_name
)
{
currFocus
=
0
;
}
else
{
currFocus
=
1
;
}
}
});
}
private
void
addTextChangedListener
(
EditText
editText
,
Button
btn_clear_or_return
)
{
editText
.
addTextChangedListener
(
new
TextWatcher
()
{
@Override
public
void
beforeTextChanged
(
CharSequence
s
,
int
start
,
int
count
,
int
after
)
{
}
@Override
public
void
onTextChanged
(
CharSequence
s
,
int
start
,
int
before
,
int
count
)
{
if
(
s
.
length
()
>
0
)
{
clearOrReturn
=
0
;
}
else
{
clearOrReturn
=
1
;
}
}
@Override
public
void
afterTextChanged
(
Editable
s
)
{
if
(
clearOrReturn
==
0
)
{
btn_clear_or_return
.
setText
(
LanguageUtils
.
get_language_system
(
GsaCloudApplication
.
getAppContext
(),
"Meal.funcMoney.clear"
,
"clear"
));
}
else
{
btn_clear_or_return
.
setText
(
LanguageUtils
.
get_language_system
(
GsaCloudApplication
.
getAppContext
(),
"Return"
,
"return"
));
}
}
});
}
private
String
getTvNameText
()
{
return
ed_name
!=
null
?
ed_name
.
getText
().
toString
()
:
null
;
}
private
String
getTvMoneyText
()
{
return
ed_money
!=
null
?
ed_money
.
getText
().
toString
()
:
null
;
}
private
OnEditListener
onEditListener
;
public
CustomFoodDialog
setOnEditListener
(
OnEditListener
onEditListener
)
{
this
.
onEditListener
=
onEditListener
;
return
this
;
}
public
interface
OnEditListener
{
void
onInput
(
Dialog
dialog
,
String
name
,
String
money
);
}
}
component-table/src/main/res/layout/meal_dialog_custom_food.xml
0 → 100644
View file @
d088025b
<?xml version="1.0" encoding="utf-8"?>
<com.qmuiteam.qmui.layout.QMUILinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/lLayout_bg"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/theme_white_color"
android:orientation=
"vertical"
android:padding=
"@dimen/normal_space"
>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/head_height"
android:gravity=
"center"
android:text=
"自定義食品"
android:textColor=
"@color/theme_text_color"
android:textSize=
"@dimen/sp_18"
/>
<ViewStub
android:id=
"@+id/vs_name"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout=
"@layout/meal_layout_custom_food_name"
/>
<ViewStub
android:id=
"@+id/vs_money"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout=
"@layout/meal_layout_custom_food_money"
/>
<LinearLayout
android:id=
"@+id/btns"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/normal_space"
>
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
android:id=
"@+id/btn_ok"
android:layout_width=
"0dp"
android:layout_height=
"@dimen/button_height"
android:layout_marginRight=
"@dimen/normal_space5"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"確認"
android:textColor=
"@color/theme_white_color"
android:textSize=
"@dimen/text_size_default"
app:qmui_backgroundColor=
"@color/theme_color"
app:qmui_radius=
"@dimen/dp_5"
/>
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
android:id=
"@+id/btn_clear_or_return"
android:layout_width=
"0dp"
android:layout_height=
"@dimen/button_height"
android:layout_marginRight=
"@dimen/normal_space5"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"返回"
android:textColor=
"@color/theme_black"
android:textSize=
"@dimen/text_size_default"
app:qmui_backgroundColor=
"@color/theme_hint_color"
app:qmui_borderColor=
"@color/theme_hint_color"
app:qmui_radius=
"@dimen/dp_5"
/>
</LinearLayout>
</com.qmuiteam.qmui.layout.QMUILinearLayout>
\ No newline at end of file
component-table/src/main/res/layout/meal_layout_custom_food_money.xml
0 → 100644
View file @
d088025b
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/ll_money"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_money"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"TextView"
android:textColor=
"@color/black"
android:textSize=
"@dimen/sp_16"
/>
<com.rengwuxian.materialedittext.MaterialEditText
android:id=
"@+id/et_money"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/normal_space"
android:layout_weight=
"1"
android:background=
"@null"
android:hint=
"請輸入金額"
android:inputType=
"numberDecimal"
android:paddingLeft=
"@dimen/dp_10"
android:paddingRight=
"@dimen/dp_10"
android:singleLine=
"true"
android:textColor=
"@color/normal_color"
android:textColorHint=
"@color/hint_color"
android:textSize=
"@dimen/sp_16"
app:met_autoValidate=
"true"
app:met_baseColor=
"@color/theme_black"
app:met_clearButton=
"true"
app:met_floatingLabel=
"highlight"
app:met_iconPadding=
"2dp"
app:met_primaryColor=
"@color/theme_color"
app:met_singleLineEllipsis=
"false"
/>
</LinearLayout>
\ No newline at end of file
component-table/src/main/res/layout/meal_layout_custom_food_name.xml
0 → 100644
View file @
d088025b
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/ll_name"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"TextView"
android:textColor=
"@color/black"
android:textSize=
"@dimen/sp_16"
/>
<com.rengwuxian.materialedittext.MaterialEditText
android:id=
"@+id/ed_name"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:background=
"@null"
android:hint=
"請輸入名稱"
android:layout_margin=
"@dimen/normal_space"
android:paddingLeft=
"@dimen/dp_10"
android:paddingRight=
"@dimen/dp_10"
android:singleLine=
"true"
android:textColor=
"@color/normal_color"
android:textColorHint=
"@color/hint_color"
android:textSize=
"@dimen/sp_16"
app:met_autoValidate=
"true"
app:met_clearButton=
"true"
app:met_floatingLabel=
"highlight"
app:met_iconPadding=
"2dp"
app:met_baseColor=
"@color/theme_black"
app:met_primaryColor=
"@color/theme_color"
app:met_singleLineEllipsis=
"false"
/>
</LinearLayout>
\ No newline at end of file
config.gradle
View file @
d088025b
...
...
@@ -21,7 +21,7 @@ ext {
rxlifecycle2SdkVersion
:
"2.2.1"
,
espressoSdkVersion
:
"3.0.1"
,
fragmentationVersion
:
"1.3.8"
,
canarySdkVersion
:
"
1.5.4
"
,
canarySdkVersion
:
"
2.2
"
,
]
buildType
=
[
...
...
@@ -126,7 +126,7 @@ ext {
"timber"
:
"com.jakewharton.timber:timber:4.6.0"
,
"logger"
:
"com.orhanobut:logger:2.1.1"
,
"canary-debug"
:
"com.squareup.leakcanary:leakcanary-android:${version["
canarySdkVersion
"]}"
,
"canary-release"
:
"com.squareup.leakcanary:leakcanary-android-no-op:
${version["
canarySdkVersion
"]}
"
,
"canary-release"
:
"com.squareup.leakcanary:leakcanary-android-no-op:
1.6.3
"
,
"umeng-analytics"
:
"com.umeng.analytics:analytics:6.0.1"
,
// QMUI
"qmui"
:
"com.qmuiteam:qmui:2.0.0-alpha03"
,
...
...
library-base/src/main/java/com/jess/arms/base/delegate/AppDelegate.java
View file @
d088025b
...
...
@@ -27,6 +27,8 @@ import com.jess.arms.base.BaseApplication;
import
com.jess.arms.di.component.AppComponent
;
import
com.jess.arms.di.component.DaggerAppComponent
;
import
com.jess.arms.di.module.GlobalConfigModule
;
import
com.jess.arms.http.imageloader.glide.GlideArms
;
import
com.jess.arms.http.imageloader.glide.ImageConfigImpl
;
import
com.jess.arms.integration.ConfigModule
;
import
com.jess.arms.integration.ManifestParser
;
import
com.jess.arms.utils.ArmsUtils
;
...
...
@@ -258,6 +260,13 @@ public class AppDelegate implements App, AppLifecycles {
//系统正运行与低内存的状态并且你的进程正处于 LRU 列表中最容易被杀掉的位置, 你应该释放任何不影响你的 App 恢复状态的资源
//低于 API 14 的 App 可以使用 onLowMemory 回调
// case TRIM_MEMORY_COMPLETE:
//在 App 被置换到后台的时候,清理图片请求框架的内存缓存
if
(
level
==
TRIM_MEMORY_UI_HIDDEN
)
{
mAppComponent
.
imageLoader
().
clear
(
mApplication
,
ImageConfigImpl
.
builder
().
isClearMemory
(
true
).
build
());
}
//交给 Glide 处理内存情况
GlideArms
.
get
(
mApplication
).
trimMemory
(
level
);
}
@Override
...
...
@@ -274,6 +283,8 @@ public class AppDelegate implements App, AppLifecycles {
@Override
public
void
onLowMemory
()
{
//系统正运行与低内存的状态并且你的进程正处于 LRU 列表中最容易被杀掉的位置, 你应该释放任何不影响你的 App 恢复状态的资源
mAppComponent
.
imageLoader
().
clear
(
mApplication
,
ImageConfigImpl
.
builder
().
isClearMemory
(
true
).
build
());
}
}
...
...
library-base/src/main/java/com/jess/arms/di/module/GlobalConfigModule.java
View file @
d088025b
...
...
@@ -26,6 +26,7 @@ import com.jess.arms.http.log.FormatPrinter;
import
com.jess.arms.http.log.RequestInterceptor
;
import
com.jess.arms.http.imageloader.BaseImageLoaderStrategy
;
import
com.jess.arms.http.imageloader.glide.GlideImageLoaderStrategy
;
import
com.jess.arms.integration.IRepositoryManager
;
import
com.jess.arms.integration.cache.Cache
;
import
com.jess.arms.integration.cache.CacheType
;
import
com.jess.arms.integration.cache.LruCache
;
...
...
@@ -72,6 +73,7 @@ public class GlobalConfigModule {
private
RequestInterceptor
.
Level
mPrintHttpLogLevel
;
private
FormatPrinter
mFormatPrinter
;
private
Cache
.
Factory
mCacheFactory
;
private
IRepositoryManager
.
ObtainServiceDelegate
mObtainServiceDelegate
;
private
GlobalConfigModule
(
Builder
builder
)
{
this
.
mApiUrl
=
builder
.
apiUrl
;
...
...
@@ -88,6 +90,7 @@ public class GlobalConfigModule {
this
.
mPrintHttpLogLevel
=
builder
.
printHttpLogLevel
;
this
.
mFormatPrinter
=
builder
.
formatPrinter
;
this
.
mCacheFactory
=
builder
.
cacheFactory
;
this
.
mObtainServiceDelegate
=
builder
.
obtainServiceDelegate
;
}
public
static
Builder
builder
()
{
...
...
@@ -222,6 +225,12 @@ public class GlobalConfigModule {
}
:
mCacheFactory
;
}
@Singleton
@Provides
@Nullable
IRepositoryManager
.
ObtainServiceDelegate
provideObtainServiceDelegate
()
{
return
mObtainServiceDelegate
;
}
public
static
final
class
Builder
{
private
HttpUrl
apiUrl
;
...
...
@@ -238,6 +247,7 @@ public class GlobalConfigModule {
private
RequestInterceptor
.
Level
printHttpLogLevel
;
private
FormatPrinter
formatPrinter
;
private
Cache
.
Factory
cacheFactory
;
private
IRepositoryManager
.
ObtainServiceDelegate
obtainServiceDelegate
;
private
Builder
()
{
}
...
...
@@ -319,6 +329,11 @@ public class GlobalConfigModule {
return
this
;
}
public
Builder
obtainServiceDelegate
(
IRepositoryManager
.
ObtainServiceDelegate
obtainServiceDelegate
)
{
this
.
obtainServiceDelegate
=
obtainServiceDelegate
;
return
this
;
}
public
GlobalConfigModule
build
()
{
return
new
GlobalConfigModule
(
this
);
}
...
...
library-base/src/main/java/com/jess/arms/integration/IRepositoryManager.java
View file @
d088025b
...
...
@@ -17,8 +17,12 @@ package com.jess.arms.integration;
import
android.content.Context
;
import
androidx.annotation.Nullable
;
import
com.jess.arms.mvp.IModel
;
import
retrofit2.Retrofit
;
/**
* ================================================
* 用来管理网络请求层,以及数据缓存层,以后可能添加数据库请求层
...
...
@@ -57,4 +61,9 @@ public interface IRepositoryManager {
Context
getContext
();
interface
ObtainServiceDelegate
{
@Nullable
<
T
>
T
createRetrofitService
(
Retrofit
retrofit
,
Class
<
T
>
serviceClass
);
}
}
library-base/src/main/java/com/jess/arms/integration/RepositoryManager.java
View file @
d088025b
...
...
@@ -18,11 +18,15 @@ package com.jess.arms.integration;
import
android.app.Application
;
import
android.content.Context
;
import
androidx.annotation.Nullable
;
import
com.jess.arms.integration.cache.Cache
;
import
com.jess.arms.integration.cache.CacheType
;
import
com.jess.arms.mvp.IModel
;
import
com.jess.arms.utils.Preconditions
;
import
java.lang.reflect.Proxy
;
import
javax.inject.Inject
;
import
javax.inject.Singleton
;
...
...
@@ -51,6 +55,9 @@ public class RepositoryManager implements IRepositoryManager {
Application
mApplication
;
@Inject
Cache
.
Factory
mCachefactory
;
@Inject
@Nullable
ObtainServiceDelegate
mObtainServiceDelegate
;
private
Cache
<
String
,
Object
>
mRetrofitServiceCache
;
private
Cache
<
String
,
Object
>
mCacheServiceCache
;
...
...
@@ -67,12 +74,21 @@ public class RepositoryManager implements IRepositoryManager {
*/
@Override
public
synchronized
<
T
>
T
obtainRetrofitService
(
Class
<
T
>
service
)
{
if
(
mRetrofitServiceCache
==
null
)
if
(
mRetrofitServiceCache
==
null
)
{
mRetrofitServiceCache
=
mCachefactory
.
build
(
CacheType
.
RETROFIT_SERVICE_CACHE
);
}
Preconditions
.
checkNotNull
(
mRetrofitServiceCache
,
"Cannot return null from a Cache.Factory#build(int) method"
);
T
retrofitService
=
(
T
)
mRetrofitServiceCache
.
get
(
service
.
getCanonicalName
());
if
(
retrofitService
==
null
)
{
retrofitService
=
mRetrofit
.
get
().
create
(
service
);
if
(
mObtainServiceDelegate
!=
null
)
{
retrofitService
=
mObtainServiceDelegate
.
createRetrofitService
(
mRetrofit
.
get
(),
service
);
}
if
(
retrofitService
==
null
)
{
retrofitService
=
(
T
)
Proxy
.
newProxyInstance
(
service
.
getClassLoader
(),
new
Class
[]{
service
},
new
RetrofitServiceProxyHandler
(
mRetrofit
.
get
(),
service
));
}
mRetrofitServiceCache
.
put
(
service
.
getCanonicalName
(),
retrofitService
);
}
return
retrofitService
;
...
...
library-base/src/main/java/com/jess/arms/integration/RetrofitServiceProxyHandler.java
0 → 100644
View file @
d088025b
package
com
.
jess
.
arms
.
integration
;
import
androidx.annotation.Nullable
;
import
java.lang.reflect.InvocationHandler
;
import
java.lang.reflect.Method
;
import
io.reactivex.Observable
;
import
io.reactivex.Single
;
import
retrofit2.Retrofit
;
public
class
RetrofitServiceProxyHandler
implements
InvocationHandler
{
private
Retrofit
mRetrofit
;
private
Class
<?>
mServiceClass
;
private
Object
mRetrofitService
;
public
RetrofitServiceProxyHandler
(
Retrofit
retrofit
,
Class
<?>
serviceClass
)
{
mRetrofit
=
retrofit
;
mServiceClass
=
serviceClass
;
}
@Override
public
Object
invoke
(
Object
proxy
,
Method
method
,
@Nullable
Object
[]
args
)
throws
Throwable
{
// 根据 https://zhuanlan.zhihu.com/p/40097338 对 Retrofit 进行的优化
if
(
method
.
getReturnType
()
==
Observable
.
class
)
{
// 如果方法返回值是 Observable 的话,则包一层再返回,
// 只包一层 defer 由外部去控制耗时方法以及网络请求所处线程,
// 如此对原项目的影响为 0,且更可控。
return
Observable
.
defer
(()
->
{
// 执行真正的 Retrofit 动态代理的方法
return
(
Observable
)
method
.
invoke
(
getRetrofitService
(),
args
);
});
}
else
if
(
method
.
getReturnType
()
==
Single
.
class
)
{
// 如果方法返回值是 Single 的话,则包一层再返回。
return
Single
.
defer
(()
->
{
// 执行真正的 Retrofit 动态代理的方法
return
(
Single
)
method
.
invoke
(
getRetrofitService
(),
args
);
});
}
// 返回值不是 Observable 或 Single 的话不处理。
return
method
.
invoke
(
getRetrofitService
(),
args
);
}
private
Object
getRetrofitService
()
{
if
(
mRetrofitService
==
null
)
{
mRetrofitService
=
mRetrofit
.
create
(
mServiceClass
);
}
return
mRetrofitService
;
}
}
library-common/src/main/java/com/gingersoft/gsa/cloud/app/GsaCloudApplication.java
View file @
d088025b
...
...
@@ -12,8 +12,10 @@ import androidx.annotation.NonNull;
import
com.billy.cc.core.component.CC
;
import
com.dianping.logan.Logan
;
import
com.dianping.logan.OnLoganProtocolStatus
;
import
com.didichuxing.doraemonkit.DoraemonKit
;
import
com.gingersoft.gsa.cloud.common.BuildConfig
;
import
com.gingersoft.gsa.cloud.common.R
;
import
com.gingersoft.gsa.cloud.common.config.DoraemonKitConfig
;
import
com.gingersoft.gsa.cloud.common.config.LoganConfig
;
import
com.gingersoft.gsa.cloud.common.config.expandconfig.ExpandInfoSetting
;
import
com.gingersoft.gsa.cloud.common.config.expandconfig.FunctionExtendedConfiguration
;
...
...
@@ -185,7 +187,7 @@ public class GsaCloudApplication extends BaseApplication {
* 初始化滴滴開發,測試輔助工具哆啦A夢
*/
private
void
initDoraemonKit
()
{
//
DoraemonKit.install(getAppContext(), DoraemonKitConfig.PRODUCE_ID);
DoraemonKit
.
install
(
getAppContext
(),
DoraemonKitConfig
.
PRODUCE_ID
);
}
/**
...
...
library-common/src/main/java/com/gingersoft/gsa/cloud/common/core/restaurant/RestaurantInfoManager.java
View file @
d088025b
...
...
@@ -13,7 +13,7 @@ import com.gingersoft.gsa.cloud.common.utils.other.SPUtils;
*/
public
class
RestaurantInfoManager
{
private
static
RestaurantInfoManager
sRestaurantInfoManager
=
null
;
private
static
volatile
RestaurantInfoManager
sRestaurantInfoManager
=
null
;
/**
* 品牌信息
...
...
library-common/src/main/java/com/gingersoft/gsa/cloud/common/core/user/UserContext.java
View file @
d088025b
...
...
@@ -20,7 +20,7 @@ import lombok.Setter;
@Setter
public
class
UserContext
{
private
static
UserContext
sUserContextManger
=
null
;
private
static
volatile
UserContext
sUserContextManger
=
null
;
/**
* 用戶狀態
...
...
library-common/src/main/res/values-v21/styles.xml
View file @
d088025b
...
...
@@ -6,6 +6,7 @@
<item
name=
"QMUITopBarStyle"
>
@style/QDTopBar
</item>
<!-- TabItem theme -->
<item
name=
"QMUITabSegmentStyle"
>
@style/QMUITabSegmentStyle
</item>
</style>
<style
name=
"MyCheckbox_style"
>
...
...
library-database/build.gradle
View file @
d088025b
...
...
@@ -51,7 +51,7 @@ android {
/**
* 版本号
*/
schemaVersion
2
3
schemaVersion
2
4
/**
* greendao输出dao的数据库操作实体类文件夹(相对路径 包名+自定义路径名称,包将创建于包名的直接路径下)
*/
...
...
@@ -82,4 +82,9 @@ dependencies {
// 數據庫
implementation
'org.greenrobot:greendao:3.2.2'
implementation
'org.greenrobot:greendao-generator:3.2.2'
//rx
api
rootProject
.
ext
.
dependencies
[
"rxjava2"
]
api
(
rootProject
.
ext
.
dependencies
[
"rxandroid2"
])
{
exclude
module:
'rxjava'
}
}
library-database/src/main/java/com/gingersoft/gsa/cloud/database/bean/Food.java
View file @
d088025b
package
com
.
gingersoft
.
gsa
.
cloud
.
database
.
bean
;
import
android.graphics.Color
;
import
org.greenrobot.greendao.annotation.Entity
;
import
org.greenrobot.greendao.annotation.Generated
;
import
org.greenrobot.greendao.annotation.Id
;
import
org.greenrobot.greendao.annotation.Property
;
import
org.greenrobot.greendao.annotation.ToOne
;
import
org.greenrobot.greendao.annotation.Transient
;
import
java.util.Date
;
import
org.greenrobot.greendao.DaoException
;
import
com.gingersoft.gsa.cloud.database.greendao.DaoSession
;
import
com.gingersoft.gsa.cloud.database.greendao.ColorBeanDao
;
import
com.gingersoft.gsa.cloud.database.greendao.FoodDao
;
import
org.greenrobot.greendao.annotation.NotNull
;
import
lombok.Data
;
/**
* 作者:ELEGANT_BIN
* 版本:1.6.0
...
...
@@ -22,6 +29,7 @@ import org.greenrobot.greendao.annotation.NotNull;
* 描述:
*/
@Data
@Entity
public
class
Food
{
...
...
@@ -66,6 +74,13 @@ public class Food {
*/
private
String
plu
;
/**
* 自定義类型 #100=自定义食品名称及金额 #101=自定义食品名称 #102=自定义食品金额
*/
private
Integer
customType
;
public
static
final
int
CUSTOM_TYPE_100
=
100
;
public
static
final
int
CUSTOM_TYPE_101
=
101
;
public
static
final
int
CUSTOM_TYPE_102
=
102
;
/**
* 本地对应ID
*/
private
String
posFid
;
...
...
@@ -301,52 +316,72 @@ public class Food {
* 自定義字段
*/
/**選中數量*/
/**
* 選中數量
*/
@Transient
private
int
number
;
/**食品組ID*/
/**
* 食品組ID
*/
@Transient
private
long
topId
;
/**背景顏色*/
/**
* 背景顏色
*/
@Transient
private
int
bgColor
=
Color
.
parseColor
(
"#03a9f4"
);
/**字體顏色*/
/**
* 字體顏色
*/
@Transient
private
int
fontColor
=
Color
.
parseColor
(
"#FFFFFF"
);
/**最大選中數*/
/**
* 最大選中數
*/
@Transient
private
String
maxNumber
=
""
;
/**動態的最大選中數*/
/**
* 動態的最大選中數
*/
@Transient
private
String
currentMaxNumber
=
""
;
/**是否選中*/
private
String
currentMaxNumber
=
""
;
/**
* 是否選中
*/
@Transient
private
boolean
selected
;
/**是否组合食品*/
/**
* 是否组合食品
*/
@Transient
private
boolean
isComboFood
=
false
;
/** Used to resolve relations */
/**
* Used to resolve relations
*/
@Generated
(
hash
=
2040040024
)
private
transient
DaoSession
daoSession
;
/** Used for active entity operations. */
/**
* Used for active entity operations.
*/
@Generated
(
hash
=
1296197325
)
private
transient
FoodDao
myDao
;
@Generated
(
hash
=
292980300
)
private
transient
Long
colorBean__resolvedKey
;
@Generated
(
hash
=
60268763
)
@Generated
(
hash
=
418551587
)
public
Food
(
Long
id
,
long
parentId
,
long
restaurantId
,
byte
isParent
,
long
seqNo
,
String
foodName
,
String
foodName1
,
String
foodName2
,
String
plu
,
String
posFid
,
String
foodDesc
,
long
limitAmount
,
long
limitType
,
String
foodSummary
,
long
invisible
,
byte
autoMod
,
double
price
,
double
marketPrice
,
double
lunchboxPrice
,
String
imgUrlSmall
,
String
imageurl
,
long
riceponInvisible
,
double
cost
,
long
like
,
long
totalSold
,
long
isSold
,
Date
startDate
,
Date
endDate
,
String
createBy
,
Date
createTime
,
String
updateBy
,
Date
updateTime
,
long
periodId
,
long
ableDiscount
,
long
takeaway
,
long
blueEdit
,
long
cartEdit
,
long
autoMerge
,
String
printSeting
,
long
isPrintQueueCode
,
long
queueHeadId
,
long
approve
,
long
printFont
,
long
advPrice
,
long
printToBill
,
double
pointsAdd
,
long
pointsRatio
,
double
pointsRedeem
,
long
ktPrintMainItem
,
long
ktShowPrice
,
long
printTo
,
long
toPax
,
long
foodType
,
long
majorMainId
,
long
deptId
,
byte
serviceCharge
,
long
conditions
,
long
isRt
,
long
deletes
,
long
isTimingFood
,
long
minLongTime
,
long
unitTime
,
double
unitPrice
,
long
freeLongTime
,
Date
freePeriodBegin
,
long
isStatistic
,
long
colorId
)
{
String
foodName1
,
String
foodName2
,
String
plu
,
Integer
customType
,
String
posFid
,
String
foodDesc
,
long
limitAmount
,
long
limitType
,
String
foodSummary
,
long
invisible
,
byte
autoMod
,
double
price
,
double
marketPrice
,
double
lunchboxPrice
,
String
imgUrlSmall
,
String
imageurl
,
long
riceponInvisible
,
double
cost
,
long
like
,
long
totalSold
,
long
isSold
,
Date
startDate
,
Date
endDate
,
String
createBy
,
Date
createTime
,
String
updateBy
,
Date
updateTime
,
long
periodId
,
long
ableDiscount
,
long
takeaway
,
long
blueEdit
,
long
cartEdit
,
long
autoMerge
,
String
printSeting
,
long
isPrintQueueCode
,
long
queueHeadId
,
long
approve
,
long
printFont
,
long
advPrice
,
long
printToBill
,
double
pointsAdd
,
long
pointsRatio
,
double
pointsRedeem
,
long
ktPrintMainItem
,
long
ktShowPrice
,
long
printTo
,
long
toPax
,
long
foodType
,
long
majorMainId
,
long
deptId
,
byte
serviceCharge
,
long
conditions
,
long
isRt
,
long
deletes
,
long
isTimingFood
,
long
minLongTime
,
long
unitTime
,
double
unitPrice
,
long
freeLongTime
,
Date
freePeriodBegin
,
long
isStatistic
,
long
colorId
)
{
this
.
id
=
id
;
this
.
parentId
=
parentId
;
this
.
restaurantId
=
restaurantId
;
...
...
@@ -356,6 +391,7 @@ public class Food {
this
.
foodName1
=
foodName1
;
this
.
foodName2
=
foodName2
;
this
.
plu
=
plu
;
this
.
customType
=
customType
;
this
.
posFid
=
posFid
;
this
.
foodDesc
=
foodDesc
;
this
.
limitAmount
=
limitAmount
;
...
...
@@ -420,64 +456,171 @@ public class Food {
public
Food
()
{
}
public
Long
getId
()
{
return
id
;
/**
* To-one relationship, resolved on first access.
*/
@Generated
(
hash
=
972194621
)
public
ColorBean
getColorBean
()
{
long
__key
=
this
.
colorId
;
if
(
colorBean__resolvedKey
==
null
||
!
colorBean__resolvedKey
.
equals
(
__key
))
{
final
DaoSession
daoSession
=
this
.
daoSession
;
if
(
daoSession
==
null
)
{
throw
new
DaoException
(
"Entity is detached from DAO context"
);
}
ColorBeanDao
targetDao
=
daoSession
.
getColorBeanDao
();
ColorBean
colorBeanNew
=
targetDao
.
load
(
__key
);
synchronized
(
this
)
{
colorBean
=
colorBeanNew
;
colorBean__resolvedKey
=
__key
;
}
}
return
colorBean
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
/**
* called by internal mechanisms, do not call yourself.
*/
@Generated
(
hash
=
453682256
)
public
void
setColorBean
(
@NotNull
ColorBean
colorBean
)
{
if
(
colorBean
==
null
)
{
throw
new
DaoException
(
"To-one property 'colorId' has not-null constraint; cannot set to-one to null"
);
}
synchronized
(
this
)
{
this
.
colorBean
=
colorBean
;
colorId
=
colorBean
.
getColorId
();
colorBean__resolvedKey
=
colorId
;
}
}
public
long
getTopId
()
{
return
topId
;
/**
* Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
* Entity must attached to an entity context.
*/
@Generated
(
hash
=
128553479
)
public
void
delete
()
{
if
(
myDao
==
null
)
{
throw
new
DaoException
(
"Entity is detached from DAO context"
);
}
myDao
.
delete
(
this
);
}
/**
* Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}.
* Entity must attached to an entity context.
*/
@Generated
(
hash
=
1942392019
)
public
void
refresh
()
{
if
(
myDao
==
null
)
{
throw
new
DaoException
(
"Entity is detached from DAO context"
);
}
myDao
.
refresh
(
this
);
}
/**
* Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}.
* Entity must attached to an entity context.
*/
@Generated
(
hash
=
713229351
)
public
void
update
()
{
if
(
myDao
==
null
)
{
throw
new
DaoException
(
"Entity is detached from DAO context"
);
}
myDao
.
update
(
this
);
}
/**
* called by internal mechanisms, do not call yourself.
*/
@Generated
(
hash
=
505459956
)
public
void
__setDaoSession
(
DaoSession
daoSession
)
{
this
.
daoSession
=
daoSession
;
myDao
=
daoSession
!=
null
?
daoSession
.
getFoodDao
()
:
null
;
}
public
Long
getId
()
{
return
this
.
id
;
}
public
void
set
TopId
(
long
topI
d
)
{
this
.
topId
=
topI
d
;
public
void
set
Id
(
Long
i
d
)
{
this
.
id
=
i
d
;
}
public
L
ong
getParentId
()
{
return
parentId
;
public
l
ong
getParentId
()
{
return
this
.
parentId
;
}
public
void
setParentId
(
L
ong
parentId
)
{
public
void
setParentId
(
l
ong
parentId
)
{
this
.
parentId
=
parentId
;
}
public
L
ong
getRestaurantId
()
{
return
restaurantId
;
public
l
ong
getRestaurantId
()
{
return
this
.
restaurantId
;
}
public
void
setRestaurantId
(
L
ong
restaurantId
)
{
public
void
setRestaurantId
(
l
ong
restaurantId
)
{
this
.
restaurantId
=
restaurantId
;
}
public
B
yte
getIsParent
()
{
return
isParent
;
public
b
yte
getIsParent
()
{
return
this
.
isParent
;
}
public
void
setIsParent
(
B
yte
isParent
)
{
public
void
setIsParent
(
b
yte
isParent
)
{
this
.
isParent
=
isParent
;
}
public
L
ong
getSeqNo
()
{
return
seqNo
;
public
l
ong
getSeqNo
()
{
return
this
.
seqNo
;
}
public
void
setSeqNo
(
L
ong
seqNo
)
{
public
void
setSeqNo
(
l
ong
seqNo
)
{
this
.
seqNo
=
seqNo
;
}
public
String
getFoodName
()
{
return
foodName
;
return
this
.
foodName
;
}
public
void
setFoodName
(
String
foodName
)
{
this
.
foodName
=
foodName
;
}
public
String
getFoodName1
()
{
return
this
.
foodName1
;
}
public
void
setFoodName1
(
String
foodName1
)
{
this
.
foodName1
=
foodName1
;
}
public
String
getFoodName2
()
{
return
this
.
foodName2
;
}
public
void
setFoodName2
(
String
foodName2
)
{
this
.
foodName2
=
foodName2
;
}
public
String
getPlu
()
{
return
this
.
plu
;
}
public
void
setPlu
(
String
plu
)
{
this
.
plu
=
plu
;
}
public
Integer
getCustomType
()
{
return
this
.
customType
;
}
public
void
setCustomType
(
Integer
customType
)
{
this
.
customType
=
customType
;
}
public
String
getPosFid
()
{
return
posFid
;
return
this
.
posFid
;
}
public
void
setPosFid
(
String
posFid
)
{
...
...
@@ -485,75 +628,79 @@ public class Food {
}
public
String
getFoodDesc
()
{
return
foodDesc
;
return
this
.
foodDesc
;
}
public
void
setFoodDesc
(
String
foodDesc
)
{
this
.
foodDesc
=
foodDesc
;
}
public
L
ong
getLimitAmount
()
{
return
limitAmount
;
public
l
ong
getLimitAmount
()
{
return
this
.
limitAmount
;
}
public
void
setLimitAmount
(
L
ong
limitAmount
)
{
public
void
setLimitAmount
(
l
ong
limitAmount
)
{
this
.
limitAmount
=
limitAmount
;
}
public
L
ong
getLimitType
()
{
return
limitType
;
public
l
ong
getLimitType
()
{
return
this
.
limitType
;
}
public
void
setLimitType
(
L
ong
limitType
)
{
public
void
setLimitType
(
l
ong
limitType
)
{
this
.
limitType
=
limitType
;
}
public
String
getFoodSummary
()
{
return
foodSummary
;
return
this
.
foodSummary
;
}
public
void
setFoodSummary
(
String
foodSummary
)
{
this
.
foodSummary
=
foodSummary
;
}
public
L
ong
getInvisible
()
{
return
invisible
;
public
l
ong
getInvisible
()
{
return
this
.
invisible
;
}
public
void
setInvisible
(
L
ong
invisible
)
{
public
void
setInvisible
(
l
ong
invisible
)
{
this
.
invisible
=
invisible
;
}
public
B
yte
getAutoMod
()
{
return
autoMod
;
public
b
yte
getAutoMod
()
{
return
this
.
autoMod
;
}
public
void
setAutoMod
(
B
yte
autoMod
)
{
public
void
setAutoMod
(
b
yte
autoMod
)
{
this
.
autoMod
=
autoMod
;
}
public
D
ouble
getPrice
()
{
return
price
;
public
d
ouble
getPrice
()
{
return
this
.
price
;
}
public
void
setPrice
(
D
ouble
price
)
{
public
void
setPrice
(
d
ouble
price
)
{
this
.
price
=
price
;
}
public
D
ouble
getMarketPrice
()
{
return
marketPrice
;
public
d
ouble
getMarketPrice
()
{
return
this
.
marketPrice
;
}
public
void
setMarketPrice
(
D
ouble
marketPrice
)
{
public
void
setMarketPrice
(
d
ouble
marketPrice
)
{
this
.
marketPrice
=
marketPrice
;
}
public
D
ouble
getLunchboxPrice
()
{
return
lunchboxPrice
;
public
d
ouble
getLunchboxPrice
()
{
return
this
.
lunchboxPrice
;
}
public
void
setLunchboxPrice
(
D
ouble
lunchboxPrice
)
{
public
void
setLunchboxPrice
(
d
ouble
lunchboxPrice
)
{
this
.
lunchboxPrice
=
lunchboxPrice
;
}
public
String
getImgUrlSmall
()
{
return
imgUrlSmall
;
return
this
.
imgUrlSmall
;
}
public
void
setImgUrlSmall
(
String
imgUrlSmall
)
{
...
...
@@ -561,71 +708,71 @@ public class Food {
}
public
String
getImageurl
()
{
return
imageurl
;
return
this
.
imageurl
;
}
public
void
setImageurl
(
String
imageurl
)
{
this
.
imageurl
=
imageurl
;
}
public
L
ong
getRiceponInvisible
()
{
return
riceponInvisible
;
public
l
ong
getRiceponInvisible
()
{
return
this
.
riceponInvisible
;
}
public
void
setRiceponInvisible
(
L
ong
riceponInvisible
)
{
public
void
setRiceponInvisible
(
l
ong
riceponInvisible
)
{
this
.
riceponInvisible
=
riceponInvisible
;
}
public
D
ouble
getCost
()
{
return
cost
;
public
d
ouble
getCost
()
{
return
this
.
cost
;
}
public
void
setCost
(
D
ouble
cost
)
{
public
void
setCost
(
d
ouble
cost
)
{
this
.
cost
=
cost
;
}
public
Date
getStartDat
e
()
{
return
startDat
e
;
public
long
getLik
e
()
{
return
this
.
lik
e
;
}
public
void
set
StartDate
(
Date
startDat
e
)
{
this
.
startDate
=
startDat
e
;
public
void
set
Like
(
long
lik
e
)
{
this
.
like
=
lik
e
;
}
public
Date
getEndDate
()
{
return
endDate
;
public
long
getTotalSold
()
{
return
this
.
totalSold
;
}
public
void
set
EndDate
(
Date
endDate
)
{
this
.
endDate
=
endDate
;
public
void
set
TotalSold
(
long
totalSold
)
{
this
.
totalSold
=
totalSold
;
}
public
Long
getLike
()
{
return
like
;
public
long
getIsSold
()
{
return
this
.
isSold
;
}
public
void
set
Like
(
Long
like
)
{
this
.
like
=
like
;
public
void
set
IsSold
(
long
isSold
)
{
this
.
isSold
=
isSold
;
}
public
Long
getTotalSold
()
{
return
t
otalSold
;
public
Date
getStartDate
()
{
return
t
his
.
startDate
;
}
public
void
set
TotalSold
(
Long
totalSold
)
{
this
.
totalSold
=
totalSold
;
public
void
set
StartDate
(
Date
startDate
)
{
this
.
startDate
=
startDate
;
}
public
Long
getIsSold
()
{
return
isSold
;
public
Date
getEndDate
()
{
return
this
.
endDate
;
}
public
void
set
IsSold
(
Long
isSold
)
{
this
.
isSold
=
isSold
;
public
void
set
EndDate
(
Date
endDate
)
{
this
.
endDate
=
endDate
;
}
public
String
getCreateBy
()
{
return
createBy
;
return
this
.
createBy
;
}
public
void
setCreateBy
(
String
createBy
)
{
...
...
@@ -633,7 +780,7 @@ public class Food {
}
public
Date
getCreateTime
()
{
return
createTime
;
return
this
.
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
...
...
@@ -641,7 +788,7 @@ public class Food {
}
public
String
getUpdateBy
()
{
return
updateBy
;
return
this
.
updateBy
;
}
public
void
setUpdateBy
(
String
updateBy
)
{
...
...
@@ -649,651 +796,291 @@ public class Food {
}
public
Date
getUpdateTime
()
{
return
updateTime
;
return
this
.
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
L
ong
getPeriodId
()
{
return
periodId
;
public
l
ong
getPeriodId
()
{
return
this
.
periodId
;
}
public
void
setPeriodId
(
L
ong
periodId
)
{
public
void
setPeriodId
(
l
ong
periodId
)
{
this
.
periodId
=
periodId
;
}
public
L
ong
getAbleDiscount
()
{
return
ableDiscount
;
public
l
ong
getAbleDiscount
()
{
return
this
.
ableDiscount
;
}
public
void
setAbleDiscount
(
L
ong
ableDiscount
)
{
public
void
setAbleDiscount
(
l
ong
ableDiscount
)
{
this
.
ableDiscount
=
ableDiscount
;
}
public
L
ong
getTakeaway
()
{
return
takeaway
;
public
l
ong
getTakeaway
()
{
return
t
his
.
t
akeaway
;
}
public
void
setTakeaway
(
L
ong
takeaway
)
{
public
void
setTakeaway
(
l
ong
takeaway
)
{
this
.
takeaway
=
takeaway
;
}
public
L
ong
getBlueEdit
()
{
return
blueEdit
;
public
l
ong
getBlueEdit
()
{
return
this
.
blueEdit
;
}
public
void
setBlueEdit
(
L
ong
blueEdit
)
{
public
void
setBlueEdit
(
l
ong
blueEdit
)
{
this
.
blueEdit
=
blueEdit
;
}
public
L
ong
getCartEdit
()
{
return
cartEdit
;
public
l
ong
getCartEdit
()
{
return
this
.
cartEdit
;
}
public
void
setCartEdit
(
L
ong
cartEdit
)
{
public
void
setCartEdit
(
l
ong
cartEdit
)
{
this
.
cartEdit
=
cartEdit
;
}
public
L
ong
getAutoMerge
()
{
return
autoMerge
;
public
l
ong
getAutoMerge
()
{
return
this
.
autoMerge
;
}
public
void
setAutoMerge
(
L
ong
autoMerge
)
{
public
void
setAutoMerge
(
l
ong
autoMerge
)
{
this
.
autoMerge
=
autoMerge
;
}
public
String
getFoodName1
()
{
return
foodName1
;
}
public
void
setFoodName1
(
String
foodName1
)
{
this
.
foodName1
=
foodName1
;
}
public
String
getFoodName2
()
{
return
foodName2
;
}
public
void
setFoodName2
(
String
foodName2
)
{
this
.
foodName2
=
foodName2
;
}
public
String
getPlu
()
{
return
plu
;
}
public
void
setPlu
(
String
plu
)
{
this
.
plu
=
plu
;
}
public
String
getPrintSeting
()
{
return
printSeting
;
return
this
.
printSeting
;
}
public
void
setPrintSeting
(
String
printSeting
)
{
this
.
printSeting
=
printSeting
;
}
public
L
ong
getIsPrintQueueCode
()
{
return
isPrintQueueCode
;
public
l
ong
getIsPrintQueueCode
()
{
return
this
.
isPrintQueueCode
;
}
public
void
setIsPrintQueueCode
(
L
ong
isPrintQueueCode
)
{
public
void
setIsPrintQueueCode
(
l
ong
isPrintQueueCode
)
{
this
.
isPrintQueueCode
=
isPrintQueueCode
;
}
public
L
ong
getQueueHeadId
()
{
return
queueHeadId
;
public
l
ong
getQueueHeadId
()
{
return
this
.
queueHeadId
;
}
public
void
setQueueHeadId
(
L
ong
queueHeadId
)
{
public
void
setQueueHeadId
(
l
ong
queueHeadId
)
{
this
.
queueHeadId
=
queueHeadId
;
}
public
L
ong
getApprove
()
{
return
approve
;
public
l
ong
getApprove
()
{
return
this
.
approve
;
}
public
void
setApprove
(
L
ong
approve
)
{
public
void
setApprove
(
l
ong
approve
)
{
this
.
approve
=
approve
;
}
public
L
ong
getPrintFont
()
{
return
printFont
;
public
l
ong
getPrintFont
()
{
return
this
.
printFont
;
}
public
void
setPrintFont
(
L
ong
printFont
)
{
public
void
setPrintFont
(
l
ong
printFont
)
{
this
.
printFont
=
printFont
;
}
public
L
ong
getAdvPrice
()
{
return
advPrice
;
public
l
ong
getAdvPrice
()
{
return
this
.
advPrice
;
}
public
void
setAdvPrice
(
L
ong
advPrice
)
{
public
void
setAdvPrice
(
l
ong
advPrice
)
{
this
.
advPrice
=
advPrice
;
}
public
L
ong
getPrintToBill
()
{
return
printToBill
;
public
l
ong
getPrintToBill
()
{
return
this
.
printToBill
;
}
public
void
setPrintToBill
(
L
ong
printToBill
)
{
public
void
setPrintToBill
(
l
ong
printToBill
)
{
this
.
printToBill
=
printToBill
;
}
public
D
ouble
getPointsAdd
()
{
return
pointsAdd
;
public
d
ouble
getPointsAdd
()
{
return
this
.
pointsAdd
;
}
public
void
setPointsAdd
(
D
ouble
pointsAdd
)
{
public
void
setPointsAdd
(
d
ouble
pointsAdd
)
{
this
.
pointsAdd
=
pointsAdd
;
}
public
L
ong
getPointsRatio
()
{
return
pointsRatio
;
public
l
ong
getPointsRatio
()
{
return
this
.
pointsRatio
;
}
public
void
setPointsRatio
(
L
ong
pointsRatio
)
{
public
void
setPointsRatio
(
l
ong
pointsRatio
)
{
this
.
pointsRatio
=
pointsRatio
;
}
public
D
ouble
getPointsRedeem
()
{
return
pointsRedeem
;
public
d
ouble
getPointsRedeem
()
{
return
this
.
pointsRedeem
;
}
public
void
setPointsRedeem
(
D
ouble
pointsRedeem
)
{
public
void
setPointsRedeem
(
d
ouble
pointsRedeem
)
{
this
.
pointsRedeem
=
pointsRedeem
;
}
public
L
ong
getKtPrintMainItem
()
{
return
ktPrintMainItem
;
public
l
ong
getKtPrintMainItem
()
{
return
this
.
ktPrintMainItem
;
}
public
void
setKtPrintMainItem
(
L
ong
ktPrintMainItem
)
{
public
void
setKtPrintMainItem
(
l
ong
ktPrintMainItem
)
{
this
.
ktPrintMainItem
=
ktPrintMainItem
;
}
public
L
ong
getKtShowPrice
()
{
return
ktShowPrice
;
public
l
ong
getKtShowPrice
()
{
return
this
.
ktShowPrice
;
}
public
void
setKtShowPrice
(
L
ong
ktShowPrice
)
{
public
void
setKtShowPrice
(
l
ong
ktShowPrice
)
{
this
.
ktShowPrice
=
ktShowPrice
;
}
public
L
ong
getPrintTo
()
{
return
printTo
;
public
l
ong
getPrintTo
()
{
return
this
.
printTo
;
}
public
void
setPrintTo
(
L
ong
printTo
)
{
public
void
setPrintTo
(
l
ong
printTo
)
{
this
.
printTo
=
printTo
;
}
public
L
ong
getToPax
()
{
return
toPax
;
public
l
ong
getToPax
()
{
return
t
his
.
t
oPax
;
}
public
void
setToPax
(
L
ong
toPax
)
{
public
void
setToPax
(
l
ong
toPax
)
{
this
.
toPax
=
toPax
;
}
public
L
ong
getFoodType
()
{
return
foodType
;
public
l
ong
getFoodType
()
{
return
this
.
foodType
;
}
public
void
setFoodType
(
L
ong
foodType
)
{
public
void
setFoodType
(
l
ong
foodType
)
{
this
.
foodType
=
foodType
;
}
public
L
ong
getMajorMainId
()
{
return
majorMainId
;
public
l
ong
getMajorMainId
()
{
return
this
.
majorMainId
;
}
public
void
setMajorMainId
(
L
ong
majorMainId
)
{
public
void
setMajorMainId
(
l
ong
majorMainId
)
{
this
.
majorMainId
=
majorMainId
;
}
public
L
ong
getDeptId
()
{
return
deptId
;
public
l
ong
getDeptId
()
{
return
this
.
deptId
;
}
public
void
setDeptId
(
L
ong
deptId
)
{
public
void
setDeptId
(
l
ong
deptId
)
{
this
.
deptId
=
deptId
;
}
public
B
yte
getServiceCharge
()
{
return
serviceCharge
;
public
b
yte
getServiceCharge
()
{
return
this
.
serviceCharge
;
}
public
void
setServiceCharge
(
B
yte
serviceCharge
)
{
public
void
setServiceCharge
(
b
yte
serviceCharge
)
{
this
.
serviceCharge
=
serviceCharge
;
}
public
Long
getColorId
()
{
return
colorId
;
}
public
void
setColorId
(
Long
colorId
)
{
this
.
colorId
=
colorId
;
}
public
Long
getConditions
()
{
return
conditions
;
public
long
getConditions
()
{
return
this
.
conditions
;
}
public
void
setConditions
(
L
ong
conditions
)
{
public
void
setConditions
(
l
ong
conditions
)
{
this
.
conditions
=
conditions
;
}
public
L
ong
getIsRt
()
{
return
isRt
;
public
l
ong
getIsRt
()
{
return
this
.
isRt
;
}
public
void
setIsRt
(
L
ong
isRt
)
{
public
void
setIsRt
(
l
ong
isRt
)
{
this
.
isRt
=
isRt
;
}
public
L
ong
getDeletes
()
{
return
deletes
;
public
l
ong
getDeletes
()
{
return
this
.
deletes
;
}
public
void
setDeletes
(
L
ong
deletes
)
{
public
void
setDeletes
(
l
ong
deletes
)
{
this
.
deletes
=
deletes
;
}
public
L
ong
getIsTimingFood
()
{
return
isTimingFood
;
public
l
ong
getIsTimingFood
()
{
return
this
.
isTimingFood
;
}
public
void
setIsTimingFood
(
L
ong
isTimingFood
)
{
public
void
setIsTimingFood
(
l
ong
isTimingFood
)
{
this
.
isTimingFood
=
isTimingFood
;
}
public
L
ong
getMinLongTime
()
{
return
minLongTime
;
public
l
ong
getMinLongTime
()
{
return
this
.
minLongTime
;
}
public
void
setMinLongTime
(
L
ong
minLongTime
)
{
public
void
setMinLongTime
(
l
ong
minLongTime
)
{
this
.
minLongTime
=
minLongTime
;
}
public
L
ong
getUnitTime
()
{
return
unitTime
;
public
l
ong
getUnitTime
()
{
return
this
.
unitTime
;
}
public
void
setUnitTime
(
L
ong
unitTime
)
{
public
void
setUnitTime
(
l
ong
unitTime
)
{
this
.
unitTime
=
unitTime
;
}
public
D
ouble
getUnitPrice
()
{
return
unitPrice
;
public
d
ouble
getUnitPrice
()
{
return
this
.
unitPrice
;
}
public
void
setUnitPrice
(
D
ouble
unitPrice
)
{
public
void
setUnitPrice
(
d
ouble
unitPrice
)
{
this
.
unitPrice
=
unitPrice
;
}
public
L
ong
getFreeLongTime
()
{
return
freeLongTime
;
public
l
ong
getFreeLongTime
()
{
return
this
.
freeLongTime
;
}
public
void
setFreeLongTime
(
L
ong
freeLongTime
)
{
public
void
setFreeLongTime
(
l
ong
freeLongTime
)
{
this
.
freeLongTime
=
freeLongTime
;
}
public
Date
getFreePeriodBegin
()
{
return
freePeriodBegin
;
return
this
.
freePeriodBegin
;
}
public
void
setFreePeriodBegin
(
Date
freePeriodBegin
)
{
this
.
freePeriodBegin
=
freePeriodBegin
;
}
public
L
ong
getIsStatistic
()
{
return
isStatistic
;
public
l
ong
getIsStatistic
()
{
return
this
.
isStatistic
;
}
public
void
setIsStatistic
(
L
ong
isStatistic
)
{
public
void
setIsStatistic
(
l
ong
isStatistic
)
{
this
.
isStatistic
=
isStatistic
;
}
public
int
getNumber
()
{
return
number
;
}
public
void
setNumber
(
int
number
)
{
this
.
number
=
number
;
}
public
int
getBgColor
()
{
return
bgColor
;
}
public
void
setBgColor
(
int
bgColor
)
{
this
.
bgColor
=
bgColor
;
}
public
int
getFontColor
()
{
return
fontColor
;
}
public
void
setFontColor
(
int
fontColor
)
{
this
.
fontColor
=
fontColor
;
}
public
String
getMaxNumber
()
{
return
maxNumber
;
}
public
void
setMaxNumber
(
String
maxNumber
)
{
this
.
maxNumber
=
maxNumber
;
}
public
String
getCurrentMaxNumber
()
{
return
currentMaxNumber
;
}
public
void
setCurrentMaxNumber
(
String
currentMaxNumber
)
{
this
.
currentMaxNumber
=
currentMaxNumber
;
}
public
boolean
isSelected
()
{
return
selected
;
}
public
void
setSelected
(
boolean
selected
)
{
this
.
selected
=
selected
;
}
public
boolean
isComboFood
()
{
return
isComboFood
;
}
public
void
setComboFood
(
boolean
comboFood
)
{
isComboFood
=
comboFood
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
public
void
setParentId
(
long
parentId
)
{
this
.
parentId
=
parentId
;
}
public
void
setRestaurantId
(
long
restaurantId
)
{
this
.
restaurantId
=
restaurantId
;
}
public
void
setIsParent
(
byte
isParent
)
{
this
.
isParent
=
isParent
;
}
public
void
setSeqNo
(
long
seqNo
)
{
this
.
seqNo
=
seqNo
;
}
public
void
setLimitAmount
(
long
limitAmount
)
{
this
.
limitAmount
=
limitAmount
;
}
public
void
setLimitType
(
long
limitType
)
{
this
.
limitType
=
limitType
;
}
public
void
setFoodSummary
(
String
foodSummary
)
{
this
.
foodSummary
=
foodSummary
;
}
public
void
setInvisible
(
long
invisible
)
{
this
.
invisible
=
invisible
;
}
public
void
setAutoMod
(
byte
autoMod
)
{
this
.
autoMod
=
autoMod
;
}
public
void
setPrice
(
double
price
)
{
this
.
price
=
price
;
}
public
void
setMarketPrice
(
double
marketPrice
)
{
this
.
marketPrice
=
marketPrice
;
}
public
void
setLunchboxPrice
(
double
lunchboxPrice
)
{
this
.
lunchboxPrice
=
lunchboxPrice
;
}
public
void
setRiceponInvisible
(
long
riceponInvisible
)
{
this
.
riceponInvisible
=
riceponInvisible
;
}
public
void
setCost
(
double
cost
)
{
this
.
cost
=
cost
;
}
public
void
setLike
(
long
like
)
{
this
.
like
=
like
;
}
public
void
setTotalSold
(
long
totalSold
)
{
this
.
totalSold
=
totalSold
;
}
public
void
setIsSold
(
long
isSold
)
{
this
.
isSold
=
isSold
;
}
public
void
setPeriodId
(
long
periodId
)
{
this
.
periodId
=
periodId
;
}
public
void
setAbleDiscount
(
long
ableDiscount
)
{
this
.
ableDiscount
=
ableDiscount
;
}
public
void
setTakeaway
(
long
takeaway
)
{
this
.
takeaway
=
takeaway
;
}
public
void
setBlueEdit
(
long
blueEdit
)
{
this
.
blueEdit
=
blueEdit
;
}
public
void
setCartEdit
(
long
cartEdit
)
{
this
.
cartEdit
=
cartEdit
;
}
public
void
setAutoMerge
(
long
autoMerge
)
{
this
.
autoMerge
=
autoMerge
;
}
public
void
setIsPrintQueueCode
(
long
isPrintQueueCode
)
{
this
.
isPrintQueueCode
=
isPrintQueueCode
;
}
public
void
setQueueHeadId
(
long
queueHeadId
)
{
this
.
queueHeadId
=
queueHeadId
;
}
public
void
setApprove
(
long
approve
)
{
this
.
approve
=
approve
;
}
public
void
setPrintFont
(
long
printFont
)
{
this
.
printFont
=
printFont
;
}
public
void
setAdvPrice
(
long
advPrice
)
{
this
.
advPrice
=
advPrice
;
}
public
void
setPrintToBill
(
long
printToBill
)
{
this
.
printToBill
=
printToBill
;
}
public
void
setPointsAdd
(
double
pointsAdd
)
{
this
.
pointsAdd
=
pointsAdd
;
}
public
void
setPointsRatio
(
long
pointsRatio
)
{
this
.
pointsRatio
=
pointsRatio
;
}
public
void
setPointsRedeem
(
double
pointsRedeem
)
{
this
.
pointsRedeem
=
pointsRedeem
;
}
public
void
setKtPrintMainItem
(
long
ktPrintMainItem
)
{
this
.
ktPrintMainItem
=
ktPrintMainItem
;
}
public
void
setKtShowPrice
(
long
ktShowPrice
)
{
this
.
ktShowPrice
=
ktShowPrice
;
}
public
void
setPrintTo
(
long
printTo
)
{
this
.
printTo
=
printTo
;
}
public
void
setToPax
(
long
toPax
)
{
this
.
toPax
=
toPax
;
}
public
void
setFoodType
(
long
foodType
)
{
this
.
foodType
=
foodType
;
}
public
void
setMajorMainId
(
long
majorMainId
)
{
this
.
majorMainId
=
majorMainId
;
}
public
void
setDeptId
(
long
deptId
)
{
this
.
deptId
=
deptId
;
}
public
void
setServiceCharge
(
byte
serviceCharge
)
{
this
.
serviceCharge
=
serviceCharge
;
public
long
getColorId
()
{
return
this
.
colorId
;
}
public
void
setColorId
(
long
colorId
)
{
this
.
colorId
=
colorId
;
}
public
void
setConditions
(
long
conditions
)
{
this
.
conditions
=
conditions
;
}
public
void
setIsRt
(
long
isRt
)
{
this
.
isRt
=
isRt
;
}
public
void
setDeletes
(
long
deletes
)
{
this
.
deletes
=
deletes
;
}
public
void
setIsTimingFood
(
long
isTimingFood
)
{
this
.
isTimingFood
=
isTimingFood
;
}
public
void
setMinLongTime
(
long
minLongTime
)
{
this
.
minLongTime
=
minLongTime
;
}
public
void
setUnitTime
(
long
unitTime
)
{
this
.
unitTime
=
unitTime
;
}
public
void
setUnitPrice
(
double
unitPrice
)
{
this
.
unitPrice
=
unitPrice
;
}
public
void
setFreeLongTime
(
long
freeLongTime
)
{
this
.
freeLongTime
=
freeLongTime
;
}
public
void
setIsStatistic
(
long
isStatistic
)
{
this
.
isStatistic
=
isStatistic
;
}
/** To-one relationship, resolved on first access. */
@Generated
(
hash
=
972194621
)
public
ColorBean
getColorBean
()
{
long
__key
=
this
.
colorId
;
if
(
colorBean__resolvedKey
==
null
||
!
colorBean__resolvedKey
.
equals
(
__key
))
{
final
DaoSession
daoSession
=
this
.
daoSession
;
if
(
daoSession
==
null
)
{
throw
new
DaoException
(
"Entity is detached from DAO context"
);
}
ColorBeanDao
targetDao
=
daoSession
.
getColorBeanDao
();
ColorBean
colorBeanNew
=
targetDao
.
load
(
__key
);
synchronized
(
this
)
{
colorBean
=
colorBeanNew
;
colorBean__resolvedKey
=
__key
;
}
}
return
colorBean
;
}
/** called by internal mechanisms, do not call yourself. */
@Generated
(
hash
=
453682256
)
public
void
setColorBean
(
@NotNull
ColorBean
colorBean
)
{
if
(
colorBean
==
null
)
{
throw
new
DaoException
(
"To-one property 'colorId' has not-null constraint; cannot set to-one to null"
);
}
synchronized
(
this
)
{
this
.
colorBean
=
colorBean
;
colorId
=
colorBean
.
getColorId
();
colorBean__resolvedKey
=
colorId
;
}
}
/**
* Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
* Entity must attached to an entity context.
*/
@Generated
(
hash
=
128553479
)
public
void
delete
()
{
if
(
myDao
==
null
)
{
throw
new
DaoException
(
"Entity is detached from DAO context"
);
}
myDao
.
delete
(
this
);
}
/**
* Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}.
* Entity must attached to an entity context.
*/
@Generated
(
hash
=
1942392019
)
public
void
refresh
()
{
if
(
myDao
==
null
)
{
throw
new
DaoException
(
"Entity is detached from DAO context"
);
}
myDao
.
refresh
(
this
);
}
/**
* Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}.
* Entity must attached to an entity context.
*/
@Generated
(
hash
=
713229351
)
public
void
update
()
{
if
(
myDao
==
null
)
{
throw
new
DaoException
(
"Entity is detached from DAO context"
);
}
myDao
.
update
(
this
);
}
/** called by internal mechanisms, do not call yourself. */
@Generated
(
hash
=
505459956
)
public
void
__setDaoSession
(
DaoSession
daoSession
)
{
this
.
daoSession
=
daoSession
;
myDao
=
daoSession
!=
null
?
daoSession
.
getFoodDao
()
:
null
;
}
}
library-database/src/main/java/com/gingersoft/gsa/cloud/database/greendao/DaoMaster.java
View file @
d088025b
...
...
@@ -14,10 +14,10 @@ import org.greenrobot.greendao.identityscope.IdentityScopeType;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* Master of DAO (schema version 2
3
): knows all DAOs.
* Master of DAO (schema version 2
4
): knows all DAOs.
*/
public
class
DaoMaster
extends
AbstractDaoMaster
{
public
static
final
int
SCHEMA_VERSION
=
2
3
;
public
static
final
int
SCHEMA_VERSION
=
2
4
;
/** Creates underlying database table using DAOs. */
public
static
void
createAllTables
(
Database
db
,
boolean
ifNotExists
)
{
...
...
library-database/src/main/java/com/gingersoft/gsa/cloud/database/greendao/FoodDao.java
View file @
d088025b
...
...
@@ -38,64 +38,65 @@ public class FoodDao extends AbstractDao<Food, Long> {
public
final
static
Property
FoodName1
=
new
Property
(
6
,
String
.
class
,
"foodName1"
,
false
,
"FOOD_NAME1"
);
public
final
static
Property
FoodName2
=
new
Property
(
7
,
String
.
class
,
"foodName2"
,
false
,
"FOOD_NAME2"
);
public
final
static
Property
Plu
=
new
Property
(
8
,
String
.
class
,
"plu"
,
false
,
"PLU"
);
public
final
static
Property
PosFid
=
new
Property
(
9
,
String
.
class
,
"posFid"
,
false
,
"POS_FID"
);
public
final
static
Property
FoodDesc
=
new
Property
(
10
,
String
.
class
,
"foodDesc"
,
false
,
"FOOD_DESC"
);
public
final
static
Property
LimitAmount
=
new
Property
(
11
,
long
.
class
,
"limitAmount"
,
false
,
"LIMIT_AMOUNT"
);
public
final
static
Property
LimitType
=
new
Property
(
12
,
long
.
class
,
"limitType"
,
false
,
"LIMIT_TYPE"
);
public
final
static
Property
FoodSummary
=
new
Property
(
13
,
String
.
class
,
"foodSummary"
,
false
,
"FOOD_SUMMARY"
);
public
final
static
Property
Invisible
=
new
Property
(
14
,
long
.
class
,
"invisible"
,
false
,
"INVISIBLE"
);
public
final
static
Property
AutoMod
=
new
Property
(
15
,
byte
.
class
,
"autoMod"
,
false
,
"AUTO_MOD"
);
public
final
static
Property
Price
=
new
Property
(
16
,
double
.
class
,
"price"
,
false
,
"PRICE"
);
public
final
static
Property
MarketPrice
=
new
Property
(
17
,
double
.
class
,
"marketPrice"
,
false
,
"MARKET_PRICE"
);
public
final
static
Property
LunchboxPrice
=
new
Property
(
18
,
double
.
class
,
"lunchboxPrice"
,
false
,
"LUNCHBOX_PRICE"
);
public
final
static
Property
ImgUrlSmall
=
new
Property
(
19
,
String
.
class
,
"imgUrlSmall"
,
false
,
"IMG_URL_SMALL"
);
public
final
static
Property
Imageurl
=
new
Property
(
20
,
String
.
class
,
"imageurl"
,
false
,
"IMAGEURL"
);
public
final
static
Property
RiceponInvisible
=
new
Property
(
21
,
long
.
class
,
"riceponInvisible"
,
false
,
"RICEPON_INVISIBLE"
);
public
final
static
Property
Cost
=
new
Property
(
22
,
double
.
class
,
"cost"
,
false
,
"COST"
);
public
final
static
Property
Like
=
new
Property
(
23
,
long
.
class
,
"like"
,
false
,
"LIKE"
);
public
final
static
Property
TotalSold
=
new
Property
(
24
,
long
.
class
,
"totalSold"
,
false
,
"TOTAL_SOLD"
);
public
final
static
Property
IsSold
=
new
Property
(
25
,
long
.
class
,
"isSold"
,
false
,
"IS_SOLD"
);
public
final
static
Property
StartDate
=
new
Property
(
26
,
java
.
util
.
Date
.
class
,
"startDate"
,
false
,
"START_DATE"
);
public
final
static
Property
EndDate
=
new
Property
(
27
,
java
.
util
.
Date
.
class
,
"endDate"
,
false
,
"END_DATE"
);
public
final
static
Property
CreateBy
=
new
Property
(
28
,
String
.
class
,
"createBy"
,
false
,
"CREATE_BY"
);
public
final
static
Property
CreateTime
=
new
Property
(
29
,
java
.
util
.
Date
.
class
,
"createTime"
,
false
,
"CREATE_TIME"
);
public
final
static
Property
UpdateBy
=
new
Property
(
30
,
String
.
class
,
"updateBy"
,
false
,
"UPDATE_BY"
);
public
final
static
Property
UpdateTime
=
new
Property
(
31
,
java
.
util
.
Date
.
class
,
"updateTime"
,
false
,
"UPDATE_TIME"
);
public
final
static
Property
PeriodId
=
new
Property
(
32
,
long
.
class
,
"periodId"
,
false
,
"PERIOD_ID"
);
public
final
static
Property
AbleDiscount
=
new
Property
(
33
,
long
.
class
,
"ableDiscount"
,
false
,
"ABLE_DISCOUNT"
);
public
final
static
Property
Takeaway
=
new
Property
(
34
,
long
.
class
,
"takeaway"
,
false
,
"TAKEAWAY"
);
public
final
static
Property
BlueEdit
=
new
Property
(
35
,
long
.
class
,
"blueEdit"
,
false
,
"BLUE_EDIT"
);
public
final
static
Property
CartEdit
=
new
Property
(
36
,
long
.
class
,
"cartEdit"
,
false
,
"CART_EDIT"
);
public
final
static
Property
AutoMerge
=
new
Property
(
37
,
long
.
class
,
"autoMerge"
,
false
,
"AUTO_MERGE"
);
public
final
static
Property
PrintSeting
=
new
Property
(
38
,
String
.
class
,
"printSeting"
,
false
,
"PRINT_SETING"
);
public
final
static
Property
IsPrintQueueCode
=
new
Property
(
39
,
long
.
class
,
"isPrintQueueCode"
,
false
,
"IS_PRINT_QUEUE_CODE"
);
public
final
static
Property
QueueHeadId
=
new
Property
(
40
,
long
.
class
,
"queueHeadId"
,
false
,
"QUEUE_HEAD_ID"
);
public
final
static
Property
Approve
=
new
Property
(
41
,
long
.
class
,
"approve"
,
false
,
"APPROVE"
);
public
final
static
Property
PrintFont
=
new
Property
(
42
,
long
.
class
,
"printFont"
,
false
,
"PRINT_FONT"
);
public
final
static
Property
AdvPrice
=
new
Property
(
43
,
long
.
class
,
"advPrice"
,
false
,
"ADV_PRICE"
);
public
final
static
Property
PrintToBill
=
new
Property
(
44
,
long
.
class
,
"printToBill"
,
false
,
"PRINT_TO_BILL"
);
public
final
static
Property
PointsAdd
=
new
Property
(
45
,
double
.
class
,
"pointsAdd"
,
false
,
"POINTS_ADD"
);
public
final
static
Property
PointsRatio
=
new
Property
(
46
,
long
.
class
,
"pointsRatio"
,
false
,
"POINTS_RATIO"
);
public
final
static
Property
PointsRedeem
=
new
Property
(
47
,
double
.
class
,
"pointsRedeem"
,
false
,
"POINTS_REDEEM"
);
public
final
static
Property
KtPrintMainItem
=
new
Property
(
48
,
long
.
class
,
"ktPrintMainItem"
,
false
,
"KT_PRINT_MAIN_ITEM"
);
public
final
static
Property
KtShowPrice
=
new
Property
(
49
,
long
.
class
,
"ktShowPrice"
,
false
,
"KT_SHOW_PRICE"
);
public
final
static
Property
PrintTo
=
new
Property
(
50
,
long
.
class
,
"printTo"
,
false
,
"PRINT_TO"
);
public
final
static
Property
ToPax
=
new
Property
(
51
,
long
.
class
,
"toPax"
,
false
,
"TO_PAX"
);
public
final
static
Property
FoodType
=
new
Property
(
52
,
long
.
class
,
"foodType"
,
false
,
"FOOD_TYPE"
);
public
final
static
Property
MajorMainId
=
new
Property
(
53
,
long
.
class
,
"majorMainId"
,
false
,
"MAJOR_MAIN_ID"
);
public
final
static
Property
DeptId
=
new
Property
(
54
,
long
.
class
,
"deptId"
,
false
,
"DEPT_ID"
);
public
final
static
Property
ServiceCharge
=
new
Property
(
55
,
byte
.
class
,
"serviceCharge"
,
false
,
"SERVICE_CHARGE"
);
public
final
static
Property
Conditions
=
new
Property
(
56
,
long
.
class
,
"conditions"
,
false
,
"CONDITIONS"
);
public
final
static
Property
IsRt
=
new
Property
(
57
,
long
.
class
,
"isRt"
,
false
,
"IS_RT"
);
public
final
static
Property
Deletes
=
new
Property
(
58
,
long
.
class
,
"deletes"
,
false
,
"DELETES"
);
public
final
static
Property
IsTimingFood
=
new
Property
(
59
,
long
.
class
,
"isTimingFood"
,
false
,
"IS_TIMING_FOOD"
);
public
final
static
Property
MinLongTime
=
new
Property
(
60
,
long
.
class
,
"minLongTime"
,
false
,
"MIN_LONG_TIME"
);
public
final
static
Property
UnitTime
=
new
Property
(
61
,
long
.
class
,
"unitTime"
,
false
,
"UNIT_TIME"
);
public
final
static
Property
UnitPrice
=
new
Property
(
62
,
double
.
class
,
"unitPrice"
,
false
,
"UNIT_PRICE"
);
public
final
static
Property
FreeLongTime
=
new
Property
(
63
,
long
.
class
,
"freeLongTime"
,
false
,
"FREE_LONG_TIME"
);
public
final
static
Property
FreePeriodBegin
=
new
Property
(
64
,
java
.
util
.
Date
.
class
,
"freePeriodBegin"
,
false
,
"FREE_PERIOD_BEGIN"
);
public
final
static
Property
IsStatistic
=
new
Property
(
65
,
long
.
class
,
"isStatistic"
,
false
,
"IS_STATISTIC"
);
public
final
static
Property
ColorId
=
new
Property
(
66
,
long
.
class
,
"colorId"
,
false
,
"COLOR_ID"
);
public
final
static
Property
CustomType
=
new
Property
(
9
,
Integer
.
class
,
"customType"
,
false
,
"CUSTOM_TYPE"
);
public
final
static
Property
PosFid
=
new
Property
(
10
,
String
.
class
,
"posFid"
,
false
,
"POS_FID"
);
public
final
static
Property
FoodDesc
=
new
Property
(
11
,
String
.
class
,
"foodDesc"
,
false
,
"FOOD_DESC"
);
public
final
static
Property
LimitAmount
=
new
Property
(
12
,
long
.
class
,
"limitAmount"
,
false
,
"LIMIT_AMOUNT"
);
public
final
static
Property
LimitType
=
new
Property
(
13
,
long
.
class
,
"limitType"
,
false
,
"LIMIT_TYPE"
);
public
final
static
Property
FoodSummary
=
new
Property
(
14
,
String
.
class
,
"foodSummary"
,
false
,
"FOOD_SUMMARY"
);
public
final
static
Property
Invisible
=
new
Property
(
15
,
long
.
class
,
"invisible"
,
false
,
"INVISIBLE"
);
public
final
static
Property
AutoMod
=
new
Property
(
16
,
byte
.
class
,
"autoMod"
,
false
,
"AUTO_MOD"
);
public
final
static
Property
Price
=
new
Property
(
17
,
double
.
class
,
"price"
,
false
,
"PRICE"
);
public
final
static
Property
MarketPrice
=
new
Property
(
18
,
double
.
class
,
"marketPrice"
,
false
,
"MARKET_PRICE"
);
public
final
static
Property
LunchboxPrice
=
new
Property
(
19
,
double
.
class
,
"lunchboxPrice"
,
false
,
"LUNCHBOX_PRICE"
);
public
final
static
Property
ImgUrlSmall
=
new
Property
(
20
,
String
.
class
,
"imgUrlSmall"
,
false
,
"IMG_URL_SMALL"
);
public
final
static
Property
Imageurl
=
new
Property
(
21
,
String
.
class
,
"imageurl"
,
false
,
"IMAGEURL"
);
public
final
static
Property
RiceponInvisible
=
new
Property
(
22
,
long
.
class
,
"riceponInvisible"
,
false
,
"RICEPON_INVISIBLE"
);
public
final
static
Property
Cost
=
new
Property
(
23
,
double
.
class
,
"cost"
,
false
,
"COST"
);
public
final
static
Property
Like
=
new
Property
(
24
,
long
.
class
,
"like"
,
false
,
"LIKE"
);
public
final
static
Property
TotalSold
=
new
Property
(
25
,
long
.
class
,
"totalSold"
,
false
,
"TOTAL_SOLD"
);
public
final
static
Property
IsSold
=
new
Property
(
26
,
long
.
class
,
"isSold"
,
false
,
"IS_SOLD"
);
public
final
static
Property
StartDate
=
new
Property
(
27
,
java
.
util
.
Date
.
class
,
"startDate"
,
false
,
"START_DATE"
);
public
final
static
Property
EndDate
=
new
Property
(
28
,
java
.
util
.
Date
.
class
,
"endDate"
,
false
,
"END_DATE"
);
public
final
static
Property
CreateBy
=
new
Property
(
29
,
String
.
class
,
"createBy"
,
false
,
"CREATE_BY"
);
public
final
static
Property
CreateTime
=
new
Property
(
30
,
java
.
util
.
Date
.
class
,
"createTime"
,
false
,
"CREATE_TIME"
);
public
final
static
Property
UpdateBy
=
new
Property
(
31
,
String
.
class
,
"updateBy"
,
false
,
"UPDATE_BY"
);
public
final
static
Property
UpdateTime
=
new
Property
(
32
,
java
.
util
.
Date
.
class
,
"updateTime"
,
false
,
"UPDATE_TIME"
);
public
final
static
Property
PeriodId
=
new
Property
(
33
,
long
.
class
,
"periodId"
,
false
,
"PERIOD_ID"
);
public
final
static
Property
AbleDiscount
=
new
Property
(
34
,
long
.
class
,
"ableDiscount"
,
false
,
"ABLE_DISCOUNT"
);
public
final
static
Property
Takeaway
=
new
Property
(
35
,
long
.
class
,
"takeaway"
,
false
,
"TAKEAWAY"
);
public
final
static
Property
BlueEdit
=
new
Property
(
36
,
long
.
class
,
"blueEdit"
,
false
,
"BLUE_EDIT"
);
public
final
static
Property
CartEdit
=
new
Property
(
37
,
long
.
class
,
"cartEdit"
,
false
,
"CART_EDIT"
);
public
final
static
Property
AutoMerge
=
new
Property
(
38
,
long
.
class
,
"autoMerge"
,
false
,
"AUTO_MERGE"
);
public
final
static
Property
PrintSeting
=
new
Property
(
39
,
String
.
class
,
"printSeting"
,
false
,
"PRINT_SETING"
);
public
final
static
Property
IsPrintQueueCode
=
new
Property
(
40
,
long
.
class
,
"isPrintQueueCode"
,
false
,
"IS_PRINT_QUEUE_CODE"
);
public
final
static
Property
QueueHeadId
=
new
Property
(
41
,
long
.
class
,
"queueHeadId"
,
false
,
"QUEUE_HEAD_ID"
);
public
final
static
Property
Approve
=
new
Property
(
42
,
long
.
class
,
"approve"
,
false
,
"APPROVE"
);
public
final
static
Property
PrintFont
=
new
Property
(
43
,
long
.
class
,
"printFont"
,
false
,
"PRINT_FONT"
);
public
final
static
Property
AdvPrice
=
new
Property
(
44
,
long
.
class
,
"advPrice"
,
false
,
"ADV_PRICE"
);
public
final
static
Property
PrintToBill
=
new
Property
(
45
,
long
.
class
,
"printToBill"
,
false
,
"PRINT_TO_BILL"
);
public
final
static
Property
PointsAdd
=
new
Property
(
46
,
double
.
class
,
"pointsAdd"
,
false
,
"POINTS_ADD"
);
public
final
static
Property
PointsRatio
=
new
Property
(
47
,
long
.
class
,
"pointsRatio"
,
false
,
"POINTS_RATIO"
);
public
final
static
Property
PointsRedeem
=
new
Property
(
48
,
double
.
class
,
"pointsRedeem"
,
false
,
"POINTS_REDEEM"
);
public
final
static
Property
KtPrintMainItem
=
new
Property
(
49
,
long
.
class
,
"ktPrintMainItem"
,
false
,
"KT_PRINT_MAIN_ITEM"
);
public
final
static
Property
KtShowPrice
=
new
Property
(
50
,
long
.
class
,
"ktShowPrice"
,
false
,
"KT_SHOW_PRICE"
);
public
final
static
Property
PrintTo
=
new
Property
(
51
,
long
.
class
,
"printTo"
,
false
,
"PRINT_TO"
);
public
final
static
Property
ToPax
=
new
Property
(
52
,
long
.
class
,
"toPax"
,
false
,
"TO_PAX"
);
public
final
static
Property
FoodType
=
new
Property
(
53
,
long
.
class
,
"foodType"
,
false
,
"FOOD_TYPE"
);
public
final
static
Property
MajorMainId
=
new
Property
(
54
,
long
.
class
,
"majorMainId"
,
false
,
"MAJOR_MAIN_ID"
);
public
final
static
Property
DeptId
=
new
Property
(
55
,
long
.
class
,
"deptId"
,
false
,
"DEPT_ID"
);
public
final
static
Property
ServiceCharge
=
new
Property
(
56
,
byte
.
class
,
"serviceCharge"
,
false
,
"SERVICE_CHARGE"
);
public
final
static
Property
Conditions
=
new
Property
(
57
,
long
.
class
,
"conditions"
,
false
,
"CONDITIONS"
);
public
final
static
Property
IsRt
=
new
Property
(
58
,
long
.
class
,
"isRt"
,
false
,
"IS_RT"
);
public
final
static
Property
Deletes
=
new
Property
(
59
,
long
.
class
,
"deletes"
,
false
,
"DELETES"
);
public
final
static
Property
IsTimingFood
=
new
Property
(
60
,
long
.
class
,
"isTimingFood"
,
false
,
"IS_TIMING_FOOD"
);
public
final
static
Property
MinLongTime
=
new
Property
(
61
,
long
.
class
,
"minLongTime"
,
false
,
"MIN_LONG_TIME"
);
public
final
static
Property
UnitTime
=
new
Property
(
62
,
long
.
class
,
"unitTime"
,
false
,
"UNIT_TIME"
);
public
final
static
Property
UnitPrice
=
new
Property
(
63
,
double
.
class
,
"unitPrice"
,
false
,
"UNIT_PRICE"
);
public
final
static
Property
FreeLongTime
=
new
Property
(
64
,
long
.
class
,
"freeLongTime"
,
false
,
"FREE_LONG_TIME"
);
public
final
static
Property
FreePeriodBegin
=
new
Property
(
65
,
java
.
util
.
Date
.
class
,
"freePeriodBegin"
,
false
,
"FREE_PERIOD_BEGIN"
);
public
final
static
Property
IsStatistic
=
new
Property
(
66
,
long
.
class
,
"isStatistic"
,
false
,
"IS_STATISTIC"
);
public
final
static
Property
ColorId
=
new
Property
(
67
,
long
.
class
,
"colorId"
,
false
,
"COLOR_ID"
);
}
private
DaoSession
daoSession
;
...
...
@@ -123,64 +124,65 @@ public class FoodDao extends AbstractDao<Food, Long> {
"\"FOOD_NAME1\" TEXT,"
+
// 6: foodName1
"\"FOOD_NAME2\" TEXT,"
+
// 7: foodName2
"\"PLU\" TEXT,"
+
// 8: plu
"\"POS_FID\" TEXT,"
+
// 9: posFid
"\"FOOD_DESC\" TEXT,"
+
// 10: foodDesc
"\"LIMIT_AMOUNT\" INTEGER NOT NULL ,"
+
// 11: limitAmount
"\"LIMIT_TYPE\" INTEGER NOT NULL ,"
+
// 12: limitType
"\"FOOD_SUMMARY\" TEXT,"
+
// 13: foodSummary
"\"INVISIBLE\" INTEGER NOT NULL ,"
+
// 14: invisible
"\"AUTO_MOD\" INTEGER NOT NULL ,"
+
// 15: autoMod
"\"PRICE\" REAL NOT NULL ,"
+
// 16: price
"\"MARKET_PRICE\" REAL NOT NULL ,"
+
// 17: marketPrice
"\"LUNCHBOX_PRICE\" REAL NOT NULL ,"
+
// 18: lunchboxPrice
"\"IMG_URL_SMALL\" TEXT,"
+
// 19: imgUrlSmall
"\"IMAGEURL\" TEXT,"
+
// 20: imageurl
"\"RICEPON_INVISIBLE\" INTEGER NOT NULL ,"
+
// 21: riceponInvisible
"\"COST\" REAL NOT NULL ,"
+
// 22: cost
"\"LIKE\" INTEGER NOT NULL ,"
+
// 23: like
"\"TOTAL_SOLD\" INTEGER NOT NULL ,"
+
// 24: totalSold
"\"IS_SOLD\" INTEGER NOT NULL ,"
+
// 25: isSold
"\"START_DATE\" INTEGER,"
+
// 26: startDate
"\"END_DATE\" INTEGER,"
+
// 27: endDate
"\"CREATE_BY\" TEXT,"
+
// 28: createBy
"\"CREATE_TIME\" INTEGER,"
+
// 29: createTime
"\"UPDATE_BY\" TEXT,"
+
// 30: updateBy
"\"UPDATE_TIME\" INTEGER,"
+
// 31: updateTime
"\"PERIOD_ID\" INTEGER NOT NULL ,"
+
// 32: periodId
"\"ABLE_DISCOUNT\" INTEGER NOT NULL ,"
+
// 33: ableDiscount
"\"TAKEAWAY\" INTEGER NOT NULL ,"
+
// 34: takeaway
"\"BLUE_EDIT\" INTEGER NOT NULL ,"
+
// 35: blueEdit
"\"CART_EDIT\" INTEGER NOT NULL ,"
+
// 36: cartEdit
"\"AUTO_MERGE\" INTEGER NOT NULL ,"
+
// 37: autoMerge
"\"PRINT_SETING\" TEXT,"
+
// 38: printSeting
"\"IS_PRINT_QUEUE_CODE\" INTEGER NOT NULL ,"
+
// 39: isPrintQueueCode
"\"QUEUE_HEAD_ID\" INTEGER NOT NULL ,"
+
// 40: queueHeadId
"\"APPROVE\" INTEGER NOT NULL ,"
+
// 41: approve
"\"PRINT_FONT\" INTEGER NOT NULL ,"
+
// 42: printFont
"\"ADV_PRICE\" INTEGER NOT NULL ,"
+
// 43: advPrice
"\"PRINT_TO_BILL\" INTEGER NOT NULL ,"
+
// 44: printToBill
"\"POINTS_ADD\" REAL NOT NULL ,"
+
// 45: pointsAdd
"\"POINTS_RATIO\" INTEGER NOT NULL ,"
+
// 46: pointsRatio
"\"POINTS_REDEEM\" REAL NOT NULL ,"
+
// 47: pointsRedeem
"\"KT_PRINT_MAIN_ITEM\" INTEGER NOT NULL ,"
+
// 48: ktPrintMainItem
"\"KT_SHOW_PRICE\" INTEGER NOT NULL ,"
+
// 49: ktShowPrice
"\"PRINT_TO\" INTEGER NOT NULL ,"
+
// 50: printTo
"\"TO_PAX\" INTEGER NOT NULL ,"
+
// 51: toPax
"\"FOOD_TYPE\" INTEGER NOT NULL ,"
+
// 52: foodType
"\"MAJOR_MAIN_ID\" INTEGER NOT NULL ,"
+
// 53: majorMainId
"\"DEPT_ID\" INTEGER NOT NULL ,"
+
// 54: deptId
"\"SERVICE_CHARGE\" INTEGER NOT NULL ,"
+
// 55: serviceCharge
"\"CONDITIONS\" INTEGER NOT NULL ,"
+
// 56: conditions
"\"IS_RT\" INTEGER NOT NULL ,"
+
// 57: isRt
"\"DELETES\" INTEGER NOT NULL ,"
+
// 58: deletes
"\"IS_TIMING_FOOD\" INTEGER NOT NULL ,"
+
// 59: isTimingFood
"\"MIN_LONG_TIME\" INTEGER NOT NULL ,"
+
// 60: minLongTime
"\"UNIT_TIME\" INTEGER NOT NULL ,"
+
// 61: unitTime
"\"UNIT_PRICE\" REAL NOT NULL ,"
+
// 62: unitPrice
"\"FREE_LONG_TIME\" INTEGER NOT NULL ,"
+
// 63: freeLongTime
"\"FREE_PERIOD_BEGIN\" INTEGER,"
+
// 64: freePeriodBegin
"\"IS_STATISTIC\" INTEGER NOT NULL ,"
+
// 65: isStatistic
"\"COLOR_ID\" INTEGER NOT NULL );"
);
// 66: colorId
"\"CUSTOM_TYPE\" INTEGER,"
+
// 9: customType
"\"POS_FID\" TEXT,"
+
// 10: posFid
"\"FOOD_DESC\" TEXT,"
+
// 11: foodDesc
"\"LIMIT_AMOUNT\" INTEGER NOT NULL ,"
+
// 12: limitAmount
"\"LIMIT_TYPE\" INTEGER NOT NULL ,"
+
// 13: limitType
"\"FOOD_SUMMARY\" TEXT,"
+
// 14: foodSummary
"\"INVISIBLE\" INTEGER NOT NULL ,"
+
// 15: invisible
"\"AUTO_MOD\" INTEGER NOT NULL ,"
+
// 16: autoMod
"\"PRICE\" REAL NOT NULL ,"
+
// 17: price
"\"MARKET_PRICE\" REAL NOT NULL ,"
+
// 18: marketPrice
"\"LUNCHBOX_PRICE\" REAL NOT NULL ,"
+
// 19: lunchboxPrice
"\"IMG_URL_SMALL\" TEXT,"
+
// 20: imgUrlSmall
"\"IMAGEURL\" TEXT,"
+
// 21: imageurl
"\"RICEPON_INVISIBLE\" INTEGER NOT NULL ,"
+
// 22: riceponInvisible
"\"COST\" REAL NOT NULL ,"
+
// 23: cost
"\"LIKE\" INTEGER NOT NULL ,"
+
// 24: like
"\"TOTAL_SOLD\" INTEGER NOT NULL ,"
+
// 25: totalSold
"\"IS_SOLD\" INTEGER NOT NULL ,"
+
// 26: isSold
"\"START_DATE\" INTEGER,"
+
// 27: startDate
"\"END_DATE\" INTEGER,"
+
// 28: endDate
"\"CREATE_BY\" TEXT,"
+
// 29: createBy
"\"CREATE_TIME\" INTEGER,"
+
// 30: createTime
"\"UPDATE_BY\" TEXT,"
+
// 31: updateBy
"\"UPDATE_TIME\" INTEGER,"
+
// 32: updateTime
"\"PERIOD_ID\" INTEGER NOT NULL ,"
+
// 33: periodId
"\"ABLE_DISCOUNT\" INTEGER NOT NULL ,"
+
// 34: ableDiscount
"\"TAKEAWAY\" INTEGER NOT NULL ,"
+
// 35: takeaway
"\"BLUE_EDIT\" INTEGER NOT NULL ,"
+
// 36: blueEdit
"\"CART_EDIT\" INTEGER NOT NULL ,"
+
// 37: cartEdit
"\"AUTO_MERGE\" INTEGER NOT NULL ,"
+
// 38: autoMerge
"\"PRINT_SETING\" TEXT,"
+
// 39: printSeting
"\"IS_PRINT_QUEUE_CODE\" INTEGER NOT NULL ,"
+
// 40: isPrintQueueCode
"\"QUEUE_HEAD_ID\" INTEGER NOT NULL ,"
+
// 41: queueHeadId
"\"APPROVE\" INTEGER NOT NULL ,"
+
// 42: approve
"\"PRINT_FONT\" INTEGER NOT NULL ,"
+
// 43: printFont
"\"ADV_PRICE\" INTEGER NOT NULL ,"
+
// 44: advPrice
"\"PRINT_TO_BILL\" INTEGER NOT NULL ,"
+
// 45: printToBill
"\"POINTS_ADD\" REAL NOT NULL ,"
+
// 46: pointsAdd
"\"POINTS_RATIO\" INTEGER NOT NULL ,"
+
// 47: pointsRatio
"\"POINTS_REDEEM\" REAL NOT NULL ,"
+
// 48: pointsRedeem
"\"KT_PRINT_MAIN_ITEM\" INTEGER NOT NULL ,"
+
// 49: ktPrintMainItem
"\"KT_SHOW_PRICE\" INTEGER NOT NULL ,"
+
// 50: ktShowPrice
"\"PRINT_TO\" INTEGER NOT NULL ,"
+
// 51: printTo
"\"TO_PAX\" INTEGER NOT NULL ,"
+
// 52: toPax
"\"FOOD_TYPE\" INTEGER NOT NULL ,"
+
// 53: foodType
"\"MAJOR_MAIN_ID\" INTEGER NOT NULL ,"
+
// 54: majorMainId
"\"DEPT_ID\" INTEGER NOT NULL ,"
+
// 55: deptId
"\"SERVICE_CHARGE\" INTEGER NOT NULL ,"
+
// 56: serviceCharge
"\"CONDITIONS\" INTEGER NOT NULL ,"
+
// 57: conditions
"\"IS_RT\" INTEGER NOT NULL ,"
+
// 58: isRt
"\"DELETES\" INTEGER NOT NULL ,"
+
// 59: deletes
"\"IS_TIMING_FOOD\" INTEGER NOT NULL ,"
+
// 60: isTimingFood
"\"MIN_LONG_TIME\" INTEGER NOT NULL ,"
+
// 61: minLongTime
"\"UNIT_TIME\" INTEGER NOT NULL ,"
+
// 62: unitTime
"\"UNIT_PRICE\" REAL NOT NULL ,"
+
// 63: unitPrice
"\"FREE_LONG_TIME\" INTEGER NOT NULL ,"
+
// 64: freeLongTime
"\"FREE_PERIOD_BEGIN\" INTEGER,"
+
// 65: freePeriodBegin
"\"IS_STATISTIC\" INTEGER NOT NULL ,"
+
// 66: isStatistic
"\"COLOR_ID\" INTEGER NOT NULL );"
);
// 67: colorId
}
/** Drops the underlying database table. */
...
...
@@ -222,115 +224,120 @@ public class FoodDao extends AbstractDao<Food, Long> {
stmt
.
bindString
(
9
,
plu
);
}
Integer
customType
=
entity
.
getCustomType
();
if
(
customType
!=
null
)
{
stmt
.
bindLong
(
10
,
customType
);
}
String
posFid
=
entity
.
getPosFid
();
if
(
posFid
!=
null
)
{
stmt
.
bindString
(
1
0
,
posFid
);
stmt
.
bindString
(
1
1
,
posFid
);
}
String
foodDesc
=
entity
.
getFoodDesc
();
if
(
foodDesc
!=
null
)
{
stmt
.
bindString
(
1
1
,
foodDesc
);
stmt
.
bindString
(
1
2
,
foodDesc
);
}
stmt
.
bindLong
(
1
2
,
entity
.
getLimitAmount
());
stmt
.
bindLong
(
1
3
,
entity
.
getLimitType
());
stmt
.
bindLong
(
1
3
,
entity
.
getLimitAmount
());
stmt
.
bindLong
(
1
4
,
entity
.
getLimitType
());
String
foodSummary
=
entity
.
getFoodSummary
();
if
(
foodSummary
!=
null
)
{
stmt
.
bindString
(
1
4
,
foodSummary
);
stmt
.
bindString
(
1
5
,
foodSummary
);
}
stmt
.
bindLong
(
1
5
,
entity
.
getInvisible
());
stmt
.
bindLong
(
1
6
,
entity
.
getAutoMod
());
stmt
.
bindDouble
(
1
7
,
entity
.
getPrice
());
stmt
.
bindDouble
(
1
8
,
entity
.
getMarketPrice
());
stmt
.
bindDouble
(
19
,
entity
.
getLunchboxPrice
());
stmt
.
bindLong
(
1
6
,
entity
.
getInvisible
());
stmt
.
bindLong
(
1
7
,
entity
.
getAutoMod
());
stmt
.
bindDouble
(
1
8
,
entity
.
getPrice
());
stmt
.
bindDouble
(
1
9
,
entity
.
getMarketPrice
());
stmt
.
bindDouble
(
20
,
entity
.
getLunchboxPrice
());
String
imgUrlSmall
=
entity
.
getImgUrlSmall
();
if
(
imgUrlSmall
!=
null
)
{
stmt
.
bindString
(
2
0
,
imgUrlSmall
);
stmt
.
bindString
(
2
1
,
imgUrlSmall
);
}
String
imageurl
=
entity
.
getImageurl
();
if
(
imageurl
!=
null
)
{
stmt
.
bindString
(
2
1
,
imageurl
);
stmt
.
bindString
(
2
2
,
imageurl
);
}
stmt
.
bindLong
(
2
2
,
entity
.
getRiceponInvisible
());
stmt
.
bindDouble
(
2
3
,
entity
.
getCost
());
stmt
.
bindLong
(
2
4
,
entity
.
getLike
());
stmt
.
bindLong
(
2
5
,
entity
.
getTotalSold
());
stmt
.
bindLong
(
2
6
,
entity
.
getIsSold
());
stmt
.
bindLong
(
2
3
,
entity
.
getRiceponInvisible
());
stmt
.
bindDouble
(
2
4
,
entity
.
getCost
());
stmt
.
bindLong
(
2
5
,
entity
.
getLike
());
stmt
.
bindLong
(
2
6
,
entity
.
getTotalSold
());
stmt
.
bindLong
(
2
7
,
entity
.
getIsSold
());
java
.
util
.
Date
startDate
=
entity
.
getStartDate
();
if
(
startDate
!=
null
)
{
stmt
.
bindLong
(
2
7
,
startDate
.
getTime
());
stmt
.
bindLong
(
2
8
,
startDate
.
getTime
());
}
java
.
util
.
Date
endDate
=
entity
.
getEndDate
();
if
(
endDate
!=
null
)
{
stmt
.
bindLong
(
2
8
,
endDate
.
getTime
());
stmt
.
bindLong
(
2
9
,
endDate
.
getTime
());
}
String
createBy
=
entity
.
getCreateBy
();
if
(
createBy
!=
null
)
{
stmt
.
bindString
(
29
,
createBy
);
stmt
.
bindString
(
30
,
createBy
);
}
java
.
util
.
Date
createTime
=
entity
.
getCreateTime
();
if
(
createTime
!=
null
)
{
stmt
.
bindLong
(
3
0
,
createTime
.
getTime
());
stmt
.
bindLong
(
3
1
,
createTime
.
getTime
());
}
String
updateBy
=
entity
.
getUpdateBy
();
if
(
updateBy
!=
null
)
{
stmt
.
bindString
(
3
1
,
updateBy
);
stmt
.
bindString
(
3
2
,
updateBy
);
}
java
.
util
.
Date
updateTime
=
entity
.
getUpdateTime
();
if
(
updateTime
!=
null
)
{
stmt
.
bindLong
(
3
2
,
updateTime
.
getTime
());
stmt
.
bindLong
(
3
3
,
updateTime
.
getTime
());
}
stmt
.
bindLong
(
3
3
,
entity
.
getPeriodId
());
stmt
.
bindLong
(
3
4
,
entity
.
getAbleDiscount
());
stmt
.
bindLong
(
3
5
,
entity
.
getTakeaway
());
stmt
.
bindLong
(
3
6
,
entity
.
getBlueEdit
());
stmt
.
bindLong
(
3
7
,
entity
.
getCartEdit
());
stmt
.
bindLong
(
3
8
,
entity
.
getAutoMerge
());
stmt
.
bindLong
(
3
4
,
entity
.
getPeriodId
());
stmt
.
bindLong
(
3
5
,
entity
.
getAbleDiscount
());
stmt
.
bindLong
(
3
6
,
entity
.
getTakeaway
());
stmt
.
bindLong
(
3
7
,
entity
.
getBlueEdit
());
stmt
.
bindLong
(
3
8
,
entity
.
getCartEdit
());
stmt
.
bindLong
(
3
9
,
entity
.
getAutoMerge
());
String
printSeting
=
entity
.
getPrintSeting
();
if
(
printSeting
!=
null
)
{
stmt
.
bindString
(
39
,
printSeting
);
}
stmt
.
bindLong
(
4
0
,
entity
.
getIsPrintQueueCode
());
stmt
.
bindLong
(
4
1
,
entity
.
getQueueHeadId
());
stmt
.
bindLong
(
4
2
,
entity
.
getApprove
());
stmt
.
bindLong
(
4
3
,
entity
.
getPrintFont
());
stmt
.
bindLong
(
4
4
,
entity
.
getAdvPrice
());
stmt
.
bindLong
(
4
5
,
entity
.
getPrintToBill
());
stmt
.
bindDouble
(
4
6
,
entity
.
getPointsAdd
());
stmt
.
bindLong
(
4
7
,
entity
.
getPointsRatio
());
stmt
.
bindDouble
(
4
8
,
entity
.
getPointsRedeem
());
stmt
.
bindLong
(
49
,
entity
.
getKtPrintMainItem
());
stmt
.
bindLong
(
5
0
,
entity
.
getKtShowPrice
());
stmt
.
bindLong
(
5
1
,
entity
.
getPrintTo
());
stmt
.
bindLong
(
5
2
,
entity
.
getToPax
());
stmt
.
bindLong
(
5
3
,
entity
.
getFoodType
());
stmt
.
bindLong
(
5
4
,
entity
.
getMajorMainId
());
stmt
.
bindLong
(
5
5
,
entity
.
getDeptId
());
stmt
.
bindLong
(
5
6
,
entity
.
getServiceCharge
());
stmt
.
bindLong
(
5
7
,
entity
.
getConditions
());
stmt
.
bindLong
(
5
8
,
entity
.
getIsRt
());
stmt
.
bindLong
(
59
,
entity
.
getDeletes
());
stmt
.
bindLong
(
6
0
,
entity
.
getIsTimingFood
());
stmt
.
bindLong
(
6
1
,
entity
.
getMinLongTime
());
stmt
.
bindLong
(
6
2
,
entity
.
getUnitTime
());
stmt
.
bindDouble
(
6
3
,
entity
.
getUnitPrice
());
stmt
.
bindLong
(
6
4
,
entity
.
getFreeLongTime
());
stmt
.
bindString
(
40
,
printSeting
);
}
stmt
.
bindLong
(
4
1
,
entity
.
getIsPrintQueueCode
());
stmt
.
bindLong
(
4
2
,
entity
.
getQueueHeadId
());
stmt
.
bindLong
(
4
3
,
entity
.
getApprove
());
stmt
.
bindLong
(
4
4
,
entity
.
getPrintFont
());
stmt
.
bindLong
(
4
5
,
entity
.
getAdvPrice
());
stmt
.
bindLong
(
4
6
,
entity
.
getPrintToBill
());
stmt
.
bindDouble
(
4
7
,
entity
.
getPointsAdd
());
stmt
.
bindLong
(
4
8
,
entity
.
getPointsRatio
());
stmt
.
bindDouble
(
4
9
,
entity
.
getPointsRedeem
());
stmt
.
bindLong
(
50
,
entity
.
getKtPrintMainItem
());
stmt
.
bindLong
(
5
1
,
entity
.
getKtShowPrice
());
stmt
.
bindLong
(
5
2
,
entity
.
getPrintTo
());
stmt
.
bindLong
(
5
3
,
entity
.
getToPax
());
stmt
.
bindLong
(
5
4
,
entity
.
getFoodType
());
stmt
.
bindLong
(
5
5
,
entity
.
getMajorMainId
());
stmt
.
bindLong
(
5
6
,
entity
.
getDeptId
());
stmt
.
bindLong
(
5
7
,
entity
.
getServiceCharge
());
stmt
.
bindLong
(
5
8
,
entity
.
getConditions
());
stmt
.
bindLong
(
5
9
,
entity
.
getIsRt
());
stmt
.
bindLong
(
60
,
entity
.
getDeletes
());
stmt
.
bindLong
(
6
1
,
entity
.
getIsTimingFood
());
stmt
.
bindLong
(
6
2
,
entity
.
getMinLongTime
());
stmt
.
bindLong
(
6
3
,
entity
.
getUnitTime
());
stmt
.
bindDouble
(
6
4
,
entity
.
getUnitPrice
());
stmt
.
bindLong
(
6
5
,
entity
.
getFreeLongTime
());
java
.
util
.
Date
freePeriodBegin
=
entity
.
getFreePeriodBegin
();
if
(
freePeriodBegin
!=
null
)
{
stmt
.
bindLong
(
6
5
,
freePeriodBegin
.
getTime
());
stmt
.
bindLong
(
6
6
,
freePeriodBegin
.
getTime
());
}
stmt
.
bindLong
(
6
6
,
entity
.
getIsStatistic
());
stmt
.
bindLong
(
6
7
,
entity
.
getColorId
());
stmt
.
bindLong
(
6
7
,
entity
.
getIsStatistic
());
stmt
.
bindLong
(
6
8
,
entity
.
getColorId
());
}
@Override
...
...
@@ -366,115 +373,120 @@ public class FoodDao extends AbstractDao<Food, Long> {
stmt
.
bindString
(
9
,
plu
);
}
Integer
customType
=
entity
.
getCustomType
();
if
(
customType
!=
null
)
{
stmt
.
bindLong
(
10
,
customType
);
}
String
posFid
=
entity
.
getPosFid
();
if
(
posFid
!=
null
)
{
stmt
.
bindString
(
1
0
,
posFid
);
stmt
.
bindString
(
1
1
,
posFid
);
}
String
foodDesc
=
entity
.
getFoodDesc
();
if
(
foodDesc
!=
null
)
{
stmt
.
bindString
(
1
1
,
foodDesc
);
stmt
.
bindString
(
1
2
,
foodDesc
);
}
stmt
.
bindLong
(
1
2
,
entity
.
getLimitAmount
());
stmt
.
bindLong
(
1
3
,
entity
.
getLimitType
());
stmt
.
bindLong
(
1
3
,
entity
.
getLimitAmount
());
stmt
.
bindLong
(
1
4
,
entity
.
getLimitType
());
String
foodSummary
=
entity
.
getFoodSummary
();
if
(
foodSummary
!=
null
)
{
stmt
.
bindString
(
1
4
,
foodSummary
);
stmt
.
bindString
(
1
5
,
foodSummary
);
}
stmt
.
bindLong
(
1
5
,
entity
.
getInvisible
());
stmt
.
bindLong
(
1
6
,
entity
.
getAutoMod
());
stmt
.
bindDouble
(
1
7
,
entity
.
getPrice
());
stmt
.
bindDouble
(
1
8
,
entity
.
getMarketPrice
());
stmt
.
bindDouble
(
19
,
entity
.
getLunchboxPrice
());
stmt
.
bindLong
(
1
6
,
entity
.
getInvisible
());
stmt
.
bindLong
(
1
7
,
entity
.
getAutoMod
());
stmt
.
bindDouble
(
1
8
,
entity
.
getPrice
());
stmt
.
bindDouble
(
1
9
,
entity
.
getMarketPrice
());
stmt
.
bindDouble
(
20
,
entity
.
getLunchboxPrice
());
String
imgUrlSmall
=
entity
.
getImgUrlSmall
();
if
(
imgUrlSmall
!=
null
)
{
stmt
.
bindString
(
2
0
,
imgUrlSmall
);
stmt
.
bindString
(
2
1
,
imgUrlSmall
);
}
String
imageurl
=
entity
.
getImageurl
();
if
(
imageurl
!=
null
)
{
stmt
.
bindString
(
2
1
,
imageurl
);
stmt
.
bindString
(
2
2
,
imageurl
);
}
stmt
.
bindLong
(
2
2
,
entity
.
getRiceponInvisible
());
stmt
.
bindDouble
(
2
3
,
entity
.
getCost
());
stmt
.
bindLong
(
2
4
,
entity
.
getLike
());
stmt
.
bindLong
(
2
5
,
entity
.
getTotalSold
());
stmt
.
bindLong
(
2
6
,
entity
.
getIsSold
());
stmt
.
bindLong
(
2
3
,
entity
.
getRiceponInvisible
());
stmt
.
bindDouble
(
2
4
,
entity
.
getCost
());
stmt
.
bindLong
(
2
5
,
entity
.
getLike
());
stmt
.
bindLong
(
2
6
,
entity
.
getTotalSold
());
stmt
.
bindLong
(
2
7
,
entity
.
getIsSold
());
java
.
util
.
Date
startDate
=
entity
.
getStartDate
();
if
(
startDate
!=
null
)
{
stmt
.
bindLong
(
2
7
,
startDate
.
getTime
());
stmt
.
bindLong
(
2
8
,
startDate
.
getTime
());
}
java
.
util
.
Date
endDate
=
entity
.
getEndDate
();
if
(
endDate
!=
null
)
{
stmt
.
bindLong
(
2
8
,
endDate
.
getTime
());
stmt
.
bindLong
(
2
9
,
endDate
.
getTime
());
}
String
createBy
=
entity
.
getCreateBy
();
if
(
createBy
!=
null
)
{
stmt
.
bindString
(
29
,
createBy
);
stmt
.
bindString
(
30
,
createBy
);
}
java
.
util
.
Date
createTime
=
entity
.
getCreateTime
();
if
(
createTime
!=
null
)
{
stmt
.
bindLong
(
3
0
,
createTime
.
getTime
());
stmt
.
bindLong
(
3
1
,
createTime
.
getTime
());
}
String
updateBy
=
entity
.
getUpdateBy
();
if
(
updateBy
!=
null
)
{
stmt
.
bindString
(
3
1
,
updateBy
);
stmt
.
bindString
(
3
2
,
updateBy
);
}
java
.
util
.
Date
updateTime
=
entity
.
getUpdateTime
();
if
(
updateTime
!=
null
)
{
stmt
.
bindLong
(
3
2
,
updateTime
.
getTime
());
stmt
.
bindLong
(
3
3
,
updateTime
.
getTime
());
}
stmt
.
bindLong
(
3
3
,
entity
.
getPeriodId
());
stmt
.
bindLong
(
3
4
,
entity
.
getAbleDiscount
());
stmt
.
bindLong
(
3
5
,
entity
.
getTakeaway
());
stmt
.
bindLong
(
3
6
,
entity
.
getBlueEdit
());
stmt
.
bindLong
(
3
7
,
entity
.
getCartEdit
());
stmt
.
bindLong
(
3
8
,
entity
.
getAutoMerge
());
stmt
.
bindLong
(
3
4
,
entity
.
getPeriodId
());
stmt
.
bindLong
(
3
5
,
entity
.
getAbleDiscount
());
stmt
.
bindLong
(
3
6
,
entity
.
getTakeaway
());
stmt
.
bindLong
(
3
7
,
entity
.
getBlueEdit
());
stmt
.
bindLong
(
3
8
,
entity
.
getCartEdit
());
stmt
.
bindLong
(
3
9
,
entity
.
getAutoMerge
());
String
printSeting
=
entity
.
getPrintSeting
();
if
(
printSeting
!=
null
)
{
stmt
.
bindString
(
39
,
printSeting
);
}
stmt
.
bindLong
(
4
0
,
entity
.
getIsPrintQueueCode
());
stmt
.
bindLong
(
4
1
,
entity
.
getQueueHeadId
());
stmt
.
bindLong
(
4
2
,
entity
.
getApprove
());
stmt
.
bindLong
(
4
3
,
entity
.
getPrintFont
());
stmt
.
bindLong
(
4
4
,
entity
.
getAdvPrice
());
stmt
.
bindLong
(
4
5
,
entity
.
getPrintToBill
());
stmt
.
bindDouble
(
4
6
,
entity
.
getPointsAdd
());
stmt
.
bindLong
(
4
7
,
entity
.
getPointsRatio
());
stmt
.
bindDouble
(
4
8
,
entity
.
getPointsRedeem
());
stmt
.
bindLong
(
49
,
entity
.
getKtPrintMainItem
());
stmt
.
bindLong
(
5
0
,
entity
.
getKtShowPrice
());
stmt
.
bindLong
(
5
1
,
entity
.
getPrintTo
());
stmt
.
bindLong
(
5
2
,
entity
.
getToPax
());
stmt
.
bindLong
(
5
3
,
entity
.
getFoodType
());
stmt
.
bindLong
(
5
4
,
entity
.
getMajorMainId
());
stmt
.
bindLong
(
5
5
,
entity
.
getDeptId
());
stmt
.
bindLong
(
5
6
,
entity
.
getServiceCharge
());
stmt
.
bindLong
(
5
7
,
entity
.
getConditions
());
stmt
.
bindLong
(
5
8
,
entity
.
getIsRt
());
stmt
.
bindLong
(
59
,
entity
.
getDeletes
());
stmt
.
bindLong
(
6
0
,
entity
.
getIsTimingFood
());
stmt
.
bindLong
(
6
1
,
entity
.
getMinLongTime
());
stmt
.
bindLong
(
6
2
,
entity
.
getUnitTime
());
stmt
.
bindDouble
(
6
3
,
entity
.
getUnitPrice
());
stmt
.
bindLong
(
6
4
,
entity
.
getFreeLongTime
());
stmt
.
bindString
(
40
,
printSeting
);
}
stmt
.
bindLong
(
4
1
,
entity
.
getIsPrintQueueCode
());
stmt
.
bindLong
(
4
2
,
entity
.
getQueueHeadId
());
stmt
.
bindLong
(
4
3
,
entity
.
getApprove
());
stmt
.
bindLong
(
4
4
,
entity
.
getPrintFont
());
stmt
.
bindLong
(
4
5
,
entity
.
getAdvPrice
());
stmt
.
bindLong
(
4
6
,
entity
.
getPrintToBill
());
stmt
.
bindDouble
(
4
7
,
entity
.
getPointsAdd
());
stmt
.
bindLong
(
4
8
,
entity
.
getPointsRatio
());
stmt
.
bindDouble
(
4
9
,
entity
.
getPointsRedeem
());
stmt
.
bindLong
(
50
,
entity
.
getKtPrintMainItem
());
stmt
.
bindLong
(
5
1
,
entity
.
getKtShowPrice
());
stmt
.
bindLong
(
5
2
,
entity
.
getPrintTo
());
stmt
.
bindLong
(
5
3
,
entity
.
getToPax
());
stmt
.
bindLong
(
5
4
,
entity
.
getFoodType
());
stmt
.
bindLong
(
5
5
,
entity
.
getMajorMainId
());
stmt
.
bindLong
(
5
6
,
entity
.
getDeptId
());
stmt
.
bindLong
(
5
7
,
entity
.
getServiceCharge
());
stmt
.
bindLong
(
5
8
,
entity
.
getConditions
());
stmt
.
bindLong
(
5
9
,
entity
.
getIsRt
());
stmt
.
bindLong
(
60
,
entity
.
getDeletes
());
stmt
.
bindLong
(
6
1
,
entity
.
getIsTimingFood
());
stmt
.
bindLong
(
6
2
,
entity
.
getMinLongTime
());
stmt
.
bindLong
(
6
3
,
entity
.
getUnitTime
());
stmt
.
bindDouble
(
6
4
,
entity
.
getUnitPrice
());
stmt
.
bindLong
(
6
5
,
entity
.
getFreeLongTime
());
java
.
util
.
Date
freePeriodBegin
=
entity
.
getFreePeriodBegin
();
if
(
freePeriodBegin
!=
null
)
{
stmt
.
bindLong
(
6
5
,
freePeriodBegin
.
getTime
());
stmt
.
bindLong
(
6
6
,
freePeriodBegin
.
getTime
());
}
stmt
.
bindLong
(
6
6
,
entity
.
getIsStatistic
());
stmt
.
bindLong
(
6
7
,
entity
.
getColorId
());
stmt
.
bindLong
(
6
7
,
entity
.
getIsStatistic
());
stmt
.
bindLong
(
6
8
,
entity
.
getColorId
());
}
@Override
...
...
@@ -500,64 +512,65 @@ public class FoodDao extends AbstractDao<Food, Long> {
cursor
.
isNull
(
offset
+
6
)
?
null
:
cursor
.
getString
(
offset
+
6
),
// foodName1
cursor
.
isNull
(
offset
+
7
)
?
null
:
cursor
.
getString
(
offset
+
7
),
// foodName2
cursor
.
isNull
(
offset
+
8
)
?
null
:
cursor
.
getString
(
offset
+
8
),
// plu
cursor
.
isNull
(
offset
+
9
)
?
null
:
cursor
.
getString
(
offset
+
9
),
// posFid
cursor
.
isNull
(
offset
+
10
)
?
null
:
cursor
.
getString
(
offset
+
10
),
// foodDesc
cursor
.
getLong
(
offset
+
11
),
// limitAmount
cursor
.
getLong
(
offset
+
12
),
// limitType
cursor
.
isNull
(
offset
+
13
)
?
null
:
cursor
.
getString
(
offset
+
13
),
// foodSummary
cursor
.
getLong
(
offset
+
14
),
// invisible
(
byte
)
cursor
.
getShort
(
offset
+
15
),
// autoMod
cursor
.
getDouble
(
offset
+
16
),
// price
cursor
.
getDouble
(
offset
+
17
),
// marketPrice
cursor
.
getDouble
(
offset
+
18
),
// lunchboxPrice
cursor
.
isNull
(
offset
+
19
)
?
null
:
cursor
.
getString
(
offset
+
19
),
// imgUrlSmall
cursor
.
isNull
(
offset
+
20
)
?
null
:
cursor
.
getString
(
offset
+
20
),
// imageurl
cursor
.
getLong
(
offset
+
21
),
// riceponInvisible
cursor
.
getDouble
(
offset
+
22
),
// cost
cursor
.
getLong
(
offset
+
23
),
// like
cursor
.
getLong
(
offset
+
24
),
// totalSold
cursor
.
getLong
(
offset
+
25
),
// isSold
cursor
.
isNull
(
offset
+
26
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
26
)),
// startDate
cursor
.
isNull
(
offset
+
27
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
27
)),
// endDate
cursor
.
isNull
(
offset
+
28
)
?
null
:
cursor
.
getString
(
offset
+
28
),
// createBy
cursor
.
isNull
(
offset
+
29
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
29
)),
// createTime
cursor
.
isNull
(
offset
+
30
)
?
null
:
cursor
.
getString
(
offset
+
30
),
// updateBy
cursor
.
isNull
(
offset
+
31
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
31
)),
// updateTime
cursor
.
getLong
(
offset
+
32
),
// periodId
cursor
.
getLong
(
offset
+
33
),
// ableDiscount
cursor
.
getLong
(
offset
+
34
),
// takeaway
cursor
.
getLong
(
offset
+
35
),
// blueEdit
cursor
.
getLong
(
offset
+
36
),
// cartEdit
cursor
.
getLong
(
offset
+
37
),
// autoMerge
cursor
.
isNull
(
offset
+
38
)
?
null
:
cursor
.
getString
(
offset
+
38
),
// printSeting
cursor
.
getLong
(
offset
+
39
),
// isPrintQueueCode
cursor
.
getLong
(
offset
+
40
),
// queueHeadId
cursor
.
getLong
(
offset
+
41
),
// approve
cursor
.
getLong
(
offset
+
42
),
// printFont
cursor
.
getLong
(
offset
+
43
),
// advPrice
cursor
.
getLong
(
offset
+
44
),
// printToBill
cursor
.
getDouble
(
offset
+
45
),
// pointsAdd
cursor
.
getLong
(
offset
+
46
),
// pointsRatio
cursor
.
getDouble
(
offset
+
47
),
// pointsRedeem
cursor
.
getLong
(
offset
+
48
),
// ktPrintMainItem
cursor
.
getLong
(
offset
+
49
),
// ktShowPrice
cursor
.
getLong
(
offset
+
50
),
// printTo
cursor
.
getLong
(
offset
+
51
),
// toPax
cursor
.
getLong
(
offset
+
52
),
// foodType
cursor
.
getLong
(
offset
+
53
),
// majorMainId
cursor
.
getLong
(
offset
+
54
),
// deptId
(
byte
)
cursor
.
getShort
(
offset
+
55
),
// serviceCharge
cursor
.
getLong
(
offset
+
56
),
// conditions
cursor
.
getLong
(
offset
+
57
),
// isRt
cursor
.
getLong
(
offset
+
58
),
// deletes
cursor
.
getLong
(
offset
+
59
),
// isTimingFood
cursor
.
getLong
(
offset
+
60
),
// minLongTime
cursor
.
getLong
(
offset
+
61
),
// unitTime
cursor
.
getDouble
(
offset
+
62
),
// unitPrice
cursor
.
getLong
(
offset
+
63
),
// freeLongTime
cursor
.
isNull
(
offset
+
64
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
64
)),
// freePeriodBegin
cursor
.
getLong
(
offset
+
65
),
// isStatistic
cursor
.
getLong
(
offset
+
66
)
// colorId
cursor
.
isNull
(
offset
+
9
)
?
null
:
cursor
.
getInt
(
offset
+
9
),
// customType
cursor
.
isNull
(
offset
+
10
)
?
null
:
cursor
.
getString
(
offset
+
10
),
// posFid
cursor
.
isNull
(
offset
+
11
)
?
null
:
cursor
.
getString
(
offset
+
11
),
// foodDesc
cursor
.
getLong
(
offset
+
12
),
// limitAmount
cursor
.
getLong
(
offset
+
13
),
// limitType
cursor
.
isNull
(
offset
+
14
)
?
null
:
cursor
.
getString
(
offset
+
14
),
// foodSummary
cursor
.
getLong
(
offset
+
15
),
// invisible
(
byte
)
cursor
.
getShort
(
offset
+
16
),
// autoMod
cursor
.
getDouble
(
offset
+
17
),
// price
cursor
.
getDouble
(
offset
+
18
),
// marketPrice
cursor
.
getDouble
(
offset
+
19
),
// lunchboxPrice
cursor
.
isNull
(
offset
+
20
)
?
null
:
cursor
.
getString
(
offset
+
20
),
// imgUrlSmall
cursor
.
isNull
(
offset
+
21
)
?
null
:
cursor
.
getString
(
offset
+
21
),
// imageurl
cursor
.
getLong
(
offset
+
22
),
// riceponInvisible
cursor
.
getDouble
(
offset
+
23
),
// cost
cursor
.
getLong
(
offset
+
24
),
// like
cursor
.
getLong
(
offset
+
25
),
// totalSold
cursor
.
getLong
(
offset
+
26
),
// isSold
cursor
.
isNull
(
offset
+
27
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
27
)),
// startDate
cursor
.
isNull
(
offset
+
28
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
28
)),
// endDate
cursor
.
isNull
(
offset
+
29
)
?
null
:
cursor
.
getString
(
offset
+
29
),
// createBy
cursor
.
isNull
(
offset
+
30
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
30
)),
// createTime
cursor
.
isNull
(
offset
+
31
)
?
null
:
cursor
.
getString
(
offset
+
31
),
// updateBy
cursor
.
isNull
(
offset
+
32
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
32
)),
// updateTime
cursor
.
getLong
(
offset
+
33
),
// periodId
cursor
.
getLong
(
offset
+
34
),
// ableDiscount
cursor
.
getLong
(
offset
+
35
),
// takeaway
cursor
.
getLong
(
offset
+
36
),
// blueEdit
cursor
.
getLong
(
offset
+
37
),
// cartEdit
cursor
.
getLong
(
offset
+
38
),
// autoMerge
cursor
.
isNull
(
offset
+
39
)
?
null
:
cursor
.
getString
(
offset
+
39
),
// printSeting
cursor
.
getLong
(
offset
+
40
),
// isPrintQueueCode
cursor
.
getLong
(
offset
+
41
),
// queueHeadId
cursor
.
getLong
(
offset
+
42
),
// approve
cursor
.
getLong
(
offset
+
43
),
// printFont
cursor
.
getLong
(
offset
+
44
),
// advPrice
cursor
.
getLong
(
offset
+
45
),
// printToBill
cursor
.
getDouble
(
offset
+
46
),
// pointsAdd
cursor
.
getLong
(
offset
+
47
),
// pointsRatio
cursor
.
getDouble
(
offset
+
48
),
// pointsRedeem
cursor
.
getLong
(
offset
+
49
),
// ktPrintMainItem
cursor
.
getLong
(
offset
+
50
),
// ktShowPrice
cursor
.
getLong
(
offset
+
51
),
// printTo
cursor
.
getLong
(
offset
+
52
),
// toPax
cursor
.
getLong
(
offset
+
53
),
// foodType
cursor
.
getLong
(
offset
+
54
),
// majorMainId
cursor
.
getLong
(
offset
+
55
),
// deptId
(
byte
)
cursor
.
getShort
(
offset
+
56
),
// serviceCharge
cursor
.
getLong
(
offset
+
57
),
// conditions
cursor
.
getLong
(
offset
+
58
),
// isRt
cursor
.
getLong
(
offset
+
59
),
// deletes
cursor
.
getLong
(
offset
+
60
),
// isTimingFood
cursor
.
getLong
(
offset
+
61
),
// minLongTime
cursor
.
getLong
(
offset
+
62
),
// unitTime
cursor
.
getDouble
(
offset
+
63
),
// unitPrice
cursor
.
getLong
(
offset
+
64
),
// freeLongTime
cursor
.
isNull
(
offset
+
65
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
65
)),
// freePeriodBegin
cursor
.
getLong
(
offset
+
66
),
// isStatistic
cursor
.
getLong
(
offset
+
67
)
// colorId
);
return
entity
;
}
...
...
@@ -573,64 +586,65 @@ public class FoodDao extends AbstractDao<Food, Long> {
entity
.
setFoodName1
(
cursor
.
isNull
(
offset
+
6
)
?
null
:
cursor
.
getString
(
offset
+
6
));
entity
.
setFoodName2
(
cursor
.
isNull
(
offset
+
7
)
?
null
:
cursor
.
getString
(
offset
+
7
));
entity
.
setPlu
(
cursor
.
isNull
(
offset
+
8
)
?
null
:
cursor
.
getString
(
offset
+
8
));
entity
.
setPosFid
(
cursor
.
isNull
(
offset
+
9
)
?
null
:
cursor
.
getString
(
offset
+
9
));
entity
.
setFoodDesc
(
cursor
.
isNull
(
offset
+
10
)
?
null
:
cursor
.
getString
(
offset
+
10
));
entity
.
setLimitAmount
(
cursor
.
getLong
(
offset
+
11
));
entity
.
setLimitType
(
cursor
.
getLong
(
offset
+
12
));
entity
.
setFoodSummary
(
cursor
.
isNull
(
offset
+
13
)
?
null
:
cursor
.
getString
(
offset
+
13
));
entity
.
setInvisible
(
cursor
.
getLong
(
offset
+
14
));
entity
.
setAutoMod
((
byte
)
cursor
.
getShort
(
offset
+
15
));
entity
.
setPrice
(
cursor
.
getDouble
(
offset
+
16
));
entity
.
setMarketPrice
(
cursor
.
getDouble
(
offset
+
17
));
entity
.
setLunchboxPrice
(
cursor
.
getDouble
(
offset
+
18
));
entity
.
setImgUrlSmall
(
cursor
.
isNull
(
offset
+
19
)
?
null
:
cursor
.
getString
(
offset
+
19
));
entity
.
setImageurl
(
cursor
.
isNull
(
offset
+
20
)
?
null
:
cursor
.
getString
(
offset
+
20
));
entity
.
setRiceponInvisible
(
cursor
.
getLong
(
offset
+
21
));
entity
.
setCost
(
cursor
.
getDouble
(
offset
+
22
));
entity
.
setLike
(
cursor
.
getLong
(
offset
+
23
));
entity
.
setTotalSold
(
cursor
.
getLong
(
offset
+
24
));
entity
.
setIsSold
(
cursor
.
getLong
(
offset
+
25
));
entity
.
setStartDate
(
cursor
.
isNull
(
offset
+
26
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
26
)));
entity
.
setEndDate
(
cursor
.
isNull
(
offset
+
27
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
27
)));
entity
.
setCreateBy
(
cursor
.
isNull
(
offset
+
28
)
?
null
:
cursor
.
getString
(
offset
+
28
));
entity
.
setCreateTime
(
cursor
.
isNull
(
offset
+
29
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
29
)));
entity
.
setUpdateBy
(
cursor
.
isNull
(
offset
+
30
)
?
null
:
cursor
.
getString
(
offset
+
30
));
entity
.
setUpdateTime
(
cursor
.
isNull
(
offset
+
31
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
31
)));
entity
.
setPeriodId
(
cursor
.
getLong
(
offset
+
32
));
entity
.
setAbleDiscount
(
cursor
.
getLong
(
offset
+
33
));
entity
.
setTakeaway
(
cursor
.
getLong
(
offset
+
34
));
entity
.
setBlueEdit
(
cursor
.
getLong
(
offset
+
35
));
entity
.
setCartEdit
(
cursor
.
getLong
(
offset
+
36
));
entity
.
setAutoMerge
(
cursor
.
getLong
(
offset
+
37
));
entity
.
setPrintSeting
(
cursor
.
isNull
(
offset
+
38
)
?
null
:
cursor
.
getString
(
offset
+
38
));
entity
.
setIsPrintQueueCode
(
cursor
.
getLong
(
offset
+
39
));
entity
.
setQueueHeadId
(
cursor
.
getLong
(
offset
+
40
));
entity
.
setApprove
(
cursor
.
getLong
(
offset
+
41
));
entity
.
setPrintFont
(
cursor
.
getLong
(
offset
+
42
));
entity
.
setAdvPrice
(
cursor
.
getLong
(
offset
+
43
));
entity
.
setPrintToBill
(
cursor
.
getLong
(
offset
+
44
));
entity
.
setPointsAdd
(
cursor
.
getDouble
(
offset
+
45
));
entity
.
setPointsRatio
(
cursor
.
getLong
(
offset
+
46
));
entity
.
setPointsRedeem
(
cursor
.
getDouble
(
offset
+
47
));
entity
.
setKtPrintMainItem
(
cursor
.
getLong
(
offset
+
48
));
entity
.
setKtShowPrice
(
cursor
.
getLong
(
offset
+
49
));
entity
.
setPrintTo
(
cursor
.
getLong
(
offset
+
50
));
entity
.
setToPax
(
cursor
.
getLong
(
offset
+
51
));
entity
.
setFoodType
(
cursor
.
getLong
(
offset
+
52
));
entity
.
setMajorMainId
(
cursor
.
getLong
(
offset
+
53
));
entity
.
setDeptId
(
cursor
.
getLong
(
offset
+
54
));
entity
.
setServiceCharge
((
byte
)
cursor
.
getShort
(
offset
+
55
));
entity
.
setConditions
(
cursor
.
getLong
(
offset
+
56
));
entity
.
setIsRt
(
cursor
.
getLong
(
offset
+
57
));
entity
.
setDeletes
(
cursor
.
getLong
(
offset
+
58
));
entity
.
setIsTimingFood
(
cursor
.
getLong
(
offset
+
59
));
entity
.
setMinLongTime
(
cursor
.
getLong
(
offset
+
60
));
entity
.
setUnitTime
(
cursor
.
getLong
(
offset
+
61
));
entity
.
setUnitPrice
(
cursor
.
getDouble
(
offset
+
62
));
entity
.
setFreeLongTime
(
cursor
.
getLong
(
offset
+
63
));
entity
.
setFreePeriodBegin
(
cursor
.
isNull
(
offset
+
64
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
64
)));
entity
.
setIsStatistic
(
cursor
.
getLong
(
offset
+
65
));
entity
.
setColorId
(
cursor
.
getLong
(
offset
+
66
));
entity
.
setCustomType
(
cursor
.
isNull
(
offset
+
9
)
?
null
:
cursor
.
getInt
(
offset
+
9
));
entity
.
setPosFid
(
cursor
.
isNull
(
offset
+
10
)
?
null
:
cursor
.
getString
(
offset
+
10
));
entity
.
setFoodDesc
(
cursor
.
isNull
(
offset
+
11
)
?
null
:
cursor
.
getString
(
offset
+
11
));
entity
.
setLimitAmount
(
cursor
.
getLong
(
offset
+
12
));
entity
.
setLimitType
(
cursor
.
getLong
(
offset
+
13
));
entity
.
setFoodSummary
(
cursor
.
isNull
(
offset
+
14
)
?
null
:
cursor
.
getString
(
offset
+
14
));
entity
.
setInvisible
(
cursor
.
getLong
(
offset
+
15
));
entity
.
setAutoMod
((
byte
)
cursor
.
getShort
(
offset
+
16
));
entity
.
setPrice
(
cursor
.
getDouble
(
offset
+
17
));
entity
.
setMarketPrice
(
cursor
.
getDouble
(
offset
+
18
));
entity
.
setLunchboxPrice
(
cursor
.
getDouble
(
offset
+
19
));
entity
.
setImgUrlSmall
(
cursor
.
isNull
(
offset
+
20
)
?
null
:
cursor
.
getString
(
offset
+
20
));
entity
.
setImageurl
(
cursor
.
isNull
(
offset
+
21
)
?
null
:
cursor
.
getString
(
offset
+
21
));
entity
.
setRiceponInvisible
(
cursor
.
getLong
(
offset
+
22
));
entity
.
setCost
(
cursor
.
getDouble
(
offset
+
23
));
entity
.
setLike
(
cursor
.
getLong
(
offset
+
24
));
entity
.
setTotalSold
(
cursor
.
getLong
(
offset
+
25
));
entity
.
setIsSold
(
cursor
.
getLong
(
offset
+
26
));
entity
.
setStartDate
(
cursor
.
isNull
(
offset
+
27
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
27
)));
entity
.
setEndDate
(
cursor
.
isNull
(
offset
+
28
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
28
)));
entity
.
setCreateBy
(
cursor
.
isNull
(
offset
+
29
)
?
null
:
cursor
.
getString
(
offset
+
29
));
entity
.
setCreateTime
(
cursor
.
isNull
(
offset
+
30
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
30
)));
entity
.
setUpdateBy
(
cursor
.
isNull
(
offset
+
31
)
?
null
:
cursor
.
getString
(
offset
+
31
));
entity
.
setUpdateTime
(
cursor
.
isNull
(
offset
+
32
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
32
)));
entity
.
setPeriodId
(
cursor
.
getLong
(
offset
+
33
));
entity
.
setAbleDiscount
(
cursor
.
getLong
(
offset
+
34
));
entity
.
setTakeaway
(
cursor
.
getLong
(
offset
+
35
));
entity
.
setBlueEdit
(
cursor
.
getLong
(
offset
+
36
));
entity
.
setCartEdit
(
cursor
.
getLong
(
offset
+
37
));
entity
.
setAutoMerge
(
cursor
.
getLong
(
offset
+
38
));
entity
.
setPrintSeting
(
cursor
.
isNull
(
offset
+
39
)
?
null
:
cursor
.
getString
(
offset
+
39
));
entity
.
setIsPrintQueueCode
(
cursor
.
getLong
(
offset
+
40
));
entity
.
setQueueHeadId
(
cursor
.
getLong
(
offset
+
41
));
entity
.
setApprove
(
cursor
.
getLong
(
offset
+
42
));
entity
.
setPrintFont
(
cursor
.
getLong
(
offset
+
43
));
entity
.
setAdvPrice
(
cursor
.
getLong
(
offset
+
44
));
entity
.
setPrintToBill
(
cursor
.
getLong
(
offset
+
45
));
entity
.
setPointsAdd
(
cursor
.
getDouble
(
offset
+
46
));
entity
.
setPointsRatio
(
cursor
.
getLong
(
offset
+
47
));
entity
.
setPointsRedeem
(
cursor
.
getDouble
(
offset
+
48
));
entity
.
setKtPrintMainItem
(
cursor
.
getLong
(
offset
+
49
));
entity
.
setKtShowPrice
(
cursor
.
getLong
(
offset
+
50
));
entity
.
setPrintTo
(
cursor
.
getLong
(
offset
+
51
));
entity
.
setToPax
(
cursor
.
getLong
(
offset
+
52
));
entity
.
setFoodType
(
cursor
.
getLong
(
offset
+
53
));
entity
.
setMajorMainId
(
cursor
.
getLong
(
offset
+
54
));
entity
.
setDeptId
(
cursor
.
getLong
(
offset
+
55
));
entity
.
setServiceCharge
((
byte
)
cursor
.
getShort
(
offset
+
56
));
entity
.
setConditions
(
cursor
.
getLong
(
offset
+
57
));
entity
.
setIsRt
(
cursor
.
getLong
(
offset
+
58
));
entity
.
setDeletes
(
cursor
.
getLong
(
offset
+
59
));
entity
.
setIsTimingFood
(
cursor
.
getLong
(
offset
+
60
));
entity
.
setMinLongTime
(
cursor
.
getLong
(
offset
+
61
));
entity
.
setUnitTime
(
cursor
.
getLong
(
offset
+
62
));
entity
.
setUnitPrice
(
cursor
.
getDouble
(
offset
+
63
));
entity
.
setFreeLongTime
(
cursor
.
getLong
(
offset
+
64
));
entity
.
setFreePeriodBegin
(
cursor
.
isNull
(
offset
+
65
)
?
null
:
new
java
.
util
.
Date
(
cursor
.
getLong
(
offset
+
65
)));
entity
.
setIsStatistic
(
cursor
.
getLong
(
offset
+
66
));
entity
.
setColorId
(
cursor
.
getLong
(
offset
+
67
));
}
@Override
...
...
library-database/src/main/java/com/gingersoft/gsa/cloud/database/utils/FoodDaoUtils.java
View file @
d088025b
...
...
@@ -13,6 +13,8 @@ import org.greenrobot.greendao.query.QueryBuilder;
import
java.util.List
;
import
io.reactivex.Observable
;
/**
* 作者:ELEGANT_BIN
* 版本:1.6.0
...
...
@@ -206,7 +208,6 @@ public class FoodDaoUtils {
public
List
<
Food
>
queryFoodByQueryBuilder
(
long
parentId
,
int
foodSummary
)
{
QueryBuilder
<
Food
>
queryBuilder
=
mManager
.
getDaoSession
().
queryBuilder
(
Food
.
class
);
long
currentTime
=
System
.
currentTimeMillis
();
// queryBuilder.join(ColorBeanDao.Properties.AndroidColor, Food.class, FoodDao.Properties.ColorId);
queryBuilder
.
where
(
queryBuilder
.
and
(
FoodDao
.
Properties
.
ParentId
.
eq
(
parentId
),
...
...
library-order/src/main/java/com/gingersoft/gsa/cloud/order/bean/discount/CouponDiscountBean.java
View file @
d088025b
...
...
@@ -15,6 +15,8 @@ import lombok.Data;
public
class
CouponDiscountBean
{
private
Long
id
;
// 记录ID
private
Long
discountRecordId
;
// 店鋪ID
private
Long
restaurantId
;
// 品牌ID
...
...
library-order/src/main/java/com/gingersoft/gsa/cloud/order/bean/request/MealOrderPayRequest.java
View file @
d088025b
...
...
@@ -72,18 +72,13 @@ public class MealOrderPayRequest implements Parcelable{
private
double
tipsPrice
;
/**積分支付 所消費的積分*/
private
Double
consumptionPoints
;
/**報表是否計算人數*/
private
Integer
whetherReportCount
;
/**支付名稱*/
private
String
payName
;
public
OrderPay
()
{
}
@Override
public
String
toString
()
{
return
"OrderPay{"
+
"payType="
+
payType
+
", amount="
+
amount
+
", tipsPrice="
+
tipsPrice
+
", consumptionPoints="
+
consumptionPoints
+
'}'
;
public
OrderPay
()
{
}
@Override
...
...
library-order/src/main/java/com/gingersoft/gsa/cloud/order/bean/response/OrderDiscountResponse.java
View file @
d088025b
...
...
@@ -14,6 +14,10 @@ import lombok.Data;
public
class
OrderDiscountResponse
implements
Serializable
{
/**
* 折扣记录ID
*/
private
Long
id
;
/**
* 餐廳折扣ID
*/
private
Long
discountId
;
...
...
library-order/src/main/java/com/gingersoft/gsa/cloud/order/order/DoshokuOrder.java
View file @
d088025b
...
...
@@ -26,7 +26,7 @@ import lombok.Setter;
@Setter
public
class
DoshokuOrder
extends
BaseOrder
{
private
static
DoshokuOrder
doshokuOrder
;
private
volatile
static
DoshokuOrder
doshokuOrder
;
public
static
DoshokuOrder
getInstance
()
{
if
(
doshokuOrder
==
null
)
{
...
...
@@ -60,6 +60,10 @@ public class DoshokuOrder extends BaseOrder {
*/
private
List
<
DeleteOrderRequest
>
deleteMealOrders
;
/**
* 記錄刪除的折扣Id
*/
private
List
<
Long
>
deleteDiscountIds
;
/**
* 本次送單食品,用於打印
*/
private
List
<
OrderDetail
>
newFoodList
=
new
ArrayList
<>();
...
...
@@ -118,6 +122,10 @@ public class DoshokuOrder extends BaseOrder {
this
.
deleteMealOrders
=
deleteMealOrders
;
}
public
void
addDeleteDiscountId
(
Long
id
)
{
getDeleteDiscountIds
().
add
(
id
);
}
public
Date
getOpenTableTime
()
{
if
(
orderPlaced
!=
null
&&
orderPlaced
.
getCreateTime
()
!=
null
)
{
return
new
Date
(
orderPlaced
.
getCreateTime
());
...
...
@@ -132,6 +140,13 @@ public class DoshokuOrder extends BaseOrder {
return
deleteMealOrders
;
}
public
List
<
Long
>
getDeleteDiscountIds
()
{
if
(
deleteDiscountIds
==
null
)
{
deleteDiscountIds
=
new
ArrayList
<>();
}
return
deleteDiscountIds
;
}
public
boolean
needUpdateMemberInfo
()
{
if
(
TextUtils
.
isEmpty
(
memberUpdateStatus
))
{
return
false
;
...
...
@@ -153,6 +168,9 @@ public class DoshokuOrder extends BaseOrder {
if
(
deleteMealOrders
!=
null
)
{
deleteMealOrders
.
clear
();
}
if
(
deleteDiscountIds
!=
null
)
{
deleteDiscountIds
.
clear
();
}
if
(
newFoodList
!=
null
)
{
newFoodList
.
clear
();
}
...
...
library-ui/src/main/java/com/gingersoft/gsa/cloud/ui/recylcler/event/RecyItemTouchHelperCallback.java
View file @
d088025b
package
com
.
gingersoft
.
gsa
.
cloud
.
ui
.
recylcler
.
event
;
import
android.graphics.Color
;
import
androidx.recyclerview.widget.GridLayoutManager
;
import
androidx.recyclerview.widget.ItemTouchHelper
;
import
androidx.recyclerview.widget.RecyclerView
;
import
com.gingersoft.gsa.cloud.common.core.table.TableBean
;
import
com.gingersoft.gsa.cloud.common.core.table.TableManagerItem
;
import
com.gingersoft.gsa.cloud.common.logan.LoganManager
;
import
com.gingersoft.gsa.cloud.ui.bean.view.SectionHeader
;
import
com.jess.arms.base.DefaultAdapter
;
import
com.qmuiteam.qmui.widget.section.QMUIDefaultStickySectionAdapter
;
import
com.qmuiteam.qmui.widget.section.QMUISection
;
...
...
@@ -11,6 +17,9 @@ import com.qmuiteam.qmui.widget.section.QMUIStickySectionAdapter;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.concurrent.TimeUnit
;
import
lombok.SneakyThrows
;
/**
* 作者:ELEGANT_BIN
...
...
@@ -25,6 +34,7 @@ public class RecyItemTouchHelperCallback<H extends QMUISection.Model<H>, T exten
private
RecyclerView
.
Adapter
mAdapter
;
boolean
isSwipeEnable
;
boolean
isFirstDragUnable
;
private
String
ids
;
public
RecyItemTouchHelperCallback
(
RecyclerView
.
Adapter
adapter
)
{
mAdapter
=
adapter
;
...
...
@@ -74,14 +84,12 @@ public class RecyItemTouchHelperCallback<H extends QMUISection.Model<H>, T exten
if
((
fromIndex
+
1
)
==
list
.
size
())
{
return
false
;
}
for
(
int
i
=
fromIndex
;
i
<
toIndex
;
i
++)
{
Collections
.
swap
(
list
,
i
,
i
+
1
);
}
LoganManager
.
w_tableMode
(
TAG
,
LoganManager
.
EVENT_SCOLL
+
"調整餐檯排序fromIndex="
+
fromIndex
+
" toIndex="
+
toIndex
);
Collections
.
swap
(
list
,
fromIndex
,
toIndex
);
ids
=
getTableIds
((
List
<
TableManagerItem
>)
list
);
}
else
{
for
(
int
i
=
fromPosition
;
i
<
toPosition
;
i
++)
{
Collections
.
swap
(((
DefaultAdapter
)
mAdapter
).
getInfos
(),
i
,
i
+
1
);
}
Collections
.
swap
(((
DefaultAdapter
)
mAdapter
).
getInfos
(),
fromPosition
,
toPosition
);
ids
=
null
;
}
}
else
{
if
(
mAdapter
instanceof
QMUIStickySectionAdapter
)
{
...
...
@@ -99,20 +107,34 @@ public class RecyItemTouchHelperCallback<H extends QMUISection.Model<H>, T exten
if
((
fromIndex
+
1
)
==
list
.
size
())
{
return
false
;
}
for
(
int
i
=
fromIndex
;
i
>
toIndex
;
i
--)
{
Collections
.
swap
(
list
,
i
,
i
-
1
);
}
LoganManager
.
w_tableMode
(
TAG
,
LoganManager
.
EVENT_SCOLL
+
"調整餐檯排序fromIndex="
+
fromIndex
+
" toIndex="
+
toIndex
);
Collections
.
swap
(
list
,
fromIndex
,
toIndex
);
ids
=
getTableIds
((
List
<
TableManagerItem
>)
list
);
}
else
{
for
(
int
i
=
fromPosition
;
i
>
toPosition
;
i
--)
{
Collections
.
swap
(((
DefaultAdapter
)
mAdapter
).
getInfos
(),
i
,
i
-
1
);
}
Collections
.
swap
(((
DefaultAdapter
)
mAdapter
).
getInfos
(),
fromPosition
,
toPosition
);
ids
=
null
;
}
}
mAdapter
.
notifyItemMoved
(
fromPosition
,
toPosition
);
return
true
;
}
private
String
getTableIds
(
List
<
TableManagerItem
>
qmuiSectionList
)
{
StringBuilder
builder
=
new
StringBuilder
();
for
(
TableManagerItem
tableItem
:
qmuiSectionList
)
{
if
(
tableItem
.
getLayoutType
()
==
0
)
{
builder
.
append
(
tableItem
.
getId
());
builder
.
append
(
","
);
}
}
String
str
=
builder
.
toString
();
if
(
str
.
endsWith
(
","
))
{
str
=
str
.
substring
(
0
,
str
.
length
()
-
1
);
}
return
str
;
}
@Override
public
void
onSwiped
(
RecyclerView
.
ViewHolder
viewHolder
,
int
direction
)
{
int
adapterPosition
=
viewHolder
.
getAdapterPosition
();
...
...
@@ -138,7 +160,7 @@ public class RecyItemTouchHelperCallback<H extends QMUISection.Model<H>, T exten
viewHolder
.
itemView
.
setBackgroundColor
(
Color
.
WHITE
);
// mAdapter.notifyDataSetChanged();
if
(
onMoveListener
!=
null
)
{
onMoveListener
.
onMoveFinish
(
mAdapter
);
onMoveListener
.
onMoveFinish
(
mAdapter
,
ids
);
}
}
...
...
@@ -159,6 +181,6 @@ public class RecyItemTouchHelperCallback<H extends QMUISection.Model<H>, T exten
}
public
interface
onMoveListener
{
void
onMoveFinish
(
RecyclerView
.
Adapter
adapter
);
void
onMoveFinish
(
RecyclerView
.
Adapter
adapter
,
String
ids
);
}
}
\ No newline at end of file
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