Пример #1
0
  /**
   * This method was generated by MyBatis Generator. This method corresponds to the database table
   * `trade_move_check`
   *
   * @mbggenerated
   */
  public String insertSelective(TradeMoveCheck record) {
    SQL sql = new SQL();
    sql.INSERT_INTO("`trade_move_check`");

    if (record.getId() != null) {
      sql.VALUES("id", "#{id,jdbcType=INTEGER}");
    }

    if (record.getOrderId() != null) {
      sql.VALUES("order_id", "#{orderId,jdbcType=VARCHAR}");
    }

    if (record.getOrderSn() != null) {
      sql.VALUES("order_sn", "#{orderSn,jdbcType=VARCHAR}");
    }

    if (record.getOrderNo() != null) {
      sql.VALUES("order_no", "#{orderNo,jdbcType=VARCHAR}");
    }

    if (record.getIsMoveSuccess() != null) {
      sql.VALUES("is_move_success", "#{isMoveSuccess,jdbcType=INTEGER}");
    }

    if (record.getIsInInfo() != null) {
      sql.VALUES("is_in_info", "#{isInInfo,jdbcType=INTEGER}");
    }

    if (record.getInfoFlag() != null) {
      sql.VALUES("info_flag", "#{infoFlag,jdbcType=INTEGER}");
    }

    if (record.getInfoDesc() != null) {
      sql.VALUES("info_desc", "#{infoDesc,jdbcType=VARCHAR}");
    }

    if (record.getCreateTime() != null) {
      sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
    }

    if (record.getUpdateTime() != null) {
      sql.VALUES("update_time", "#{updateTime,jdbcType=TIMESTAMP}");
    }

    return sql.toString();
  }
  /**
   * This method was generated by MyBatis Generator. This method corresponds to the database table
   * `orderguidereward`
   *
   * @mbggenerated
   */
  public String insertSelective(FinalOrderGuideReward record) {
    SQL sql = new SQL();
    sql.INSERT_INTO("`orderguidereward`");

    if (record.getOrderguiderewardid() != null) {
      sql.VALUES("orderGuideRewardId", "#{orderguiderewardid,jdbcType=VARCHAR}");
    }

    if (record.getOrderid() != null) {
      sql.VALUES("orderId", "#{orderid,jdbcType=VARCHAR}");
    }

    if (record.getGuideid() != null) {
      sql.VALUES("guideId", "#{guideid,jdbcType=INTEGER}");
    }

    if (record.getOrderrewardtype() != null) {
      sql.VALUES("orderRewardType", "#{orderrewardtype,jdbcType=INTEGER}");
    }

    if (record.getComment() != null) {
      sql.VALUES("comment", "#{comment,jdbcType=VARCHAR}");
    }

    if (record.getReward() != null) {
      sql.VALUES("reward", "#{reward,jdbcType=DECIMAL}");
    }

    if (record.getStatus() != null) {
      sql.VALUES("status", "#{status,jdbcType=INTEGER}");
    }

    if (record.getUpdatedAt() != null) {
      sql.VALUES("updated_at", "#{updatedAt,jdbcType=TIMESTAMP}");
    }

    if (record.getCreatedAt() != null) {
      sql.VALUES("created_at", "#{createdAt,jdbcType=TIMESTAMP}");
    }

    return sql.toString();
  }
  /**
   * This method was generated by MyBatis Generator. This method corresponds to the database table
   * `agentaccountlog`
   *
   * @mbggenerated
   */
  public String insertSelective(FinalAgentaccountLog record) {
    SQL sql = new SQL();
    sql.INSERT_INTO("`agentaccountlog`");

    if (record.getAgentaccountlogid() != null) {
      sql.VALUES("agentAccountLogId", "#{agentaccountlogid,jdbcType=VARCHAR}");
    }

    if (record.getAgentid() != null) {
      sql.VALUES("agentId", "#{agentid,jdbcType=INTEGER}");
    }

    if (record.getAgentuserid() != null) {
      sql.VALUES("agentUserId", "#{agentuserid,jdbcType=INTEGER}");
    }

    if (record.getAgentusername() != null) {
      sql.VALUES("agentUserName", "#{agentusername,jdbcType=VARCHAR}");
    }

    if (record.getOrderid() != null) {
      sql.VALUES("orderId", "#{orderid,jdbcType=VARCHAR}");
    }

    if (record.getType() != null) {
      sql.VALUES("type", "#{type,jdbcType=INTEGER}");
    }

    if (record.getBiztype() != null) {
      sql.VALUES("bizType", "#{biztype,jdbcType=INTEGER}");
    }

    if (record.getPrice() != null) {
      sql.VALUES("price", "#{price,jdbcType=INTEGER}");
    }

    if (record.getContent() != null) {
      sql.VALUES("content", "#{content,jdbcType=VARCHAR}");
    }

    if (record.getComment() != null) {
      sql.VALUES("comment", "#{comment,jdbcType=VARCHAR}");
    }

    if (record.getTips() != null) {
      sql.VALUES("tips", "#{tips,jdbcType=VARCHAR}");
    }

    if (record.getBizstatus() != null) {
      sql.VALUES("bizStatus", "#{bizstatus,jdbcType=INTEGER}");
    }

    if (record.getPaytype() != null) {
      sql.VALUES("payType", "#{paytype,jdbcType=INTEGER}");
    }

    if (record.getBizcomment() != null) {
      sql.VALUES("bizComment", "#{bizcomment,jdbcType=VARCHAR}");
    }

    if (record.getUpdatedAt() != null) {
      sql.VALUES("updated_at", "#{updatedAt,jdbcType=TIMESTAMP}");
    }

    if (record.getCreatedAt() != null) {
      sql.VALUES("created_at", "#{createdAt,jdbcType=TIMESTAMP}");
    }

    return sql.toString();
  }