@Override public int updateAdWall(AdWall t) { int result = adWallDAO.update(t); if (result > 0) { flushRedis(t.getPositionType()); } return result; }
@Override public int addAdWall(AdWall t) { int result = adWallDAO.insert(t); if (result > 0) { flushRedis(t.getPositionType()); } return result; }
@Override public int deleteAdWall(int id) { AdWall t = getAdWall(id); int result = adWallDAO.delete(id); if (result > 0) { flushRedis(t.getPositionType()); } return result; }
@Override public PageHolder<AdWall> queryAdWallList( HashMap<String, Object> hm, int pageIndex, int pageSize) { return adWallDAO.pagedQuery("findByParams", hm, pageIndex, pageSize); }
@Override public AdWall getAdWall(int id) { return adWallDAO.get(id); }