public String delete(String id) { dbHelper.init(); dbHelper.delete(id, "drivermessageform"); dbHelper.close(); return "success"; }
public DriverMessagePO find(String id) { dbHelper.init(); ArrayList<DriverMessagePO> list = dbHelper.queryByID(id, "drivermessageform"); driverMessagePO = list.get(0); dbHelper.close(); return driverMessagePO; }
public String insert(DriverMessagePO driverMessagePO) { dbHelper.init(); list.add(driverMessagePO); String result = dbHelper.insert(list, "drivermessageform"); dbHelper.close(); return result; }
public String update(IDVO Id) { dbHelper.init(); ArrayList<DriverMessagePO> list = dbHelper.queryByID(Id.id, "drivermessageform"); list.get(0).setExe(1); String result = dbHelper.update(list, "drivermessageform"); dbHelper.close(); return result; }