Browse Source

修改取消订单问题

上海闵中
liup 1 month ago
parent
commit
579aba4eaa
1 changed files with 17 additions and 2 deletions
  1. +17
    -2
      app/src/main/java/com/bonait/bnframework/newui/fragment/main/HomeOrderFragment.java

+ 17
- 2
app/src/main/java/com/bonait/bnframework/newui/fragment/main/HomeOrderFragment.java View File

@@ -411,8 +411,13 @@ public class HomeOrderFragment extends BaseFragment {
NewToastUtil.getInstance().showToast("删除成功");
xCom.dismissX();


if(status==1){
stopCooking();
if(type==0){
stopCooking();
}else{
stopCooking2();
}
}
EventBus.getDefault().post(new FreshOrderEvent());
});
@@ -680,7 +685,7 @@ public class HomeOrderFragment extends BaseFragment {
}

/**
* 开始制作
* 取消订单 炒锅
*/
private void stopCooking(){
ExecuteTheRecipe.IsForcedEnd = true;
@@ -689,6 +694,16 @@ public class HomeOrderFragment extends BaseFragment {
ExecuteTheRecipe.IsStart = false;
}

/**
* 取消订单 烤箱
*/
private void stopCooking2(){
ExecuteTheRecipe.IsForcedEnd2 = true;
ExecuteTheRecipe.IsPause2 = false;
ExecuteTheRecipe.MakeStatus2 = false;
ExecuteTheRecipe.IsStart2 = false;
}


@Override
public void onPause() {


Loading…
Cancel
Save