Commit b830b7e4 by 宁斌

1、首页切换餐厅 名字没变

2、删除食品完 再次点击删除按钮闪退问题
parent b9c5dcf3
package com.gingersoft.gsa.cloud.base.common.bean;
import java.util.List;
import java.util.Map;
import lombok.Data;
/**
* 作者:ELEGANT_BIN
* 版本:1.6.0
* 创建日期:2020-02-22
* 修订历史:2020-02-22
* 描述:
*/
@Data
public class DeleteOrderRequest {
private List<DeleteOrderRequest.DeleteBean> mapsDelete;
private long orderId;
private long tableId;
private String tableNumber;
private byte type;
private long reasonId;
@Data
public static class DeleteBean {
private long id;
private int number;
}
}
...@@ -192,7 +192,9 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl ...@@ -192,7 +192,9 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl
@Override @Override
protected void onRestart() { protected void onRestart() {
super.onRestart(); super.onRestart();
tvStoreName.setText(GsaCloudApplication.getRestaurantName(mContext)); String restaurantName = GsaCloudApplication.getRestaurantName(mContext);
tvStoreName.setText(restaurantName);
tvRestaurantName.setText(restaurantName);
} }
/** /**
...@@ -398,12 +400,12 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl ...@@ -398,12 +400,12 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl
.setActionName("showTableManageActivity") .setActionName("showTableManageActivity")
.build() .build()
.call(); .call();
} else if(name.equals("冷鏈接單")){ } else if (name.equals("冷鏈接單")) {
CC.obtainBuilder("Component.ColdChain") CC.obtainBuilder("Component.ColdChain")
.setActionName("Component.ColdChain") .setActionName("Component.ColdChain")
.build() .build()
.call(); .call();
} else if(name.equals("二維碼")){ } else if (name.equals("二維碼")) {
CC.obtainBuilder("Component.ColdChain") CC.obtainBuilder("Component.ColdChain")
.setActionName("Component.ColdChain") .setActionName("Component.ColdChain")
.build() .build()
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/tv_print_model_member_number"
style="@style/print_other_order_twenty_six_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:text="會員號碼:" />
<TextView
android:id="@+id/tv_print_model_member_name"
style="@style/print_other_order_twenty_six_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:text="會員名稱:" />
<TextView
android:id="@+id/tv_print_model_member_phone"
style="@style/print_other_order_twenty_six_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:text="會員電話:" />
<TextView
android:id="@+id/tv_print_model_oldPoints"
style="@style/print_other_order_twenty_six_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:text="上次積分:" />
<TextView
android:id="@+id/tv_print_model_addPoints"
style="@style/print_other_order_twenty_six_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:text="本次積分:" />
<TextView
android:id="@+id/tv_print_model_nowPoints"
style="@style/print_other_order_twenty_six_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:text="結餘積分:" />
<LinearLayout
android:id="@+id/ll_integral_qrcode"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:layout_marginTop="@dimen/dp_10">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:textSize="@dimen/dp_20"
android:text="請掃描二維碼" />
<ImageView
android:id="@+id/iv_integral_qrcode"
android:layout_width="@dimen/dp_180"
android:layout_height="@dimen/dp_180"
android:layout_marginTop="@dimen/dp_5"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:textColor="@color/black"
android:textSize="@dimen/dp_20"
android:text="《追加積分到個人賬戶》" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
...@@ -901,7 +901,7 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod ...@@ -901,7 +901,7 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
*/ */
public void restoreDeleteFood() { public void restoreDeleteFood() {
for (OrderDetail item : mOrderFoodList) { for (OrderDetail item : mOrderFoodList) {
if(!item.isModify()){ if (!item.isModify()) {
continue; continue;
} }
item.setNumber(item.getModifyBeforeNumber()); item.setNumber(item.getModifyBeforeNumber());
...@@ -1110,7 +1110,9 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod ...@@ -1110,7 +1110,9 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
if (!deleteFood.isNew()) { if (!deleteFood.isNew()) {
//TODO 刪除已下單食品 //TODO 刪除已下單食品
if (!deleteFood.isModify()) {
deleteWithOrderedFood(deleteFood); deleteWithOrderedFood(deleteFood);
}
} else { } else {
if (deleteStyle == 2) { if (deleteStyle == 2) {
mSelectMealAdapter.removeAllNewFoodItem(); mSelectMealAdapter.removeAllNewFoodItem();
......
...@@ -212,6 +212,8 @@ public class CancelFoodDialog extends Dialog { ...@@ -212,6 +212,8 @@ public class CancelFoodDialog extends Dialog {
} }
private int getCurrentProgress(int num) { private int getCurrentProgress(int num) {
if (maxCancelNumber == 0)
maxCancelNumber = 10;
int progress = num * 100 / maxCancelNumber; int progress = num * 100 / maxCancelNumber;
return progress; return progress;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment