Commit 5f4175a5 authored by 陈前's avatar 陈前

盘库

parent 0cc64af1
...@@ -259,11 +259,11 @@ public class Cs implements BaseOrderPrint, com.xingdata.zzdpos.base.BaseBean { ...@@ -259,11 +259,11 @@ public class Cs implements BaseOrderPrint, com.xingdata.zzdpos.base.BaseBean {
} }
public String getOperName() { public String getOperName() {
if (operName == null) { // if (operName == null) {
operName = DB.getInstance().get(InventoryPresenter.class).where(Oper.class) // operName = DB.getInstance().get(InventoryPresenter.class).where(Oper.class)
.equalTo("operId", getCreateOperId()) // .equalTo("operId", getCreateOperId())
.findFirst().getOperName(); // .findFirst().getOperName();
} // }
return operName; return operName;
} }
@Override @Override
......
...@@ -26,7 +26,9 @@ public class InventoryAdapter extends BaseAdapter<Cs, ItemInventoryBinding> { ...@@ -26,7 +26,9 @@ public class InventoryAdapter extends BaseAdapter<Cs, ItemInventoryBinding> {
@Override @Override
protected void convert(ItemInventoryBinding mViewBinding, Cs item) { protected void convert(ItemInventoryBinding mViewBinding, Cs item) {
mViewBinding.tvName.setText(item.getOperName()); if (item.getOperName() != null) {
mViewBinding.tvName.setText(item.getOperName());
}
mViewBinding.tvPhone.setText(item.getOper_mobile()); mViewBinding.tvPhone.setText(item.getOper_mobile());
mViewBinding.tvDate.setText(TimeUtils.millis2String(item.getCreateTime()) + ""); mViewBinding.tvDate.setText(TimeUtils.millis2String(item.getCreateTime()) + "");
mViewBinding.tvNum.setText(item.getCsdetailCount() + ""); mViewBinding.tvNum.setText(item.getCsdetailCount() + "");
......
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