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
61e61931
Commit
61e61931
authored
Aug 03, 2021
by
jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 修复
parent
3044f4f2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
8 deletions
+11
-8
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/presenter/DishesPresenter.java
+0
-1
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/presenter/ShoppingCatPresenter.java
+6
-2
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/DishesFragment.java
+3
-3
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/FunctionListFragment.java
+1
-1
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/food/NewFoodIngredientsFragment.java
+1
-1
No files found.
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/presenter/DishesPresenter.java
View file @
61e61931
...
...
@@ -5,7 +5,6 @@ import android.app.Application;
import
com.gingersoft.gsa.cloud.common.bean.BaseResult
;
import
com.gingersoft.gsa.cloud.common.constans.AppConstant
;
import
com.gingersoft.gsa.cloud.common.utils.JsonUtils
;
import
com.gingersoft.gsa.cloud.common.utils.log.LogUtil
;
import
com.gingersoft.gsa.cloud.common.utils.other.TextUtil
;
import
com.gingersoft.supply_chain.mvp.bean.DishDetailBean
;
import
com.gingersoft.supply_chain.mvp.bean.DishDetailResultBean
;
...
...
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/presenter/ShoppingCatPresenter.java
View file @
61e61931
...
...
@@ -8,6 +8,7 @@ import com.gingersoft.gsa.cloud.common.constans.AppConstant;
import
com.gingersoft.gsa.cloud.common.utils.JsonUtils
;
import
com.gingersoft.gsa.cloud.common.utils.MoneyUtil
;
import
com.gingersoft.gsa.cloud.common.utils.gson.GsonUtils
;
import
com.gingersoft.gsa.cloud.common.utils.log.LogUtil
;
import
com.gingersoft.gsa.cloud.common.utils.other.TextUtil
;
import
com.gingersoft.gsa.cloud.common.utils.time.TimeUtils
;
import
com.gingersoft.supply_chain.mvp.bean.ConfirmOrderBean
;
...
...
@@ -146,16 +147,19 @@ public class ShoppingCatPresenter extends BasePresenter<ShoppingCatContract.Mode
// mod by zjs 默認取下一天時間 改爲 當前時間加上預計多少時間之後的發貨時間
// shoppingCartBean.setInitialShippingTime(TimeUtils.getNextDay(1));
try
{
int
deliveryTime
=
Integer
.
parseInt
(
food
.
getDeliveryTime
());
Float
deliveryTime
=
Float
.
parseFloat
(
food
.
getDeliveryTime
());
LogUtil
.
i
(
"zjs"
,
" food.getDeliveryTime()="
+
food
.
getDeliveryTime
()+
" deliveryTime="
+
deliveryTime
);
if
(
deliveryTime
<=
0
)
{
shoppingCartBean
.
setInitialShippingTime
(
TimeUtils
.
getNextDay
(
1
));
}
else
{
String
str
=
TimeUtils
.
getCurrentDateByOffset
(
TimeUtils
.
DEFAULT_DATE_FORMAT_YMDHM
.
toPattern
(),
Calendar
.
HOUR_OF_DAY
,
deliveryTime
);
int
deliveryMinute
=
(
int
)
(
deliveryTime
*
60
);
String
str
=
TimeUtils
.
getCurrentDateByOffset
(
TimeUtils
.
DEFAULT_DATE_FORMAT_YMDHM
.
toPattern
(),
Calendar
.
MINUTE
,
deliveryMinute
);
shoppingCartBean
.
setInitialShippingTime
(
str
);
}
}
catch
(
Exception
e
){
e
.
printStackTrace
();
shoppingCartBean
.
setInitialShippingTime
(
TimeUtils
.
getNextDay
(
1
));
LogUtil
.
e
(
"zjs"
,
" e"
+
e
.
getMessage
());
}
shoppingCartBean
.
setSelectFoodAmount
(
supplierTotalAmount
);
...
...
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/DishesFragment.java
View file @
61e61931
...
...
@@ -198,7 +198,7 @@ public class DishesFragment extends BaseSupplyChainFragment<DishesPresenter> imp
int
lastPost
=
pNode
.
getPos
()+
ppos
;
int
myPostion
=
position
-
ppos
;
boolean
isCur
=
position
==
lastPost
;
// LogUtil.
e
("ZJS"," lastPost="+lastPost+" myPostion="+myPostion+" isCur="+isCur );
// LogUtil.
i
("ZJS"," lastPost="+lastPost+" myPostion="+myPostion+" isCur="+isCur );
if
(!
isCur
)
{
//当前点击的不是上次点击的项目
DishNode
lastDishNode
=
(
DishNode
)
dishesTreeAdapter
.
getItem
(
lastPost
);
lastDishNode
.
setSelect
(
false
);
...
...
@@ -276,7 +276,7 @@ public class DishesFragment extends BaseSupplyChainFragment<DishesPresenter> imp
PurchaseFoodBean
newBean
=
purchaseFood
.
get
(
i
);
for
(
int
j
=
0
;
j
<
old
;
j
++)
{
DishDetailBean
oldBean
=
foodsOld
.
get
(
j
);
// LogUtil.
e
("zjs"," oldBean="+oldBean.toString()+" newBean="+newBean.toString());
// LogUtil.
i
("zjs"," oldBean="+oldBean.toString()+" newBean="+newBean.toString());
if
(
newBean
.
getId
()==
oldBean
.
getPurchaseFoodId
())
{
//选择了同一个食材
oldBean
.
setConsumeQuantity
(
oldBean
.
getConsumeQuantity
()+
newBean
.
getFoodQuantity
());
isNew
=
false
;
...
...
@@ -293,7 +293,7 @@ public class DishesFragment extends BaseSupplyChainFragment<DishesPresenter> imp
}
else
{
//全新
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
PurchaseFoodBean
newBean
=
purchaseFood
.
get
(
i
);
// LogUtil.
e
("zjs"," 全新 newBean="+newBean.toString());
// LogUtil.
i
("zjs"," 全新 newBean="+newBean.toString());
DishDetailBean
addNewBean
=
new
DishDetailBean
(
newBean
,
curSelectDishNode
);
foodsNew
.
add
(
addNewBean
);
}
...
...
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/FunctionListFragment.java
View file @
61e61931
...
...
@@ -108,7 +108,7 @@ public class FunctionListFragment extends BaseSupplyChainFragment<FunctionListPr
purchaseFunctionBeans
.
add
(
new
PurchaseFunctionBean
(
"庫存管理"
,
storage
));
List
<
Function
>
otherFunction
=
new
ArrayList
<>();
otherFunction
.
add
(
new
Function
(
"菜品Bo
o
m"
,
R
.
drawable
.
ic_inventory_inquiry
));
otherFunction
.
add
(
new
Function
(
"菜品Bom"
,
R
.
drawable
.
ic_inventory_inquiry
));
purchaseFunctionBeans
.
add
(
new
PurchaseFunctionBean
(
"其他功能"
,
otherFunction
));
...
...
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/food/NewFoodIngredientsFragment.java
View file @
61e61931
...
...
@@ -171,7 +171,7 @@ public class NewFoodIngredientsFragment extends BaseSupplyChainFragment<NewFoodI
@Override
public
void
initAdapter
()
{
infoMultiAdapter
=
new
InfoMultiAdapter
(
mContext
,
mPresenter
.
getFragmentInfo
(
mContext
,
(
v
,
hasFocus
)
->
{
// LogUtil.
e
("zjs"," initAdapter currentThread "+v.isPressed()+" hasFocus__"+v.hasFocus()+" hasFocus=="+hasFocus);
// LogUtil.
i
("zjs"," initAdapter currentThread "+v.isPressed()+" hasFocus__"+v.hasFocus()+" hasFocus=="+hasFocus);
if
(
hasFocus
&&
purchaseFoodBean
!=
null
)
{
Double
price
=
purchaseFoodBean
.
getUnitPrice
();
if
(
price
!=
null
&&
price
>
0
)
{
...
...
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