Commit 9bcd4150 by Wyh

1、修復PRJ查詢重印BUG 2、修改餐廳配置頁面優化

Signed-off-by: Wyh <1239658231>
parent f40e4ed7
......@@ -188,7 +188,8 @@ public class PrjQueryActivity extends BaseActivity<PrjQueryPresenter> implements
List<PrjBean.DataBean.Bean> prjData = prjQueryBean.getData();
if (prjData.get(position).getParentId() == 0) {
//是主食品,判斷有沒有子食品,如果沒有子食品,直接打印主食品
if (position + 1 > prjData.size() || prjData.get(position + 1).getParentId() == 0) {
if (position + 1 > prjData.size() ||
(position + 1 < prjData.size() && prjData.get(position + 1).getParentId() == 0)) {
//沒有子食品
//直接打印
List<PrjBean.DataBean.Bean> printDatas = new ArrayList<>();
......
......@@ -90,6 +90,7 @@ public class ExpandListPresenter extends BasePresenter<ExpandListContract.Model,
mRootView.showMessage(result.getErrMsg());
}
if (result.isSuccess()) {
mRootView.showMessage("保存成功");
mRootView.killMyself();
}
}
......
......@@ -138,7 +138,7 @@ public class ExpandListActivity extends BaseActivity<ExpandListPresenter> implem
}
if (updateDate.size() > 0) {
//調用接口批量修改
mPresenter.updateExpandInfo(updateDate);
} else {
killMyself();
}
......
......@@ -28,9 +28,6 @@ public class ExpandListAdapter extends BaseQuickAdapter<ExpandInfo, BaseViewHold
public ExpandListAdapter(List<ExpandInfo> data) {
super(R.layout.main_expand_item, data);
for (int i = 0; i < data.size(); i++) {
data.get(i).setDataType(i);
}
}
@Override
......
......@@ -35,6 +35,8 @@
android:id="@+id/ed_expand_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_20"
android:paddingRight="@dimen/dp_10"
android:gravity="right"
android:visibility="gone" />
......
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