<?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.VisitPlanTaskMapper">
  <resultMap id="BaseResultMap" type="com.ruoyi.system.domain.visit.VisitPlanTask">
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="plan_id" jdbcType="VARCHAR" property="planId" />
    <result column="urser_id" jdbcType="VARCHAR" property="urserId" />
    <result column="wgy_name" jdbcType="VARCHAR" property="wgyName" />
    <result column="wgy_code" jdbcType="VARCHAR" property="wgyCode" />
    <result column="obj_wg_code" jdbcType="VARCHAR" property="objWgCode" />
    <result column="visit_plan_user_id" jdbcType="VARCHAR" property="visitPlanUserId" />
    <result column="visit_plan_obj_id" jdbcType="VARCHAR" property="visitPlanObjId" />
    <result column="obj_name" jdbcType="VARCHAR" property="objName" />
    <result column="obj_id" jdbcType="VARCHAR" property="objId" />
    <result column="obj_type" jdbcType="VARCHAR" property="objType" />
    <result column="obj_number" jdbcType="VARCHAR" property="objNumber" />
    <result column="obj_user_name" jdbcType="VARCHAR" property="objUserName" />
    <result column="plan_task_status" jdbcType="VARCHAR" property="planTaskStatus" />
    <result column="task_id" jdbcType="VARCHAR" property="taskId" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_by" jdbcType="VARCHAR" property="createBy" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
    <result column="is_valid" jdbcType="VARCHAR" property="isValid" />
    <result column="ylzd1" jdbcType="VARCHAR" property="ylzd1" />
    <result column="ylzd2" jdbcType="VARCHAR" property="ylzd2" />
    <result column="ylzd3" jdbcType="VARCHAR" property="ylzd3" />
    <result column="ylzd4" jdbcType="VARCHAR" property="ylzd4" />
    <result column="ylzd5" jdbcType="VARCHAR" property="ylzd5" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.ruoyi.system.domain.visit.VisitPlanTask">
    <result column="plan_task_feedback" jdbcType="LONGVARCHAR" property="planTaskFeedback" />
  </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, plan_id, urser_id, wgy_name, wgy_code, obj_wg_code, visit_plan_user_id,
    visit_plan_obj_id, obj_name, obj_id, obj_type, obj_number, obj_user_name, plan_task_status,
    task_id, create_time, create_by, update_time, update_by, is_valid, ylzd1, ylzd2,
    ylzd3, ylzd4, ylzd5
  </sql>
  <sql id="Blob_Column_List">
    plan_task_feedback
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="com.ruoyi.system.domain.visit.VisitPlanTaskExample" resultMap="ResultMapWithBLOBs">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from visit_plan_task
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" parameterType="com.ruoyi.system.domain.visit.VisitPlanTaskExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from visit_plan_task
    <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="ResultMapWithBLOBs">
    select
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from visit_plan_task
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from visit_plan_task
    where id = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.ruoyi.system.domain.visit.VisitPlanTaskExample">
    delete from visit_plan_task
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.ruoyi.system.domain.visit.VisitPlanTask">
    insert into visit_plan_task (id, plan_id,
      urser_id, wgy_name, wgy_code,
      obj_wg_code, visit_plan_user_id, visit_plan_obj_id,
      obj_name, obj_id, obj_type,
      obj_number, obj_user_name, plan_task_status,
      task_id, create_time, create_by,
      update_time, update_by, is_valid,
      ylzd1, ylzd2, ylzd3,
      ylzd4, ylzd5, plan_task_feedback
      )
    values (#{id,jdbcType=VARCHAR}, #{planId,jdbcType=VARCHAR},
      #{urserId,jdbcType=VARCHAR}, #{wgyName,jdbcType=VARCHAR}, #{wgyCode,jdbcType=VARCHAR},
      #{objWgCode,jdbcType=VARCHAR}, #{visitPlanUserId,jdbcType=VARCHAR}, #{visitPlanObjId,jdbcType=VARCHAR},
      #{objName,jdbcType=VARCHAR}, #{objId,jdbcType=VARCHAR}, #{objType,jdbcType=VARCHAR},
      #{objNumber,jdbcType=VARCHAR}, #{objUserName,jdbcType=VARCHAR}, #{planTaskStatus,jdbcType=VARCHAR},
      #{taskId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR},
      #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{isValid,jdbcType=VARCHAR},
      #{ylzd1,jdbcType=VARCHAR}, #{ylzd2,jdbcType=VARCHAR}, #{ylzd3,jdbcType=VARCHAR},
      #{ylzd4,jdbcType=VARCHAR}, #{ylzd5,jdbcType=VARCHAR}, #{planTaskFeedback,jdbcType=LONGVARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.ruoyi.system.domain.visit.VisitPlanTask">
    insert into visit_plan_task
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="planId != null">
        plan_id,
      </if>
      <if test="urserId != null">
        urser_id,
      </if>
      <if test="wgyName != null">
        wgy_name,
      </if>
      <if test="wgyCode != null">
        wgy_code,
      </if>
      <if test="objWgCode != null">
        obj_wg_code,
      </if>
      <if test="visitPlanUserId != null">
        visit_plan_user_id,
      </if>
      <if test="visitPlanObjId != null">
        visit_plan_obj_id,
      </if>
      <if test="objName != null">
        obj_name,
      </if>
      <if test="objId != null">
        obj_id,
      </if>
      <if test="objType != null">
        obj_type,
      </if>
      <if test="objNumber != null">
        obj_number,
      </if>
      <if test="objUserName != null">
        obj_user_name,
      </if>
      <if test="planTaskStatus != null">
        plan_task_status,
      </if>
      <if test="taskId != null">
        task_id,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createBy != null">
        create_by,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="updateBy != null">
        update_by,
      </if>
      <if test="isValid != null">
        is_valid,
      </if>
      <if test="ylzd1 != null">
        ylzd1,
      </if>
      <if test="ylzd2 != null">
        ylzd2,
      </if>
      <if test="ylzd3 != null">
        ylzd3,
      </if>
      <if test="ylzd4 != null">
        ylzd4,
      </if>
      <if test="ylzd5 != null">
        ylzd5,
      </if>
      <if test="planTaskFeedback != null">
        plan_task_feedback,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="planId != null">
        #{planId,jdbcType=VARCHAR},
      </if>
      <if test="urserId != null">
        #{urserId,jdbcType=VARCHAR},
      </if>
      <if test="wgyName != null">
        #{wgyName,jdbcType=VARCHAR},
      </if>
      <if test="wgyCode != null">
        #{wgyCode,jdbcType=VARCHAR},
      </if>
      <if test="objWgCode != null">
        #{objWgCode,jdbcType=VARCHAR},
      </if>
      <if test="visitPlanUserId != null">
        #{visitPlanUserId,jdbcType=VARCHAR},
      </if>
      <if test="visitPlanObjId != null">
        #{visitPlanObjId,jdbcType=VARCHAR},
      </if>
      <if test="objName != null">
        #{objName,jdbcType=VARCHAR},
      </if>
      <if test="objId != null">
        #{objId,jdbcType=VARCHAR},
      </if>
      <if test="objType != null">
        #{objType,jdbcType=VARCHAR},
      </if>
      <if test="objNumber != null">
        #{objNumber,jdbcType=VARCHAR},
      </if>
      <if test="objUserName != null">
        #{objUserName,jdbcType=VARCHAR},
      </if>
      <if test="planTaskStatus != null">
        #{planTaskStatus,jdbcType=VARCHAR},
      </if>
      <if test="taskId != null">
        #{taskId,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="isValid != null">
        #{isValid,jdbcType=VARCHAR},
      </if>
      <if test="ylzd1 != null">
        #{ylzd1,jdbcType=VARCHAR},
      </if>
      <if test="ylzd2 != null">
        #{ylzd2,jdbcType=VARCHAR},
      </if>
      <if test="ylzd3 != null">
        #{ylzd3,jdbcType=VARCHAR},
      </if>
      <if test="ylzd4 != null">
        #{ylzd4,jdbcType=VARCHAR},
      </if>
      <if test="ylzd5 != null">
        #{ylzd5,jdbcType=VARCHAR},
      </if>
      <if test="planTaskFeedback != null">
        #{planTaskFeedback,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.ruoyi.system.domain.visit.VisitPlanTaskExample" resultType="java.lang.Long">
    select count(*) from visit_plan_task
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update visit_plan_task
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.planId != null">
        plan_id = #{record.planId,jdbcType=VARCHAR},
      </if>
      <if test="record.urserId != null">
        urser_id = #{record.urserId,jdbcType=VARCHAR},
      </if>
      <if test="record.wgyName != null">
        wgy_name = #{record.wgyName,jdbcType=VARCHAR},
      </if>
      <if test="record.wgyCode != null">
        wgy_code = #{record.wgyCode,jdbcType=VARCHAR},
      </if>
      <if test="record.objWgCode != null">
        obj_wg_code = #{record.objWgCode,jdbcType=VARCHAR},
      </if>
      <if test="record.visitPlanUserId != null">
        visit_plan_user_id = #{record.visitPlanUserId,jdbcType=VARCHAR},
      </if>
      <if test="record.visitPlanObjId != null">
        visit_plan_obj_id = #{record.visitPlanObjId,jdbcType=VARCHAR},
      </if>
      <if test="record.objName != null">
        obj_name = #{record.objName,jdbcType=VARCHAR},
      </if>
      <if test="record.objId != null">
        obj_id = #{record.objId,jdbcType=VARCHAR},
      </if>
      <if test="record.objType != null">
        obj_type = #{record.objType,jdbcType=VARCHAR},
      </if>
      <if test="record.objNumber != null">
        obj_number = #{record.objNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.objUserName != null">
        obj_user_name = #{record.objUserName,jdbcType=VARCHAR},
      </if>
      <if test="record.planTaskStatus != null">
        plan_task_status = #{record.planTaskStatus,jdbcType=VARCHAR},
      </if>
      <if test="record.taskId != null">
        task_id = #{record.taskId,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createBy != null">
        create_by = #{record.createBy,jdbcType=VARCHAR},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateBy != null">
        update_by = #{record.updateBy,jdbcType=VARCHAR},
      </if>
      <if test="record.isValid != null">
        is_valid = #{record.isValid,jdbcType=VARCHAR},
      </if>
      <if test="record.ylzd1 != null">
        ylzd1 = #{record.ylzd1,jdbcType=VARCHAR},
      </if>
      <if test="record.ylzd2 != null">
        ylzd2 = #{record.ylzd2,jdbcType=VARCHAR},
      </if>
      <if test="record.ylzd3 != null">
        ylzd3 = #{record.ylzd3,jdbcType=VARCHAR},
      </if>
      <if test="record.ylzd4 != null">
        ylzd4 = #{record.ylzd4,jdbcType=VARCHAR},
      </if>
      <if test="record.ylzd5 != null">
        ylzd5 = #{record.ylzd5,jdbcType=VARCHAR},
      </if>
      <if test="record.planTaskFeedback != null">
        plan_task_feedback = #{record.planTaskFeedback,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    update visit_plan_task
    set id = #{record.id,jdbcType=VARCHAR},
      plan_id = #{record.planId,jdbcType=VARCHAR},
      urser_id = #{record.urserId,jdbcType=VARCHAR},
      wgy_name = #{record.wgyName,jdbcType=VARCHAR},
      wgy_code = #{record.wgyCode,jdbcType=VARCHAR},
      obj_wg_code = #{record.objWgCode,jdbcType=VARCHAR},
      visit_plan_user_id = #{record.visitPlanUserId,jdbcType=VARCHAR},
      visit_plan_obj_id = #{record.visitPlanObjId,jdbcType=VARCHAR},
      obj_name = #{record.objName,jdbcType=VARCHAR},
      obj_id = #{record.objId,jdbcType=VARCHAR},
      obj_type = #{record.objType,jdbcType=VARCHAR},
      obj_number = #{record.objNumber,jdbcType=VARCHAR},
      obj_user_name = #{record.objUserName,jdbcType=VARCHAR},
      plan_task_status = #{record.planTaskStatus,jdbcType=VARCHAR},
      task_id = #{record.taskId,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      create_by = #{record.createBy,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_by = #{record.updateBy,jdbcType=VARCHAR},
      is_valid = #{record.isValid,jdbcType=VARCHAR},
      ylzd1 = #{record.ylzd1,jdbcType=VARCHAR},
      ylzd2 = #{record.ylzd2,jdbcType=VARCHAR},
      ylzd3 = #{record.ylzd3,jdbcType=VARCHAR},
      ylzd4 = #{record.ylzd4,jdbcType=VARCHAR},
      ylzd5 = #{record.ylzd5,jdbcType=VARCHAR},
      plan_task_feedback = #{record.planTaskFeedback,jdbcType=LONGVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update visit_plan_task
    set id = #{record.id,jdbcType=VARCHAR},
      plan_id = #{record.planId,jdbcType=VARCHAR},
      urser_id = #{record.urserId,jdbcType=VARCHAR},
      wgy_name = #{record.wgyName,jdbcType=VARCHAR},
      wgy_code = #{record.wgyCode,jdbcType=VARCHAR},
      obj_wg_code = #{record.objWgCode,jdbcType=VARCHAR},
      visit_plan_user_id = #{record.visitPlanUserId,jdbcType=VARCHAR},
      visit_plan_obj_id = #{record.visitPlanObjId,jdbcType=VARCHAR},
      obj_name = #{record.objName,jdbcType=VARCHAR},
      obj_id = #{record.objId,jdbcType=VARCHAR},
      obj_type = #{record.objType,jdbcType=VARCHAR},
      obj_number = #{record.objNumber,jdbcType=VARCHAR},
      obj_user_name = #{record.objUserName,jdbcType=VARCHAR},
      plan_task_status = #{record.planTaskStatus,jdbcType=VARCHAR},
      task_id = #{record.taskId,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      create_by = #{record.createBy,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_by = #{record.updateBy,jdbcType=VARCHAR},
      is_valid = #{record.isValid,jdbcType=VARCHAR},
      ylzd1 = #{record.ylzd1,jdbcType=VARCHAR},
      ylzd2 = #{record.ylzd2,jdbcType=VARCHAR},
      ylzd3 = #{record.ylzd3,jdbcType=VARCHAR},
      ylzd4 = #{record.ylzd4,jdbcType=VARCHAR},
      ylzd5 = #{record.ylzd5,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.system.domain.visit.VisitPlanTask">
    update visit_plan_task
    <set>
      <if test="planId != null">
        plan_id = #{planId,jdbcType=VARCHAR},
      </if>
      <if test="urserId != null">
        urser_id = #{urserId,jdbcType=VARCHAR},
      </if>
      <if test="wgyName != null">
        wgy_name = #{wgyName,jdbcType=VARCHAR},
      </if>
      <if test="wgyCode != null">
        wgy_code = #{wgyCode,jdbcType=VARCHAR},
      </if>
      <if test="objWgCode != null">
        obj_wg_code = #{objWgCode,jdbcType=VARCHAR},
      </if>
      <if test="visitPlanUserId != null">
        visit_plan_user_id = #{visitPlanUserId,jdbcType=VARCHAR},
      </if>
      <if test="visitPlanObjId != null">
        visit_plan_obj_id = #{visitPlanObjId,jdbcType=VARCHAR},
      </if>
      <if test="objName != null">
        obj_name = #{objName,jdbcType=VARCHAR},
      </if>
      <if test="objId != null">
        obj_id = #{objId,jdbcType=VARCHAR},
      </if>
      <if test="objType != null">
        obj_type = #{objType,jdbcType=VARCHAR},
      </if>
      <if test="objNumber != null">
        obj_number = #{objNumber,jdbcType=VARCHAR},
      </if>
      <if test="objUserName != null">
        obj_user_name = #{objUserName,jdbcType=VARCHAR},
      </if>
      <if test="planTaskStatus != null">
        plan_task_status = #{planTaskStatus,jdbcType=VARCHAR},
      </if>
      <if test="taskId != null">
        task_id = #{taskId,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        create_by = #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        update_by = #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="isValid != null">
        is_valid = #{isValid,jdbcType=VARCHAR},
      </if>
      <if test="ylzd1 != null">
        ylzd1 = #{ylzd1,jdbcType=VARCHAR},
      </if>
      <if test="ylzd2 != null">
        ylzd2 = #{ylzd2,jdbcType=VARCHAR},
      </if>
      <if test="ylzd3 != null">
        ylzd3 = #{ylzd3,jdbcType=VARCHAR},
      </if>
      <if test="ylzd4 != null">
        ylzd4 = #{ylzd4,jdbcType=VARCHAR},
      </if>
      <if test="ylzd5 != null">
        ylzd5 = #{ylzd5,jdbcType=VARCHAR},
      </if>
      <if test="planTaskFeedback != null">
        plan_task_feedback = #{planTaskFeedback,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.ruoyi.system.domain.visit.VisitPlanTask">
    update visit_plan_task
    set plan_id = #{planId,jdbcType=VARCHAR},
      urser_id = #{urserId,jdbcType=VARCHAR},
      wgy_name = #{wgyName,jdbcType=VARCHAR},
      wgy_code = #{wgyCode,jdbcType=VARCHAR},
      obj_wg_code = #{objWgCode,jdbcType=VARCHAR},
      visit_plan_user_id = #{visitPlanUserId,jdbcType=VARCHAR},
      visit_plan_obj_id = #{visitPlanObjId,jdbcType=VARCHAR},
      obj_name = #{objName,jdbcType=VARCHAR},
      obj_id = #{objId,jdbcType=VARCHAR},
      obj_type = #{objType,jdbcType=VARCHAR},
      obj_number = #{objNumber,jdbcType=VARCHAR},
      obj_user_name = #{objUserName,jdbcType=VARCHAR},
      plan_task_status = #{planTaskStatus,jdbcType=VARCHAR},
      task_id = #{taskId,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_by = #{createBy,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_by = #{updateBy,jdbcType=VARCHAR},
      is_valid = #{isValid,jdbcType=VARCHAR},
      ylzd1 = #{ylzd1,jdbcType=VARCHAR},
      ylzd2 = #{ylzd2,jdbcType=VARCHAR},
      ylzd3 = #{ylzd3,jdbcType=VARCHAR},
      ylzd4 = #{ylzd4,jdbcType=VARCHAR},
      ylzd5 = #{ylzd5,jdbcType=VARCHAR},
      plan_task_feedback = #{planTaskFeedback,jdbcType=LONGVARCHAR}
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.ruoyi.system.domain.visit.VisitPlanTask">
    update visit_plan_task
    set plan_id = #{planId,jdbcType=VARCHAR},
      urser_id = #{urserId,jdbcType=VARCHAR},
      wgy_name = #{wgyName,jdbcType=VARCHAR},
      wgy_code = #{wgyCode,jdbcType=VARCHAR},
      obj_wg_code = #{objWgCode,jdbcType=VARCHAR},
      visit_plan_user_id = #{visitPlanUserId,jdbcType=VARCHAR},
      visit_plan_obj_id = #{visitPlanObjId,jdbcType=VARCHAR},
      obj_name = #{objName,jdbcType=VARCHAR},
      obj_id = #{objId,jdbcType=VARCHAR},
      obj_type = #{objType,jdbcType=VARCHAR},
      obj_number = #{objNumber,jdbcType=VARCHAR},
      obj_user_name = #{objUserName,jdbcType=VARCHAR},
      plan_task_status = #{planTaskStatus,jdbcType=VARCHAR},
      task_id = #{taskId,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_by = #{createBy,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_by = #{updateBy,jdbcType=VARCHAR},
      is_valid = #{isValid,jdbcType=VARCHAR},
      ylzd1 = #{ylzd1,jdbcType=VARCHAR},
      ylzd2 = #{ylzd2,jdbcType=VARCHAR},
      ylzd3 = #{ylzd3,jdbcType=VARCHAR},
      ylzd4 = #{ylzd4,jdbcType=VARCHAR},
      ylzd5 = #{ylzd5,jdbcType=VARCHAR}
    where id = #{id,jdbcType=VARCHAR}
  </update>
</mapper>
