Ejemplo n.º 1
0
 /**
  * 修改充值详细表
  *
  * @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);
 }
Ejemplo n.º 2
0
 /**
  * 添加充值详细表
  *
  * @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);
 }