<?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.form.MdFormMapper">
  <resultMap id="BaseResultMap" type="com.ruoyi.system.domain.form.MdForm">
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="name" jdbcType="VARCHAR" property="name" />
    <result column="img" jdbcType="VARCHAR" property="img" />
    <result column="category_id" jdbcType="VARCHAR" property="categoryId" />
    <result column="record_num" jdbcType="INTEGER" property="recordNum" />
    <result column="collect_mode" jdbcType="VARCHAR" property="collectMode" />
    <result column="fix_start" jdbcType="BIGINT" property="fixStart" />
    <result column="fix_end" jdbcType="BIGINT" property="fixEnd" />
    <result column="cycle_type" jdbcType="VARCHAR" property="cycleType" />
    <result column="cycle_last" jdbcType="INTEGER" property="cycleLast" />
    <result column="cycle_now" jdbcType="VARCHAR" property="cycleNow" />
    <result column="cycle_def" jdbcType="TINYINT" property="cycleDef" />
    <result column="mind_time" jdbcType="INTEGER" property="mindTime" />
    <result column="need_ration" jdbcType="TINYINT" property="needRation" />
    <result column="ration_num" jdbcType="INTEGER" property="rationNum" />
    <result column="publish_time" jdbcType="BIGINT" property="publishTime" />
    <result column="publish_mode" jdbcType="TINYINT" property="publishMode" />
    <result column="publish_status" jdbcType="TINYINT" property="publishStatus" />
    <result column="status" jdbcType="TINYINT" property="status" />
    <result column="create_time" jdbcType="BIGINT" property="createTime" />
    <result column="delete_time" jdbcType="BIGINT" property="deleteTime" />
    <result column="own_user" jdbcType="VARCHAR" property="ownUser" />
    <result column="own_dept" jdbcType="VARCHAR" property="ownDept" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.ruoyi.system.domain.form.MdForm">
    <result column="form_config" jdbcType="LONGVARCHAR" property="formConfig" />
    <result column="publish_user" jdbcType="LONGVARCHAR" property="publishUser" />
    <result column="is_send" jdbcType="INTEGER" property="isSend" />
    <result column="read_type" jdbcType="INTEGER" property="readType" />
  </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, name, img, category_id, record_num, collect_mode, fix_start, fix_end, cycle_type, 
    cycle_last, cycle_now, cycle_def, mind_time, need_ration, ration_num,
    publish_time, publish_mode, publish_status, status, create_time, delete_time, own_user, 
    own_dept
  </sql>
  <sql id="Blob_Column_List">
    form_config, publish_user,is_send,read_type
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="com.ruoyi.system.domain.form.MdFormExample" resultMap="ResultMapWithBLOBs">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from md_form
    <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.form.MdFormExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from md_form
    <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 md_form
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from md_form
    where id = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.ruoyi.system.domain.form.MdFormExample">
    delete from md_form
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.ruoyi.system.domain.form.MdForm">
      insert into md_form (id, name, img,
      category_id, record_num, collect_mode,
      fix_start, fix_end, cycle_type,
      cycle_last, cycle_now, cycle_def,
      mind_time, need_ration, ration_num, publish_time, publish_mode,
      publish_status, status, create_time,
      delete_time, own_user, own_dept,
      form_config,
      publish_user)
      values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR},
      #{categoryId,jdbcType=VARCHAR}, #{recordNum,jdbcType=INTEGER}, #{collectMode,jdbcType=VARCHAR},
      #{fixStart,jdbcType=BIGINT}, #{fixEnd,jdbcType=BIGINT}, #{cycleType,jdbcType=VARCHAR},
      #{cycleLast,jdbcType=INTEGER}, #{cycleNow,jdbcType=VARCHAR}, #{cycleDef,jdbcType=TINYINT},
      #{mindTime,jdbcType=INTEGER}, #{needRation,jdbcType=TINYINT}, #{rationNum,jdbcType=INTEGER},
    #{publishTime,jdbcType=BIGINT}, #{publishMode,jdbcType=TINYINT},
      #{publishStatus,jdbcType=TINYINT}, #{status,jdbcType=TINYINT}, #{createTime,jdbcType=BIGINT},
      #{deleteTime,jdbcType=BIGINT}, #{ownUser,jdbcType=VARCHAR}, #{ownDept,jdbcType=VARCHAR},
      #{formConfig,jdbcType=LONGVARCHAR},
      #{publishUser,jdbcType=LONGVARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.ruoyi.system.domain.form.MdForm">
    insert into md_form
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="name != null">
        name,
      </if>
      <if test="img != null">
        img,
      </if>
      <if test="categoryId != null">
        category_id,
      </if>
      <if test="recordNum != null">
        record_num,
      </if>
      <if test="collectMode != null">
        collect_mode,
      </if>
      <if test="fixStart != null">
        fix_start,
      </if>
      <if test="fixEnd != null">
        fix_end,
      </if>
      <if test="cycleType != null">
        cycle_type,
      </if>
      <if test="cycleLast != null">
        cycle_last,
      </if>
      <if test="cycleNow != null">
        cycle_now,
      </if>
      <if test="cycleDef != null">
        cycle_def,
      </if>
      <if test="mindTime != null">
        mind_time,
      </if>
      <if test="needRation != null">
        need_ration,
      </if>
      <if test="rationNum != null">
        ration_num,
      </if>
      <if test="publishTime != null">
        publish_time,
      </if>
      <if test="publishMode != null">
        publish_mode,
      </if>
      <if test="publishStatus != null">
        publish_status,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="deleteTime != null">
        delete_time,
      </if>
      <if test="ownUser != null">
        own_user,
      </if>
      <if test="ownDept != null">
        own_dept,
      </if>
      <if test="formConfig != null">
        form_config,
      </if>
      <if test="publishUser != null">
        publish_user,
      </if>
      <if test="isSend != null">
        is_send,
      </if>
      <if test="readType != null">
        read_type
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="img != null">
        #{img,jdbcType=VARCHAR},
      </if>
      <if test="categoryId != null">
        #{categoryId,jdbcType=VARCHAR},
      </if>
      <if test="recordNum != null">
        #{recordNum,jdbcType=INTEGER},
      </if>
      <if test="collectMode != null">
        #{collectMode,jdbcType=VARCHAR},
      </if>
      <if test="fixStart != null">
        #{fixStart,jdbcType=BIGINT},
      </if>
      <if test="fixEnd != null">
        #{fixEnd,jdbcType=BIGINT},
      </if>
      <if test="cycleType != null">
        #{cycleType,jdbcType=VARCHAR},
      </if>
      <if test="cycleLast != null">
        #{cycleLast,jdbcType=INTEGER},
      </if>
      <if test="cycleNow != null">
        #{cycleNow,jdbcType=VARCHAR},
      </if>
      <if test="cycleDef != null">
        #{cycleDef,jdbcType=TINYINT},
      </if>
      <if test="mindTime != null">
        #{mindTime,jdbcType=INTEGER},
      </if>
      <if test="needRation != null">
        #{needRation,jdbcType=TINYINT},
      </if>
      <if test="rationNum != null">
        #{rationNum,jdbcType=INTEGER},
      </if>
      <if test="publishTime != null">
        #{publishTime,jdbcType=BIGINT},
      </if>
      <if test="publishMode != null">
        #{publishMode,jdbcType=TINYINT},
      </if>
      <if test="publishStatus != null">
        #{publishStatus,jdbcType=TINYINT},
      </if>
      <if test="status != null">
        #{status,jdbcType=TINYINT},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=BIGINT},
      </if>
      <if test="deleteTime != null">
        #{deleteTime,jdbcType=BIGINT},
      </if>
      <if test="ownUser != null">
        #{ownUser,jdbcType=VARCHAR},
      </if>
      <if test="ownDept != null">
        #{ownDept,jdbcType=VARCHAR},
      </if>
      <if test="formConfig != null">
        #{formConfig,jdbcType=LONGVARCHAR},
      </if>
      <if test="publishUser != null">
          #{publishUser,jdbcType=LONGVARCHAR},
      </if>
      <if test="isSend != null">
        #{isSend,jdbcType=INTEGER},
      </if>
      <if test="readType != null">
        #{readType,jdbcType=INTEGER}
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.ruoyi.system.domain.form.MdFormExample" resultType="java.lang.Long">
    select count(*) from md_form
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update md_form
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.name != null">
        name = #{record.name,jdbcType=VARCHAR},
      </if>
      <if test="record.img != null">
        img = #{record.img,jdbcType=VARCHAR},
      </if>
      <if test="record.categoryId != null">
        category_id = #{record.categoryId,jdbcType=VARCHAR},
      </if>
      <if test="record.recordNum != null">
        record_num = #{record.recordNum,jdbcType=INTEGER},
      </if>
      <if test="record.collectMode != null">
        collect_mode = #{record.collectMode,jdbcType=VARCHAR},
      </if>
      <if test="record.fixStart != null">
        fix_start = #{record.fixStart,jdbcType=BIGINT},
      </if>
      <if test="record.fixEnd != null">
        fix_end = #{record.fixEnd,jdbcType=BIGINT},
      </if>
      <if test="record.cycleType != null">
        cycle_type = #{record.cycleType,jdbcType=VARCHAR},
      </if>
      <if test="record.cycleLast != null">
        cycle_last = #{record.cycleLast,jdbcType=INTEGER},
      </if>
      <if test="record.cycleNow != null">
        cycle_now = #{record.cycleNow,jdbcType=VARCHAR},
      </if>
      <if test="record.cycleDef != null">
        cycle_def = #{record.cycleDef,jdbcType=TINYINT},
      </if>
      <if test="record.mindTime != null">
        mind_time = #{record.mindTime,jdbcType=INTEGER},
      </if>
      <if test="record.needRation != null">
        need_ration = #{record.needRation,jdbcType=TINYINT},
      </if>
      <if test="record.rationNum != null">
        ration_num = #{record.rationNum,jdbcType=INTEGER},
      </if>
      <if test="record.publishTime != null">
        publish_time = #{record.publishTime,jdbcType=BIGINT},
      </if>
      <if test="record.publishMode != null">
        publish_mode = #{record.publishMode,jdbcType=TINYINT},
      </if>
      <if test="record.publishStatus != null">
        publish_status = #{record.publishStatus,jdbcType=TINYINT},
      </if>
      <if test="record.status != null">
        status = #{record.status,jdbcType=TINYINT},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=BIGINT},
      </if>
      <if test="record.deleteTime != null">
        delete_time = #{record.deleteTime,jdbcType=BIGINT},
      </if>
      <if test="record.ownUser != null">
        own_user = #{record.ownUser,jdbcType=VARCHAR},
      </if>
      <if test="record.ownDept != null">
        own_dept = #{record.ownDept,jdbcType=VARCHAR},
      </if>
      <if test="record.formConfig != null">
        form_config = #{record.formConfig,jdbcType=LONGVARCHAR},
      </if>
      <if test="record.publishUser != null">
          publish_user = #{record.publishUser,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
      update md_form
      set id = #{record.id,jdbcType=VARCHAR},
      name = #{record.name,jdbcType=VARCHAR},
      img = #{record.img,jdbcType=VARCHAR},
      category_id = #{record.categoryId,jdbcType=VARCHAR},
      record_num = #{record.recordNum,jdbcType=INTEGER},
      collect_mode = #{record.collectMode,jdbcType=VARCHAR},
      fix_start = #{record.fixStart,jdbcType=BIGINT},
      fix_end = #{record.fixEnd,jdbcType=BIGINT},
      cycle_type = #{record.cycleType,jdbcType=VARCHAR},
      cycle_last = #{record.cycleLast,jdbcType=INTEGER},
      cycle_now = #{record.cycleNow,jdbcType=VARCHAR},
      cycle_def = #{record.cycleDef,jdbcType=TINYINT},
      mind_time = #{record.mindTime,jdbcType=INTEGER},
      need_ration = #{record.needRation,jdbcType=TINYINT},
      ration_num = #{record.rationNum,jdbcType=INTEGER},
      publish_time = #{record.publishTime,jdbcType=BIGINT},
      publish_mode = #{record.publishMode,jdbcType=TINYINT},
      publish_status = #{record.publishStatus,jdbcType=TINYINT},
      status = #{record.status,jdbcType=TINYINT},
      create_time = #{record.createTime,jdbcType=BIGINT},
      delete_time = #{record.deleteTime,jdbcType=BIGINT},
      own_user = #{record.ownUser,jdbcType=VARCHAR},
      own_dept = #{record.ownDept,jdbcType=VARCHAR},
      form_config = #{record.formConfig,jdbcType=LONGVARCHAR},
      publish_user = #{record.publishUser,jdbcType=LONGVARCHAR}
      <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update md_form
    set id = #{record.id,jdbcType=VARCHAR},
      name = #{record.name,jdbcType=VARCHAR},
      img = #{record.img,jdbcType=VARCHAR},
      category_id = #{record.categoryId,jdbcType=VARCHAR},
      record_num = #{record.recordNum,jdbcType=INTEGER},
      collect_mode = #{record.collectMode,jdbcType=VARCHAR},
      fix_start = #{record.fixStart,jdbcType=BIGINT},
      fix_end = #{record.fixEnd,jdbcType=BIGINT},
      cycle_type = #{record.cycleType,jdbcType=VARCHAR},
      cycle_last = #{record.cycleLast,jdbcType=INTEGER},
      cycle_now = #{record.cycleNow,jdbcType=VARCHAR},
      cycle_def = #{record.cycleDef,jdbcType=TINYINT},
      mind_time = #{record.mindTime,jdbcType=INTEGER},
      need_ration = #{record.needRation,jdbcType=TINYINT},
      ration_num = #{record.rationNum,jdbcType=INTEGER},
      publish_time = #{record.publishTime,jdbcType=BIGINT},
      publish_mode = #{record.publishMode,jdbcType=TINYINT},
      publish_status = #{record.publishStatus,jdbcType=TINYINT},
      status = #{record.status,jdbcType=TINYINT},
      create_time = #{record.createTime,jdbcType=BIGINT},
      delete_time = #{record.deleteTime,jdbcType=BIGINT},
      own_user = #{record.ownUser,jdbcType=VARCHAR},
      own_dept = #{record.ownDept,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.system.domain.form.MdForm">
    update md_form
    <set>
      <if test="name != null">
        name = #{name,jdbcType=VARCHAR},
      </if>
      <if test="img != null">
        img = #{img,jdbcType=VARCHAR},
      </if>
      <if test="categoryId != null">
        category_id = #{categoryId,jdbcType=VARCHAR},
      </if>
      <if test="recordNum != null">
        record_num = #{recordNum,jdbcType=INTEGER},
      </if>
      <if test="collectMode != null">
        collect_mode = #{collectMode,jdbcType=VARCHAR},
      </if>
      <if test="fixStart != null">
        fix_start = #{fixStart,jdbcType=BIGINT},
      </if>
      <if test="fixEnd != null">
        fix_end = #{fixEnd,jdbcType=BIGINT},
      </if>
      <if test="cycleType != null">
        cycle_type = #{cycleType,jdbcType=VARCHAR},
      </if>
      <if test="cycleLast != null">
        cycle_last = #{cycleLast,jdbcType=INTEGER},
      </if>
      <if test="cycleNow != null">
        cycle_now = #{cycleNow,jdbcType=VARCHAR},
      </if>
      <if test="cycleDef != null">
        cycle_def = #{cycleDef,jdbcType=TINYINT},
      </if>
      <if test="mindTime != null">
        mind_time = #{mindTime,jdbcType=INTEGER},
      </if>
      <if test="needRation != null">
        need_ration = #{needRation,jdbcType=TINYINT},
      </if>
      <if test="rationNum != null">
        ration_num = #{rationNum,jdbcType=INTEGER},
      </if>
      <if test="publishTime != null">
        publish_time = #{publishTime,jdbcType=BIGINT},
      </if>
      <if test="publishMode != null">
        publish_mode = #{publishMode,jdbcType=TINYINT},
      </if>
      <if test="publishStatus != null">
        publish_status = #{publishStatus,jdbcType=TINYINT},
      </if>
      <if test="status != null">
        status = #{status,jdbcType=TINYINT},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=BIGINT},
      </if>
      <if test="deleteTime != null">
        delete_time = #{deleteTime,jdbcType=BIGINT},
      </if>
      <if test="ownUser != null">
        own_user = #{ownUser,jdbcType=VARCHAR},
      </if>
      <if test="ownDept != null">
        own_dept = #{ownDept,jdbcType=VARCHAR},
      </if>
      <if test="formConfig != null">
        form_config = #{formConfig,jdbcType=LONGVARCHAR},
      </if>
      <if test="publishUser != null">
          publish_user = #{publishUser,jdbcType=LONGVARCHAR},
      </if>
      <if test="isSend != null">
        is_send = #{isSend,jdbcType=INTEGER},
      </if>
        <if test="readType != null">
            read_type = #{readType,jdbcType=INTEGER}
        </if>
    </set>
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.ruoyi.system.domain.form.MdForm">
      update md_form
      set name = #{name,jdbcType=VARCHAR},
      img = #{img,jdbcType=VARCHAR},
      category_id = #{categoryId,jdbcType=VARCHAR},
      record_num = #{recordNum,jdbcType=INTEGER},
      collect_mode = #{collectMode,jdbcType=VARCHAR},
      fix_start = #{fixStart,jdbcType=BIGINT},
      fix_end = #{fixEnd,jdbcType=BIGINT},
      cycle_type = #{cycleType,jdbcType=VARCHAR},
      cycle_last = #{cycleLast,jdbcType=INTEGER},
      cycle_now = #{cycleNow,jdbcType=VARCHAR},
      cycle_def = #{cycleDef,jdbcType=TINYINT},
      mind_time = #{mindTime,jdbcType=INTEGER},
      need_ration = #{needRation,jdbcType=TINYINT},
      ration_num = #{rationNum,jdbcType=INTEGER},
      publish_time = #{publishTime,jdbcType=BIGINT},
      publish_mode = #{publishMode,jdbcType=TINYINT},
      publish_status = #{publishStatus,jdbcType=TINYINT},
      status = #{status,jdbcType=TINYINT},
      create_time = #{createTime,jdbcType=BIGINT},
      delete_time = #{deleteTime,jdbcType=BIGINT},
      own_user = #{ownUser,jdbcType=VARCHAR},
      own_dept = #{ownDept,jdbcType=VARCHAR},
      form_config = #{formConfig,jdbcType=LONGVARCHAR},
      publish_user = #{publishUser,jdbcType=LONGVARCHAR}
      where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.ruoyi.system.domain.form.MdForm">
    update md_form
    set name = #{name,jdbcType=VARCHAR},
      img = #{img,jdbcType=VARCHAR},
      category_id = #{categoryId,jdbcType=VARCHAR},
      record_num = #{recordNum,jdbcType=INTEGER},
      collect_mode = #{collectMode,jdbcType=VARCHAR},
      fix_start = #{fixStart,jdbcType=BIGINT},
      fix_end = #{fixEnd,jdbcType=BIGINT},
      cycle_type = #{cycleType,jdbcType=VARCHAR},
      cycle_last = #{cycleLast,jdbcType=INTEGER},
      cycle_now = #{cycleNow,jdbcType=VARCHAR},
      cycle_def = #{cycleDef,jdbcType=TINYINT},
      mind_time = #{mindTime,jdbcType=INTEGER},
      need_ration = #{needRation,jdbcType=TINYINT},
      ration_num = #{rationNum,jdbcType=INTEGER},
      publish_time = #{publishTime,jdbcType=BIGINT},
      publish_mode = #{publishMode,jdbcType=TINYINT},
      publish_status = #{publishStatus,jdbcType=TINYINT},
      status = #{status,jdbcType=TINYINT},
      create_time = #{createTime,jdbcType=BIGINT},
      delete_time = #{deleteTime,jdbcType=BIGINT},
      own_user = #{ownUser,jdbcType=VARCHAR},
      own_dept = #{ownDept,jdbcType=VARCHAR}
    where id = #{id,jdbcType=VARCHAR}
  </update>
</mapper>