loadOperations=LitePal.where("cargoId =? and type = ? and (state IS NULL or state = '修改') ",String.valueOf(cargoInfoTag.getId()),"装载").order("id desc").find(LoadOperation.class);
Log.e("TAG","clickCargoInfo:"+loadOperations);
loadInfoAdapter.setList(loadOperations);
loadInfoAdapter.notifyDataSetChanged();
}
// 长按货箱
@Override
publicvoidlongClickCargoInfo(intindex){
// 93
CargoInfocargoInfo=cargoInfoList.get(index);
updataDialog.setIndex(index);
updataDialog.setCode(cargoInfo.getCargoCode());
updataDialog.setTag("装载单元");
updataDialog.show();
}
// 扫码结果
@Override
publicvoidsanCodeResult(Stringcode){
@ -134,9 +155,7 @@ public class LoadScanActivity extends BaseActivity implements CargoListAdapter.C
@ -182,6 +201,7 @@ public class LoadScanActivity extends BaseActivity implements CargoListAdapter.C
}
// 插入数据库
privatevoidloadLastFun(Stringcode){
intcount=LitePal.where("flightId= ? and luggageCode=? and type ='装载' and (state IS NULL or state = '修改') ",String.valueOf(flightInfo.getId()),code).count(LoadOperation.class);
if(count>0){
@ -233,6 +253,7 @@ public class LoadScanActivity extends BaseActivity implements CargoListAdapter.C