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

盘库

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