<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.visit.dr.VisitDrRuleMapper">
  <resultMap id="BaseResultMap" type="com.ruoyi.system.domain.visit.dr.VisitDrRule">
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="title" jdbcType="VARCHAR" property="title" />
    <result column="choose_time" jdbcType="VARCHAR" property="chooseTime" />
    <result column="choose_type" jdbcType="VARCHAR" property="chooseType" />
    <result column="choose_form" jdbcType="VARCHAR" property="chooseForm" />
    <result column="choose_people_type" jdbcType="VARCHAR" property="choosePeopleType" />
    <result column="choose_people_num" jdbcType="VARCHAR" property="choosePeopleNum" />
    <result column="choose_people_group" jdbcType="VARCHAR" property="choosePeopleGroup" />
    <result column="is_filter_old_people" jdbcType="VARCHAR" property="isFilterOldPeople" />
    <result column="filter_people_start_time" jdbcType="VARCHAR" property="filterPeopleStartTime" />
    <result column="filter_people_end_time" jdbcType="VARCHAR" property="filterPeopleEndTime" />
    <result column="filter_age_exp" jdbcType="VARCHAR" property="filterAgeExp" />
    <result column="is_choose_credit ratio" jdbcType="VARCHAR" property="isChooseCreditRatio" />
    <result column="credit_a" jdbcType="VARCHAR" property="creditA" />
    <result column="credit_b" jdbcType="VARCHAR" property="creditB" />
    <result column="credit_c" jdbcType="VARCHAR" property="creditC" />
    <result column="credit_d" jdbcType="VARCHAR" property="creditD" />
    <result column="choose_off_grade" jdbcType="VARCHAR" property="chooseOffGrade" />
    <result column="choose_company_type" jdbcType="VARCHAR" property="chooseCompanyType" />
    <result column="choose_company_num" jdbcType="VARCHAR" property="chooseCompanyNum" />
    <result column="is_filter_old_company" jdbcType="VARCHAR" property="isFilterOldCompany" />
    <result column="filter_company_start_time" jdbcType="VARCHAR" property="filterCompanyStartTime" />
    <result column="filter_company_end_time" jdbcType="VARCHAR" property="filterCompanyEndTime" />
    <result column="is_valid" jdbcType="VARCHAR" property="isValid" />
    <result column="create_time" jdbcType="VARCHAR" property="createTime" />
    <result column="create_by" jdbcType="VARCHAR" property="createBy" />
    <result column="extfield_one" jdbcType="VARCHAR" property="extfieldOne" />
    <result column="extfield_two" jdbcType="VARCHAR" property="extfieldTwo" />
    <result column="extfield_three" jdbcType="VARCHAR" property="extfieldThree" />
    <result column="extfield_four" jdbcType="VARCHAR" property="extfieldFour" />
    <result column="extfield_five" jdbcType="VARCHAR" property="extfieldFive" />
    <result column="extfield_six" jdbcType="VARCHAR" property="extfieldSix" />
    <result column="extfield_seven" jdbcType="VARCHAR" property="extfieldSeven" />
    <result column="extfield_eight" jdbcType="VARCHAR" property="extfieldEight" />
    <result column="extfield_nine" jdbcType="VARCHAR" property="extfieldNine" />
    <result column="extfield_ten" jdbcType="VARCHAR" property="extfieldTen" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    id, title, choose_time, choose_type, choose_form, choose_people_type, choose_people_num,
    choose_people_group, is_filter_old_people, filter_people_start_time, filter_people_end_time, 
    filter_age_exp, `is_choose_credit ratio`, credit_a, credit_b, credit_c, credit_d, 
    choose_off_grade, choose_company_type, choose_company_num, is_filter_old_company, 
    filter_company_start_time, filter_company_end_time, is_valid, create_time, create_by, 
    extfield_one, extfield_two, extfield_three, extfield_four, extfield_five, extfield_six, 
    extfield_seven, extfield_eight, extfield_nine, extfield_ten
  </sql>
  <select id="selectByExample" parameterType="com.ruoyi.system.domain.visit.dr.VisitDrRuleExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from visit_dr_rule
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from visit_dr_rule
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from visit_dr_rule
    where id = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.ruoyi.system.domain.visit.dr.VisitDrRuleExample">
    delete from visit_dr_rule
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.ruoyi.system.domain.visit.dr.VisitDrRule">
    insert into visit_dr_rule (id, title,
      choose_time, choose_type, choose_form, 
      choose_people_type, choose_people_num, choose_people_group, 
      is_filter_old_people, filter_people_start_time, 
      filter_people_end_time, filter_age_exp, `is_choose_credit ratio`, 
      credit_a, credit_b, credit_c, 
      credit_d, choose_off_grade, choose_company_type, 
      choose_company_num, is_filter_old_company, filter_company_start_time, 
      filter_company_end_time, is_valid, create_time, 
      create_by, extfield_one, extfield_two, 
      extfield_three, extfield_four, extfield_five, 
      extfield_six, extfield_seven, extfield_eight, 
      extfield_nine, extfield_ten)
    values (#{id,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
      #{chooseTime,jdbcType=VARCHAR}, #{chooseType,jdbcType=VARCHAR}, #{chooseForm,jdbcType=VARCHAR}, 
      #{choosePeopleType,jdbcType=VARCHAR}, #{choosePeopleNum,jdbcType=VARCHAR}, #{choosePeopleGroup,jdbcType=VARCHAR}, 
      #{isFilterOldPeople,jdbcType=VARCHAR}, #{filterPeopleStartTime,jdbcType=VARCHAR}, 
      #{filterPeopleEndTime,jdbcType=VARCHAR}, #{filterAgeExp,jdbcType=VARCHAR}, #{isChooseCreditRatio,jdbcType=VARCHAR}, 
      #{creditA,jdbcType=VARCHAR}, #{creditB,jdbcType=VARCHAR}, #{creditC,jdbcType=VARCHAR}, 
      #{creditD,jdbcType=VARCHAR}, #{chooseOffGrade,jdbcType=VARCHAR}, #{chooseCompanyType,jdbcType=VARCHAR}, 
      #{chooseCompanyNum,jdbcType=VARCHAR}, #{isFilterOldCompany,jdbcType=VARCHAR}, #{filterCompanyStartTime,jdbcType=VARCHAR}, 
      #{filterCompanyEndTime,jdbcType=VARCHAR}, #{isValid,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, 
      #{createBy,jdbcType=VARCHAR}, #{extfieldOne,jdbcType=VARCHAR}, #{extfieldTwo,jdbcType=VARCHAR}, 
      #{extfieldThree,jdbcType=VARCHAR}, #{extfieldFour,jdbcType=VARCHAR}, #{extfieldFive,jdbcType=VARCHAR}, 
      #{extfieldSix,jdbcType=VARCHAR}, #{extfieldSeven,jdbcType=VARCHAR}, #{extfieldEight,jdbcType=VARCHAR}, 
      #{extfieldNine,jdbcType=VARCHAR}, #{extfieldTen,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.ruoyi.system.domain.visit.dr.VisitDrRule">
    insert into visit_dr_rule
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="title != null">
        title,
      </if>
      <if test="chooseTime != null">
        choose_time,
      </if>
      <if test="chooseType != null">
        choose_type,
      </if>
      <if test="chooseForm != null">
        choose_form,
      </if>
      <if test="choosePeopleType != null">
        choose_people_type,
      </if>
      <if test="choosePeopleNum != null">
        choose_people_num,
      </if>
      <if test="choosePeopleGroup != null">
        choose_people_group,
      </if>
      <if test="isFilterOldPeople != null">
        is_filter_old_people,
      </if>
      <if test="filterPeopleStartTime != null">
        filter_people_start_time,
      </if>
      <if test="filterPeopleEndTime != null">
        filter_people_end_time,
      </if>
      <if test="filterAgeExp != null">
        filter_age_exp,
      </if>
      <if test="isChooseCreditRatio != null">
        `is_choose_credit ratio`,
      </if>
      <if test="creditA != null">
        credit_a,
      </if>
      <if test="creditB != null">
        credit_b,
      </if>
      <if test="creditC != null">
        credit_c,
      </if>
      <if test="creditD != null">
        credit_d,
      </if>
      <if test="chooseOffGrade != null">
        choose_off_grade,
      </if>
      <if test="chooseCompanyType != null">
        choose_company_type,
      </if>
      <if test="chooseCompanyNum != null">
        choose_company_num,
      </if>
      <if test="isFilterOldCompany != null">
        is_filter_old_company,
      </if>
      <if test="filterCompanyStartTime != null">
        filter_company_start_time,
      </if>
      <if test="filterCompanyEndTime != null">
        filter_company_end_time,
      </if>
      <if test="isValid != null">
        is_valid,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createBy != null">
        create_by,
      </if>
      <if test="extfieldOne != null">
        extfield_one,
      </if>
      <if test="extfieldTwo != null">
        extfield_two,
      </if>
      <if test="extfieldThree != null">
        extfield_three,
      </if>
      <if test="extfieldFour != null">
        extfield_four,
      </if>
      <if test="extfieldFive != null">
        extfield_five,
      </if>
      <if test="extfieldSix != null">
        extfield_six,
      </if>
      <if test="extfieldSeven != null">
        extfield_seven,
      </if>
      <if test="extfieldEight != null">
        extfield_eight,
      </if>
      <if test="extfieldNine != null">
        extfield_nine,
      </if>
      <if test="extfieldTen != null">
        extfield_ten,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="title != null">
        #{title,jdbcType=VARCHAR},
      </if>
      <if test="chooseTime != null">
        #{chooseTime,jdbcType=VARCHAR},
      </if>
      <if test="chooseType != null">
        #{chooseType,jdbcType=VARCHAR},
      </if>
      <if test="chooseForm != null">
        #{chooseForm,jdbcType=VARCHAR},
      </if>
      <if test="choosePeopleType != null">
        #{choosePeopleType,jdbcType=VARCHAR},
      </if>
      <if test="choosePeopleNum != null">
        #{choosePeopleNum,jdbcType=VARCHAR},
      </if>
      <if test="choosePeopleGroup != null">
        #{choosePeopleGroup,jdbcType=VARCHAR},
      </if>
      <if test="isFilterOldPeople != null">
        #{isFilterOldPeople,jdbcType=VARCHAR},
      </if>
      <if test="filterPeopleStartTime != null">
        #{filterPeopleStartTime,jdbcType=VARCHAR},
      </if>
      <if test="filterPeopleEndTime != null">
        #{filterPeopleEndTime,jdbcType=VARCHAR},
      </if>
      <if test="filterAgeExp != null">
        #{filterAgeExp,jdbcType=VARCHAR},
      </if>
      <if test="isChooseCreditRatio != null">
        #{isChooseCreditRatio,jdbcType=VARCHAR},
      </if>
      <if test="creditA != null">
        #{creditA,jdbcType=VARCHAR},
      </if>
      <if test="creditB != null">
        #{creditB,jdbcType=VARCHAR},
      </if>
      <if test="creditC != null">
        #{creditC,jdbcType=VARCHAR},
      </if>
      <if test="creditD != null">
        #{creditD,jdbcType=VARCHAR},
      </if>
      <if test="chooseOffGrade != null">
        #{chooseOffGrade,jdbcType=VARCHAR},
      </if>
      <if test="chooseCompanyType != null">
        #{chooseCompanyType,jdbcType=VARCHAR},
      </if>
      <if test="chooseCompanyNum != null">
        #{chooseCompanyNum,jdbcType=VARCHAR},
      </if>
      <if test="isFilterOldCompany != null">
        #{isFilterOldCompany,jdbcType=VARCHAR},
      </if>
      <if test="filterCompanyStartTime != null">
        #{filterCompanyStartTime,jdbcType=VARCHAR},
      </if>
      <if test="filterCompanyEndTime != null">
        #{filterCompanyEndTime,jdbcType=VARCHAR},
      </if>
      <if test="isValid != null">
        #{isValid,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=VARCHAR},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="extfieldOne != null">
        #{extfieldOne,jdbcType=VARCHAR},
      </if>
      <if test="extfieldTwo != null">
        #{extfieldTwo,jdbcType=VARCHAR},
      </if>
      <if test="extfieldThree != null">
        #{extfieldThree,jdbcType=VARCHAR},
      </if>
      <if test="extfieldFour != null">
        #{extfieldFour,jdbcType=VARCHAR},
      </if>
      <if test="extfieldFive != null">
        #{extfieldFive,jdbcType=VARCHAR},
      </if>
      <if test="extfieldSix != null">
        #{extfieldSix,jdbcType=VARCHAR},
      </if>
      <if test="extfieldSeven != null">
        #{extfieldSeven,jdbcType=VARCHAR},
      </if>
      <if test="extfieldEight != null">
        #{extfieldEight,jdbcType=VARCHAR},
      </if>
      <if test="extfieldNine != null">
        #{extfieldNine,jdbcType=VARCHAR},
      </if>
      <if test="extfieldTen != null">
        #{extfieldTen,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.ruoyi.system.domain.visit.dr.VisitDrRuleExample" resultType="java.lang.Long">
    select count(*) from visit_dr_rule
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update visit_dr_rule
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.title != null">
        title = #{record.title,jdbcType=VARCHAR},
      </if>
      <if test="record.chooseTime != null">
        choose_time = #{record.chooseTime,jdbcType=VARCHAR},
      </if>
      <if test="record.chooseType != null">
        choose_type = #{record.chooseType,jdbcType=VARCHAR},
      </if>
      <if test="record.chooseForm != null">
        choose_form = #{record.chooseForm,jdbcType=VARCHAR},
      </if>
      <if test="record.choosePeopleType != null">
        choose_people_type = #{record.choosePeopleType,jdbcType=VARCHAR},
      </if>
      <if test="record.choosePeopleNum != null">
        choose_people_num = #{record.choosePeopleNum,jdbcType=VARCHAR},
      </if>
      <if test="record.choosePeopleGroup != null">
        choose_people_group = #{record.choosePeopleGroup,jdbcType=VARCHAR},
      </if>
      <if test="record.isFilterOldPeople != null">
        is_filter_old_people = #{record.isFilterOldPeople,jdbcType=VARCHAR},
      </if>
      <if test="record.filterPeopleStartTime != null">
        filter_people_start_time = #{record.filterPeopleStartTime,jdbcType=VARCHAR},
      </if>
      <if test="record.filterPeopleEndTime != null">
        filter_people_end_time = #{record.filterPeopleEndTime,jdbcType=VARCHAR},
      </if>
      <if test="record.filterAgeExp != null">
        filter_age_exp = #{record.filterAgeExp,jdbcType=VARCHAR},
      </if>
      <if test="record.isChooseCreditRatio != null">
        `is_choose_credit ratio` = #{record.isChooseCreditRatio,jdbcType=VARCHAR},
      </if>
      <if test="record.creditA != null">
        credit_a = #{record.creditA,jdbcType=VARCHAR},
      </if>
      <if test="record.creditB != null">
        credit_b = #{record.creditB,jdbcType=VARCHAR},
      </if>
      <if test="record.creditC != null">
        credit_c = #{record.creditC,jdbcType=VARCHAR},
      </if>
      <if test="record.creditD != null">
        credit_d = #{record.creditD,jdbcType=VARCHAR},
      </if>
      <if test="record.chooseOffGrade != null">
        choose_off_grade = #{record.chooseOffGrade,jdbcType=VARCHAR},
      </if>
      <if test="record.chooseCompanyType != null">
        choose_company_type = #{record.chooseCompanyType,jdbcType=VARCHAR},
      </if>
      <if test="record.chooseCompanyNum != null">
        choose_company_num = #{record.chooseCompanyNum,jdbcType=VARCHAR},
      </if>
      <if test="record.isFilterOldCompany != null">
        is_filter_old_company = #{record.isFilterOldCompany,jdbcType=VARCHAR},
      </if>
      <if test="record.filterCompanyStartTime != null">
        filter_company_start_time = #{record.filterCompanyStartTime,jdbcType=VARCHAR},
      </if>
      <if test="record.filterCompanyEndTime != null">
        filter_company_end_time = #{record.filterCompanyEndTime,jdbcType=VARCHAR},
      </if>
      <if test="record.isValid != null">
        is_valid = #{record.isValid,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=VARCHAR},
      </if>
      <if test="record.createBy != null">
        create_by = #{record.createBy,jdbcType=VARCHAR},
      </if>
      <if test="record.extfieldOne != null">
        extfield_one = #{record.extfieldOne,jdbcType=VARCHAR},
      </if>
      <if test="record.extfieldTwo != null">
        extfield_two = #{record.extfieldTwo,jdbcType=VARCHAR},
      </if>
      <if test="record.extfieldThree != null">
        extfield_three = #{record.extfieldThree,jdbcType=VARCHAR},
      </if>
      <if test="record.extfieldFour != null">
        extfield_four = #{record.extfieldFour,jdbcType=VARCHAR},
      </if>
      <if test="record.extfieldFive != null">
        extfield_five = #{record.extfieldFive,jdbcType=VARCHAR},
      </if>
      <if test="record.extfieldSix != null">
        extfield_six = #{record.extfieldSix,jdbcType=VARCHAR},
      </if>
      <if test="record.extfieldSeven != null">
        extfield_seven = #{record.extfieldSeven,jdbcType=VARCHAR},
      </if>
      <if test="record.extfieldEight != null">
        extfield_eight = #{record.extfieldEight,jdbcType=VARCHAR},
      </if>
      <if test="record.extfieldNine != null">
        extfield_nine = #{record.extfieldNine,jdbcType=VARCHAR},
      </if>
      <if test="record.extfieldTen != null">
        extfield_ten = #{record.extfieldTen,jdbcType=VARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update visit_dr_rule
    set id = #{record.id,jdbcType=VARCHAR},
      title = #{record.title,jdbcType=VARCHAR},
      choose_time = #{record.chooseTime,jdbcType=VARCHAR},
      choose_type = #{record.chooseType,jdbcType=VARCHAR},
      choose_form = #{record.chooseForm,jdbcType=VARCHAR},
      choose_people_type = #{record.choosePeopleType,jdbcType=VARCHAR},
      choose_people_num = #{record.choosePeopleNum,jdbcType=VARCHAR},
      choose_people_group = #{record.choosePeopleGroup,jdbcType=VARCHAR},
      is_filter_old_people = #{record.isFilterOldPeople,jdbcType=VARCHAR},
      filter_people_start_time = #{record.filterPeopleStartTime,jdbcType=VARCHAR},
      filter_people_end_time = #{record.filterPeopleEndTime,jdbcType=VARCHAR},
      filter_age_exp = #{record.filterAgeExp,jdbcType=VARCHAR},
      `is_choose_credit ratio` = #{record.isChooseCreditRatio,jdbcType=VARCHAR},
      credit_a = #{record.creditA,jdbcType=VARCHAR},
      credit_b = #{record.creditB,jdbcType=VARCHAR},
      credit_c = #{record.creditC,jdbcType=VARCHAR},
      credit_d = #{record.creditD,jdbcType=VARCHAR},
      choose_off_grade = #{record.chooseOffGrade,jdbcType=VARCHAR},
      choose_company_type = #{record.chooseCompanyType,jdbcType=VARCHAR},
      choose_company_num = #{record.chooseCompanyNum,jdbcType=VARCHAR},
      is_filter_old_company = #{record.isFilterOldCompany,jdbcType=VARCHAR},
      filter_company_start_time = #{record.filterCompanyStartTime,jdbcType=VARCHAR},
      filter_company_end_time = #{record.filterCompanyEndTime,jdbcType=VARCHAR},
      is_valid = #{record.isValid,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=VARCHAR},
      create_by = #{record.createBy,jdbcType=VARCHAR},
      extfield_one = #{record.extfieldOne,jdbcType=VARCHAR},
      extfield_two = #{record.extfieldTwo,jdbcType=VARCHAR},
      extfield_three = #{record.extfieldThree,jdbcType=VARCHAR},
      extfield_four = #{record.extfieldFour,jdbcType=VARCHAR},
      extfield_five = #{record.extfieldFive,jdbcType=VARCHAR},
      extfield_six = #{record.extfieldSix,jdbcType=VARCHAR},
      extfield_seven = #{record.extfieldSeven,jdbcType=VARCHAR},
      extfield_eight = #{record.extfieldEight,jdbcType=VARCHAR},
      extfield_nine = #{record.extfieldNine,jdbcType=VARCHAR},
      extfield_ten = #{record.extfieldTen,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.system.domain.visit.dr.VisitDrRule">
    update visit_dr_rule
    <set>
      <if test="title != null">
        title = #{title,jdbcType=VARCHAR},
      </if>
      <if test="chooseTime != null">
        choose_time = #{chooseTime,jdbcType=VARCHAR},
      </if>
      <if test="chooseType != null">
        choose_type = #{chooseType,jdbcType=VARCHAR},
      </if>
      <if test="chooseForm != null">
        choose_form = #{chooseForm,jdbcType=VARCHAR},
      </if>
      <if test="choosePeopleType != null">
        choose_people_type = #{choosePeopleType,jdbcType=VARCHAR},
      </if>
      <if test="choosePeopleNum != null">
        choose_people_num = #{choosePeopleNum,jdbcType=VARCHAR},
      </if>
      <if test="choosePeopleGroup != null">
        choose_people_group = #{choosePeopleGroup,jdbcType=VARCHAR},
      </if>
      <if test="isFilterOldPeople != null">
        is_filter_old_people = #{isFilterOldPeople,jdbcType=VARCHAR},
      </if>
      <if test="filterPeopleStartTime != null">
        filter_people_start_time = #{filterPeopleStartTime,jdbcType=VARCHAR},
      </if>
      <if test="filterPeopleEndTime != null">
        filter_people_end_time = #{filterPeopleEndTime,jdbcType=VARCHAR},
      </if>
      <if test="filterAgeExp != null">
        filter_age_exp = #{filterAgeExp,jdbcType=VARCHAR},
      </if>
      <if test="isChooseCreditRatio != null">
        `is_choose_credit ratio` = #{isChooseCreditRatio,jdbcType=VARCHAR},
      </if>
      <if test="creditA != null">
        credit_a = #{creditA,jdbcType=VARCHAR},
      </if>
      <if test="creditB != null">
        credit_b = #{creditB,jdbcType=VARCHAR},
      </if>
      <if test="creditC != null">
        credit_c = #{creditC,jdbcType=VARCHAR},
      </if>
      <if test="creditD != null">
        credit_d = #{creditD,jdbcType=VARCHAR},
      </if>
      <if test="chooseOffGrade != null">
        choose_off_grade = #{chooseOffGrade,jdbcType=VARCHAR},
      </if>
      <if test="chooseCompanyType != null">
        choose_company_type = #{chooseCompanyType,jdbcType=VARCHAR},
      </if>
      <if test="chooseCompanyNum != null">
        choose_company_num = #{chooseCompanyNum,jdbcType=VARCHAR},
      </if>
      <if test="isFilterOldCompany != null">
        is_filter_old_company = #{isFilterOldCompany,jdbcType=VARCHAR},
      </if>
      <if test="filterCompanyStartTime != null">
        filter_company_start_time = #{filterCompanyStartTime,jdbcType=VARCHAR},
      </if>
      <if test="filterCompanyEndTime != null">
        filter_company_end_time = #{filterCompanyEndTime,jdbcType=VARCHAR},
      </if>
      <if test="isValid != null">
        is_valid = #{isValid,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=VARCHAR},
      </if>
      <if test="createBy != null">
        create_by = #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="extfieldOne != null">
        extfield_one = #{extfieldOne,jdbcType=VARCHAR},
      </if>
      <if test="extfieldTwo != null">
        extfield_two = #{extfieldTwo,jdbcType=VARCHAR},
      </if>
      <if test="extfieldThree != null">
        extfield_three = #{extfieldThree,jdbcType=VARCHAR},
      </if>
      <if test="extfieldFour != null">
        extfield_four = #{extfieldFour,jdbcType=VARCHAR},
      </if>
      <if test="extfieldFive != null">
        extfield_five = #{extfieldFive,jdbcType=VARCHAR},
      </if>
      <if test="extfieldSix != null">
        extfield_six = #{extfieldSix,jdbcType=VARCHAR},
      </if>
      <if test="extfieldSeven != null">
        extfield_seven = #{extfieldSeven,jdbcType=VARCHAR},
      </if>
      <if test="extfieldEight != null">
        extfield_eight = #{extfieldEight,jdbcType=VARCHAR},
      </if>
      <if test="extfieldNine != null">
        extfield_nine = #{extfieldNine,jdbcType=VARCHAR},
      </if>
      <if test="extfieldTen != null">
        extfield_ten = #{extfieldTen,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.ruoyi.system.domain.visit.dr.VisitDrRule">
    update visit_dr_rule
    set
      title = #{title,jdbcType=VARCHAR},
      choose_time = #{chooseTime,jdbcType=VARCHAR},
      choose_type = #{chooseType,jdbcType=VARCHAR},
      choose_form = #{chooseForm,jdbcType=VARCHAR},
      choose_people_type = #{choosePeopleType,jdbcType=VARCHAR},
      choose_people_num = #{choosePeopleNum,jdbcType=VARCHAR},
      choose_people_group = #{choosePeopleGroup,jdbcType=VARCHAR},
      is_filter_old_people = #{isFilterOldPeople,jdbcType=VARCHAR},
      filter_people_start_time = #{filterPeopleStartTime,jdbcType=VARCHAR},
      filter_people_end_time = #{filterPeopleEndTime,jdbcType=VARCHAR},
      filter_age_exp = #{filterAgeExp,jdbcType=VARCHAR},
      `is_choose_credit ratio` = #{isChooseCreditRatio,jdbcType=VARCHAR},
      credit_a = #{creditA,jdbcType=VARCHAR},
      credit_b = #{creditB,jdbcType=VARCHAR},
      credit_c = #{creditC,jdbcType=VARCHAR},
      credit_d = #{creditD,jdbcType=VARCHAR},
      choose_off_grade = #{chooseOffGrade,jdbcType=VARCHAR},
      choose_company_type = #{chooseCompanyType,jdbcType=VARCHAR},
      choose_company_num = #{chooseCompanyNum,jdbcType=VARCHAR},
      is_filter_old_company = #{isFilterOldCompany,jdbcType=VARCHAR},
      filter_company_start_time = #{filterCompanyStartTime,jdbcType=VARCHAR},
      filter_company_end_time = #{filterCompanyEndTime,jdbcType=VARCHAR},
      is_valid = #{isValid,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=VARCHAR},
      create_by = #{createBy,jdbcType=VARCHAR},
      extfield_one = #{extfieldOne,jdbcType=VARCHAR},
      extfield_two = #{extfieldTwo,jdbcType=VARCHAR},
      extfield_three = #{extfieldThree,jdbcType=VARCHAR},
      extfield_four = #{extfieldFour,jdbcType=VARCHAR},
      extfield_five = #{extfieldFive,jdbcType=VARCHAR},
      extfield_six = #{extfieldSix,jdbcType=VARCHAR},
      extfield_seven = #{extfieldSeven,jdbcType=VARCHAR},
      extfield_eight = #{extfieldEight,jdbcType=VARCHAR},
      extfield_nine = #{extfieldNine,jdbcType=VARCHAR},
      extfield_ten = #{extfieldTen,jdbcType=VARCHAR}
    where id = #{id,jdbcType=VARCHAR}
  </update>
</mapper>