<?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.lawcase.CaseSimpleMapper">
  <resultMap id="BaseResultMap" type="com.ruoyi.system.domain.lawcase.CaseSimple">
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="ay" jdbcType="VARCHAR" property="ay" />
    <result column="ajlx" jdbcType="VARCHAR" property="ajlx" />
    <result column="gmorfr" jdbcType="VARCHAR" property="gmorfr" />
    <result column="dsr_fr_mc" jdbcType="VARCHAR" property="dsrFrMc" />
    <result column="dsr_fr_xm" jdbcType="VARCHAR" property="dsrFrXm" />
    <result column="dsr_fr_zw" jdbcType="VARCHAR" property="dsrFrZw" />
    <result column="dsr_fr_dz" jdbcType="VARCHAR" property="dsrFrDz" />
    <result column="dsr_fr_tel" jdbcType="VARCHAR" property="dsrFrTel" />
    <result column="dsr_gm_xm" jdbcType="VARCHAR" property="dsrGmXm" />
    <result column="dsr_gm_xb" jdbcType="VARCHAR" property="dsrGmXb" />
    <result column="dsr_gm_nl" jdbcType="VARCHAR" property="dsrGmNl" />
    <result column="dsr_gm_sfz" jdbcType="VARCHAR" property="dsrGmSfz" />
    <result column="dsr_gm_dz" jdbcType="VARCHAR" property="dsrGmDz" />
    <result column="dsr_gm_tel" jdbcType="VARCHAR" property="dsrGmTel" />
    <result column="sbsj" jdbcType="VARCHAR" property="sbsj" />
    <result column="create_time" jdbcType="VARCHAR" property="createTime" />
    <result column="create_by" jdbcType="VARCHAR" property="createBy" />
    <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" />
    <result column="ylzd6" jdbcType="VARCHAR" property="ylzd6" />
    <result column="ylzd7" jdbcType="VARCHAR" property="ylzd7" />
    <result column="ylzd8" jdbcType="VARCHAR" property="ylzd8" />
    <result column="ylzd9" jdbcType="VARCHAR" property="ylzd9" />
    <result column="ylzd10" jdbcType="VARCHAR" property="ylzd10" />
  </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, ay, ajlx, gmorfr, dsr_fr_mc, dsr_fr_xm, dsr_fr_zw, dsr_fr_dz, dsr_fr_tel,
    dsr_gm_xm, dsr_gm_xb, dsr_gm_nl, dsr_gm_sfz, dsr_gm_dz, dsr_gm_tel, sbsj, create_time,
    create_by, ylzd1, ylzd2, ylzd3, ylzd4, ylzd5, ylzd6, ylzd7, ylzd8, ylzd9, ylzd10
  </sql>
  <select id="selectByExample" parameterType="com.ruoyi.system.domain.lawcase.CaseSimpleExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from case_simple
    <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 case_simple
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from case_simple
    where id = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.ruoyi.system.domain.lawcase.CaseSimpleExample">
    delete from case_simple
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.ruoyi.system.domain.lawcase.CaseSimple">
    insert into case_simple (id, ay,
      ajlx, gmorfr, dsr_fr_mc,
      dsr_fr_xm, dsr_fr_zw, dsr_fr_dz,
      dsr_fr_tel, dsr_gm_xm, dsr_gm_xb,
      dsr_gm_nl, dsr_gm_sfz, dsr_gm_dz,
      dsr_gm_tel, sbsj, create_time,
      create_by, ylzd1, ylzd2,
      ylzd3, ylzd4, ylzd5,
      ylzd6, ylzd7, ylzd8,
      ylzd9, ylzd10)
    values (#{id,jdbcType=VARCHAR}, #{ay,jdbcType=VARCHAR},
      #{ajlx,jdbcType=VARCHAR}, #{gmorfr,jdbcType=VARCHAR}, #{dsrFrMc,jdbcType=VARCHAR},
      #{dsrFrXm,jdbcType=VARCHAR}, #{dsrFrZw,jdbcType=VARCHAR}, #{dsrFrDz,jdbcType=VARCHAR},
      #{dsrFrTel,jdbcType=VARCHAR}, #{dsrGmXm,jdbcType=VARCHAR}, #{dsrGmXb,jdbcType=VARCHAR},
      #{dsrGmNl,jdbcType=VARCHAR}, #{dsrGmSfz,jdbcType=VARCHAR}, #{dsrGmDz,jdbcType=VARCHAR},
      #{dsrGmTel,jdbcType=VARCHAR}, #{sbsj,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR},
      #{createBy,jdbcType=VARCHAR}, #{ylzd1,jdbcType=VARCHAR}, #{ylzd2,jdbcType=VARCHAR},
      #{ylzd3,jdbcType=VARCHAR}, #{ylzd4,jdbcType=VARCHAR}, #{ylzd5,jdbcType=VARCHAR},
      #{ylzd6,jdbcType=VARCHAR}, #{ylzd7,jdbcType=VARCHAR}, #{ylzd8,jdbcType=VARCHAR},
      #{ylzd9,jdbcType=VARCHAR}, #{ylzd10,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.ruoyi.system.domain.lawcase.CaseSimple">
    insert into case_simple
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="ay != null">
        ay,
      </if>
      <if test="ajlx != null">
        ajlx,
      </if>
      <if test="gmorfr != null">
        gmorfr,
      </if>
      <if test="dsrFrMc != null">
        dsr_fr_mc,
      </if>
      <if test="dsrFrXm != null">
        dsr_fr_xm,
      </if>
      <if test="dsrFrZw != null">
        dsr_fr_zw,
      </if>
      <if test="dsrFrDz != null">
        dsr_fr_dz,
      </if>
      <if test="dsrFrTel != null">
        dsr_fr_tel,
      </if>
      <if test="dsrGmXm != null">
        dsr_gm_xm,
      </if>
      <if test="dsrGmXb != null">
        dsr_gm_xb,
      </if>
      <if test="dsrGmNl != null">
        dsr_gm_nl,
      </if>
      <if test="dsrGmSfz != null">
        dsr_gm_sfz,
      </if>
      <if test="dsrGmDz != null">
        dsr_gm_dz,
      </if>
      <if test="dsrGmTel != null">
        dsr_gm_tel,
      </if>
      <if test="sbsj != null">
        sbsj,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createBy != null">
        create_by,
      </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="ylzd6 != null">
        ylzd6,
      </if>
      <if test="ylzd7 != null">
        ylzd7,
      </if>
      <if test="ylzd8 != null">
        ylzd8,
      </if>
      <if test="ylzd9 != null">
        ylzd9,
      </if>
      <if test="ylzd10 != null">
        ylzd10,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="ay != null">
        #{ay,jdbcType=VARCHAR},
      </if>
      <if test="ajlx != null">
        #{ajlx,jdbcType=VARCHAR},
      </if>
      <if test="gmorfr != null">
        #{gmorfr,jdbcType=VARCHAR},
      </if>
      <if test="dsrFrMc != null">
        #{dsrFrMc,jdbcType=VARCHAR},
      </if>
      <if test="dsrFrXm != null">
        #{dsrFrXm,jdbcType=VARCHAR},
      </if>
      <if test="dsrFrZw != null">
        #{dsrFrZw,jdbcType=VARCHAR},
      </if>
      <if test="dsrFrDz != null">
        #{dsrFrDz,jdbcType=VARCHAR},
      </if>
      <if test="dsrFrTel != null">
        #{dsrFrTel,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmXm != null">
        #{dsrGmXm,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmXb != null">
        #{dsrGmXb,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmNl != null">
        #{dsrGmNl,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmSfz != null">
        #{dsrGmSfz,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmDz != null">
        #{dsrGmDz,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmTel != null">
        #{dsrGmTel,jdbcType=VARCHAR},
      </if>
      <if test="sbsj != null">
        #{sbsj,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=VARCHAR},
      </if>
      <if test="createBy != null">
        #{createBy,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="ylzd6 != null">
        #{ylzd6,jdbcType=VARCHAR},
      </if>
      <if test="ylzd7 != null">
        #{ylzd7,jdbcType=VARCHAR},
      </if>
      <if test="ylzd8 != null">
        #{ylzd8,jdbcType=VARCHAR},
      </if>
      <if test="ylzd9 != null">
        #{ylzd9,jdbcType=VARCHAR},
      </if>
      <if test="ylzd10 != null">
        #{ylzd10,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.ruoyi.system.domain.lawcase.CaseSimpleExample" resultType="java.lang.Long">
    select count(*) from case_simple
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update case_simple
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.ay != null">
        ay = #{record.ay,jdbcType=VARCHAR},
      </if>
      <if test="record.ajlx != null">
        ajlx = #{record.ajlx,jdbcType=VARCHAR},
      </if>
      <if test="record.gmorfr != null">
        gmorfr = #{record.gmorfr,jdbcType=VARCHAR},
      </if>
      <if test="record.dsrFrMc != null">
        dsr_fr_mc = #{record.dsrFrMc,jdbcType=VARCHAR},
      </if>
      <if test="record.dsrFrXm != null">
        dsr_fr_xm = #{record.dsrFrXm,jdbcType=VARCHAR},
      </if>
      <if test="record.dsrFrZw != null">
        dsr_fr_zw = #{record.dsrFrZw,jdbcType=VARCHAR},
      </if>
      <if test="record.dsrFrDz != null">
        dsr_fr_dz = #{record.dsrFrDz,jdbcType=VARCHAR},
      </if>
      <if test="record.dsrFrTel != null">
        dsr_fr_tel = #{record.dsrFrTel,jdbcType=VARCHAR},
      </if>
      <if test="record.dsrGmXm != null">
        dsr_gm_xm = #{record.dsrGmXm,jdbcType=VARCHAR},
      </if>
      <if test="record.dsrGmXb != null">
        dsr_gm_xb = #{record.dsrGmXb,jdbcType=VARCHAR},
      </if>
      <if test="record.dsrGmNl != null">
        dsr_gm_nl = #{record.dsrGmNl,jdbcType=VARCHAR},
      </if>
      <if test="record.dsrGmSfz != null">
        dsr_gm_sfz = #{record.dsrGmSfz,jdbcType=VARCHAR},
      </if>
      <if test="record.dsrGmDz != null">
        dsr_gm_dz = #{record.dsrGmDz,jdbcType=VARCHAR},
      </if>
      <if test="record.dsrGmTel != null">
        dsr_gm_tel = #{record.dsrGmTel,jdbcType=VARCHAR},
      </if>
      <if test="record.sbsj != null">
        sbsj = #{record.sbsj,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.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.ylzd6 != null">
        ylzd6 = #{record.ylzd6,jdbcType=VARCHAR},
      </if>
      <if test="record.ylzd7 != null">
        ylzd7 = #{record.ylzd7,jdbcType=VARCHAR},
      </if>
      <if test="record.ylzd8 != null">
        ylzd8 = #{record.ylzd8,jdbcType=VARCHAR},
      </if>
      <if test="record.ylzd9 != null">
        ylzd9 = #{record.ylzd9,jdbcType=VARCHAR},
      </if>
      <if test="record.ylzd10 != null">
        ylzd10 = #{record.ylzd10,jdbcType=VARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update case_simple
    set id = #{record.id,jdbcType=VARCHAR},
      ay = #{record.ay,jdbcType=VARCHAR},
      ajlx = #{record.ajlx,jdbcType=VARCHAR},
      gmorfr = #{record.gmorfr,jdbcType=VARCHAR},
      dsr_fr_mc = #{record.dsrFrMc,jdbcType=VARCHAR},
      dsr_fr_xm = #{record.dsrFrXm,jdbcType=VARCHAR},
      dsr_fr_zw = #{record.dsrFrZw,jdbcType=VARCHAR},
      dsr_fr_dz = #{record.dsrFrDz,jdbcType=VARCHAR},
      dsr_fr_tel = #{record.dsrFrTel,jdbcType=VARCHAR},
      dsr_gm_xm = #{record.dsrGmXm,jdbcType=VARCHAR},
      dsr_gm_xb = #{record.dsrGmXb,jdbcType=VARCHAR},
      dsr_gm_nl = #{record.dsrGmNl,jdbcType=VARCHAR},
      dsr_gm_sfz = #{record.dsrGmSfz,jdbcType=VARCHAR},
      dsr_gm_dz = #{record.dsrGmDz,jdbcType=VARCHAR},
      dsr_gm_tel = #{record.dsrGmTel,jdbcType=VARCHAR},
      sbsj = #{record.sbsj,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=VARCHAR},
      create_by = #{record.createBy,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},
      ylzd6 = #{record.ylzd6,jdbcType=VARCHAR},
      ylzd7 = #{record.ylzd7,jdbcType=VARCHAR},
      ylzd8 = #{record.ylzd8,jdbcType=VARCHAR},
      ylzd9 = #{record.ylzd9,jdbcType=VARCHAR},
      ylzd10 = #{record.ylzd10,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.system.domain.lawcase.CaseSimple">
    update case_simple
    <set>
      <if test="ay != null">
        ay = #{ay,jdbcType=VARCHAR},
      </if>
      <if test="ajlx != null">
        ajlx = #{ajlx,jdbcType=VARCHAR},
      </if>
      <if test="gmorfr != null">
        gmorfr = #{gmorfr,jdbcType=VARCHAR},
      </if>
      <if test="dsrFrMc != null">
        dsr_fr_mc = #{dsrFrMc,jdbcType=VARCHAR},
      </if>
      <if test="dsrFrXm != null">
        dsr_fr_xm = #{dsrFrXm,jdbcType=VARCHAR},
      </if>
      <if test="dsrFrZw != null">
        dsr_fr_zw = #{dsrFrZw,jdbcType=VARCHAR},
      </if>
      <if test="dsrFrDz != null">
        dsr_fr_dz = #{dsrFrDz,jdbcType=VARCHAR},
      </if>
      <if test="dsrFrTel != null">
        dsr_fr_tel = #{dsrFrTel,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmXm != null">
        dsr_gm_xm = #{dsrGmXm,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmXb != null">
        dsr_gm_xb = #{dsrGmXb,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmNl != null">
        dsr_gm_nl = #{dsrGmNl,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmSfz != null">
        dsr_gm_sfz = #{dsrGmSfz,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmDz != null">
        dsr_gm_dz = #{dsrGmDz,jdbcType=VARCHAR},
      </if>
      <if test="dsrGmTel != null">
        dsr_gm_tel = #{dsrGmTel,jdbcType=VARCHAR},
      </if>
      <if test="sbsj != null">
        sbsj = #{sbsj,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="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="ylzd6 != null">
        ylzd6 = #{ylzd6,jdbcType=VARCHAR},
      </if>
      <if test="ylzd7 != null">
        ylzd7 = #{ylzd7,jdbcType=VARCHAR},
      </if>
      <if test="ylzd8 != null">
        ylzd8 = #{ylzd8,jdbcType=VARCHAR},
      </if>
      <if test="ylzd9 != null">
        ylzd9 = #{ylzd9,jdbcType=VARCHAR},
      </if>
      <if test="ylzd10 != null">
        ylzd10 = #{ylzd10,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.ruoyi.system.domain.lawcase.CaseSimple">
    update case_simple
    set ay = #{ay,jdbcType=VARCHAR},
      ajlx = #{ajlx,jdbcType=VARCHAR},
      gmorfr = #{gmorfr,jdbcType=VARCHAR},
      dsr_fr_mc = #{dsrFrMc,jdbcType=VARCHAR},
      dsr_fr_xm = #{dsrFrXm,jdbcType=VARCHAR},
      dsr_fr_zw = #{dsrFrZw,jdbcType=VARCHAR},
      dsr_fr_dz = #{dsrFrDz,jdbcType=VARCHAR},
      dsr_fr_tel = #{dsrFrTel,jdbcType=VARCHAR},
      dsr_gm_xm = #{dsrGmXm,jdbcType=VARCHAR},
      dsr_gm_xb = #{dsrGmXb,jdbcType=VARCHAR},
      dsr_gm_nl = #{dsrGmNl,jdbcType=VARCHAR},
      dsr_gm_sfz = #{dsrGmSfz,jdbcType=VARCHAR},
      dsr_gm_dz = #{dsrGmDz,jdbcType=VARCHAR},
      dsr_gm_tel = #{dsrGmTel,jdbcType=VARCHAR},
      sbsj = #{sbsj,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=VARCHAR},
      create_by = #{createBy,jdbcType=VARCHAR},
      ylzd1 = #{ylzd1,jdbcType=VARCHAR},
      ylzd2 = #{ylzd2,jdbcType=VARCHAR},
      ylzd3 = #{ylzd3,jdbcType=VARCHAR},
      ylzd4 = #{ylzd4,jdbcType=VARCHAR},
      ylzd5 = #{ylzd5,jdbcType=VARCHAR},
      ylzd6 = #{ylzd6,jdbcType=VARCHAR},
      ylzd7 = #{ylzd7,jdbcType=VARCHAR},
      ylzd8 = #{ylzd8,jdbcType=VARCHAR},
      ylzd9 = #{ylzd9,jdbcType=VARCHAR},
      ylzd10 = #{ylzd10,jdbcType=VARCHAR}
    where id = #{id,jdbcType=VARCHAR}
  </update>

  <sql id="Base_Column_MonthList">
    select MONTH(DATE_SUB(CURDATE(), INTERVAL 5 MONTH)) as month,YEAR(DATE_SUB(CURDATE(), INTERVAL 5 MONTH)) as year,1 as sort union
	select MONTH(DATE_SUB(CURDATE(), INTERVAL 4 MONTH)),YEAR(DATE_SUB(CURDATE(), INTERVAL 4 MONTH)),2 as sort union
	select MONTH(DATE_SUB(CURDATE(), INTERVAL 3 MONTH)),YEAR(DATE_SUB(CURDATE(), INTERVAL 3 MONTH)),3 as sort union
	select MONTH(DATE_SUB(CURDATE(), INTERVAL 2 MONTH)),YEAR(DATE_SUB(CURDATE(), INTERVAL 2 MONTH)),4 as sort union
	select MONTH(DATE_SUB(CURDATE(), INTERVAL 1 MONTH)),YEAR(DATE_SUB(CURDATE(), INTERVAL 1 MONTH)),5 as sort union
	select MONTH(DATE_SUB(CURDATE(), INTERVAL 0 MONTH)),YEAR(DATE_SUB(CURDATE(), INTERVAL 0 MONTH)),6 as sort
  </sql>

   <!-- 塔集大屏新增  简单案件分类数量统计 -->
  <select id="countByType" resultType="map">
    select ajlx,count(id) as num from case_simple group by ajlx
  </select>

  <select id="countByMonth" resultType="map">
    select m.year,m.month,IFNULL(COUNT(n.id),0) as num from (
    <include refid="Base_Column_MonthList" />
    ) m left join case_simple n on m.month=MONTH(n.sbsj) and PERIOD_DIFF(EXTRACT(YEAR_MONTH FROM CURDATE()), EXTRACT(YEAR_MONTH FROM str_to_date(n.sbsj,'%Y-%m-%d')))&lt;6 GROUP BY m.month order by m.sort;
  </select>

</mapper>