/**
   * This method was generated by MyBatis Generator. This method corresponds to the database table
   * `agentaccountlog`
   *
   * @mbggenerated
   */
  public String updateByExample(Map<String, Object> parameter) {
    SQL sql = new SQL();
    sql.UPDATE("`agentaccountlog`");

    sql.SET("agentAccountLogId = #{record.agentaccountlogid,jdbcType=VARCHAR}");
    sql.SET("agentId = #{record.agentid,jdbcType=INTEGER}");
    sql.SET("agentUserId = #{record.agentuserid,jdbcType=INTEGER}");
    sql.SET("agentUserName = #{record.agentusername,jdbcType=VARCHAR}");
    sql.SET("orderId = #{record.orderid,jdbcType=VARCHAR}");
    sql.SET("type = #{record.type,jdbcType=INTEGER}");
    sql.SET("bizType = #{record.biztype,jdbcType=INTEGER}");
    sql.SET("price = #{record.price,jdbcType=INTEGER}");
    sql.SET("content = #{record.content,jdbcType=VARCHAR}");
    sql.SET("comment = #{record.comment,jdbcType=VARCHAR}");
    sql.SET("tips = #{record.tips,jdbcType=VARCHAR}");
    sql.SET("bizStatus = #{record.bizstatus,jdbcType=INTEGER}");
    sql.SET("payType = #{record.paytype,jdbcType=INTEGER}");
    sql.SET("bizComment = #{record.bizcomment,jdbcType=VARCHAR}");
    sql.SET("updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}");
    sql.SET("created_at = #{record.createdAt,jdbcType=TIMESTAMP}");

    FinalAgentaccountLogCriteria example = (FinalAgentaccountLogCriteria) parameter.get("example");
    applyWhere(sql, example, true);
    return sql.toString();
  }
  /**
   * This method was generated by MyBatis Generator. This method corresponds to the database table
   * `trade_move_check`
   *
   * @mbggenerated
   */
  public String updateByExampleSelective(Map<String, Object> parameter) {
    TradeMoveCheck record = (TradeMoveCheck) parameter.get("record");
    TradeMoveCheckExample example = (TradeMoveCheckExample) parameter.get("example");

    SQL sql = new SQL();
    sql.UPDATE("`trade_move_check`");

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

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

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

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

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

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

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

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

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

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

    applyWhere(sql, example, true);
    return sql.toString();
  }
  /**
   * This method was generated by MyBatis Generator. This method corresponds to the database table
   * `orderguidereward`
   *
   * @mbggenerated
   */
  public String updateByExampleSelective(Map<String, Object> parameter) {
    FinalOrderGuideReward record = (FinalOrderGuideReward) parameter.get("record");
    FinalOrderGuideRewardCriteria example =
        (FinalOrderGuideRewardCriteria) parameter.get("example");

    SQL sql = new SQL();
    sql.UPDATE("`orderguidereward`");

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

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

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

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

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

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

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

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

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

    applyWhere(sql, example, true);
    return sql.toString();
  }
  /**
   * This method was generated by MyBatis Generator. This method corresponds to the database table
   * `trade_move_check`
   *
   * @mbggenerated
   */
  public String updateByPrimaryKeySelective(TradeMoveCheck record) {
    SQL sql = new SQL();
    sql.UPDATE("`trade_move_check`");

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

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

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

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

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

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

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

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

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

    sql.WHERE("id = #{id,jdbcType=INTEGER}");

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

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

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

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

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

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

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

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

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

    sql.WHERE("orderGuideRewardId = #{orderguiderewardid,jdbcType=VARCHAR}");

    return sql.toString();
  }