/** * 修改充值详细表 * * @param conn * @param paramMap 参数值 * @return * @throws SQLException */ public long updateRechargeDetail(Connection conn, long id, Map<String, String> paramMap) throws SQLException { Dao.Tables.t_recharge_detail t_recharge_detail = new Dao().new Tables().new t_recharge_detail(); DBReflectHelper.mapToTableValue(t_recharge_detail, paramMap); return t_recharge_detail.update(conn, " result=0 and id=" + id); }
/** * 添加充值详细表 * * @param conn * @param paramMap 参数值 * @return * @throws SQLException */ public long addRechargeDetail(Connection conn, Map<String, String> paramMap) throws SQLException { Dao.Tables.t_recharge_detail t_recharge_detail = new Dao().new Tables().new t_recharge_detail(); DBReflectHelper.mapToTableValue(t_recharge_detail, paramMap); return t_recharge_detail.insert(conn); }