// 添加/修改 public String save() { if (om.getUuid() == null) { orderDetailEbi.save(om); } else { orderDetailEbi.update(om); } return TO_LIST; }
public String ajaxGetSurplusByUuid() { odm = orderDetailEbi.get(odmUuid); return "ajaxGetSurplusByUuid"; }
// 删除 public String delete() { orderDetailEbi.delete(om); return TO_LIST; }
// 跳转到添加/修改 public String input() { if (om.getUuid() != null) { om = orderDetailEbi.get(om.getUuid()); } return INPUT; }
// 列表 public String list() { setDataTotal(orderDetailEbi.getCount(oqm)); List<OrderDetailModel> orderDetailList = orderDetailEbi.getAll(oqm, pageNum, pageCount); put("orderDetailList", orderDetailList); return LIST; }