<?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.steerinfo.ems.emsscqklg.mapper.EmsScqkLgMapper">
  <resultMap id="BaseResultMap" type="com.steerinfo.ems.emsscqklg.model.EmsScqkLg">
    <id column="DATES" jdbcType="TIMESTAMP" property="dates" />
    <result column="RCL" jdbcType="DECIMAL" property="rcl" />
    <result column="JTSL" jdbcType="DECIMAL" property="jtsl" />
    <result column="SJYL" jdbcType="DECIMAL" property="sjyl" />
    <result column="KCL" jdbcType="DECIMAL" property="kcl" />
    <result column="WJZL" jdbcType="DECIMAL" property="wjzl" />
    <result column="SCLS" jdbcType="DECIMAL" property="scls" />
    <result column="LL_1" jdbcType="DECIMAL" property="ll1" />
    <result column="LL_2" jdbcType="DECIMAL" property="ll2" />
    <result column="FGZL_NBHST" jdbcType="DECIMAL" property="fgzlNbhst" />
    <result column="FGZL_WG" jdbcType="DECIMAL" property="fgzlWg" />
    <result column="LLDLYL" jdbcType="DECIMAL" property="lldlyl" />
    <result column="WGFG_JFGK" jdbcType="DECIMAL" property="wgfgJfgk" />
    <result column="WGFG_QXC" jdbcType="DECIMAL" property="wgfgQxc" />
    <result column="XCF" jdbcType="DECIMAL" property="xcf" />
    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
    <result column="CZR" jdbcType="VARCHAR" property="czr" />
    <result column="CZSJ" jdbcType="TIMESTAMP" property="czsj" />
    <result column="WXGPCL" jdbcType="DECIMAL" property="wxgpcl" />
    <result column="LLB" jdbcType="DECIMAL" property="llb" />
    <result column="GSRCL" jdbcType="DECIMAL" property="gsrcl" />
    <result column="LG_NYS" jdbcType="DECIMAL" property="lgNys" />
    <result column="PGGP" jdbcType="DECIMAL" property="pggp" />
    <result column="PZGGP" jdbcType="DECIMAL" property="pzggp" />
    <result column="YXPGP" jdbcType="DECIMAL" property="yxpgp" />
    <result column="PGGS" jdbcType="DECIMAL" property="pggs" />
    <result column="PZGGS" jdbcType="DECIMAL" property="pzggs" />
    <result column="YXPGS" jdbcType="DECIMAL" property="yxpgs" />
  </resultMap>
  <sql id="columns">
    DATES, RCL, JTSL, SJYL, KCL, WJZL, SCLS, LL_1, LL_2, FGZL_NBHST, FGZL_WG, LLDLYL,
    WGFG_JFGK, WGFG_QXC, XCF, MEMO, CZR, CZSJ, WXGPCL, LLB, GSRCL, LG_NYS, PGGP, PZGGP,
    YXPGP, PGGS, PZGGS, YXPGS
  </sql>
  <sql id="columns_alias">
    t.DATES, t.RCL, t.JTSL, t.SJYL, t.KCL, t.WJZL, t.SCLS, t.LL_1, t.LL_2, t.FGZL_NBHST,
    t.FGZL_WG, t.LLDLYL, t.WGFG_JFGK, t.WGFG_QXC, t.XCF, t.MEMO, t.CZR, t.CZSJ, t.WXGPCL,
    t.LLB, t.GSRCL, t.LG_NYS, t.PGGP, t.PZGGP, t.YXPGP, t.PGGS, t.PZGGS, t.YXPGS
  </sql>
  <sql id="select">
    SELECT <include refid="columns" /> FROM EMS_SCQK_LG
  </sql>
  <sql id="select_alias">
    SELECT <include refid="columns_alias" /> FROM EMS_SCQK_LG t
  </sql>
  <sql id="where">
    <where>
      <if test="dates != null">
        and TO_CHAR(DATES,'yyyy-MM-dd') = #{dates}
      </if>
      <if test="rcl != null">
        and RCL = #{rcl}
      </if>
      <if test="jtsl != null">
        and JTSL = #{jtsl}
      </if>
      <if test="sjyl != null">
        and SJYL = #{sjyl}
      </if>
      <if test="kcl != null">
        and KCL = #{kcl}
      </if>
      <if test="wjzl != null">
        and WJZL = #{wjzl}
      </if>
      <if test="scls != null">
        and SCLS = #{scls}
      </if>
      <if test="ll1 != null">
        and LL_1 = #{ll1}
      </if>
      <if test="ll2 != null">
        and LL_2 = #{ll2}
      </if>
      <if test="fgzlNbhst != null">
        and FGZL_NBHST = #{fgzlNbhst}
      </if>
      <if test="fgzlWg != null">
        and FGZL_WG = #{fgzlWg}
      </if>
      <if test="lldlyl != null">
        and LLDLYL = #{lldlyl}
      </if>
      <if test="wgfgJfgk != null">
        and WGFG_JFGK = #{wgfgJfgk}
      </if>
      <if test="wgfgQxc != null">
        and WGFG_QXC = #{wgfgQxc}
      </if>
      <if test="xcf != null">
        and XCF = #{xcf}
      </if>
      <if test="memo != null and memo != ''">
        and MEMO = #{memo}
      </if>
      <if test="czr != null and czr != ''">
        and CZR = #{czr}
      </if>
      <if test="czsj != null">
        and TO_CHAR(CZSJ,'yyyy-MM-dd') = #{czsj}
      </if>
      <if test="wxgpcl != null">
        and WXGPCL = #{wxgpcl}
      </if>
      <if test="llb != null">
        and LLB = #{llb}
      </if>
      <if test="gsrcl != null">
        and GSRCL = #{gsrcl}
      </if>
      <if test="lgNys != null">
        and LG_NYS = #{lgNys}
      </if>
      <if test="pggp != null">
        and PGGP = #{pggp}
      </if>
      <if test="pzggp != null">
        and PZGGP = #{pzggp}
      </if>
      <if test="yxpgp != null">
        and YXPGP = #{yxpgp}
      </if>
      <if test="pggs != null">
        and PGGS = #{pggs}
      </if>
      <if test="pzggs != null">
        and PZGGS = #{pzggs}
      </if>
      <if test="yxpgs != null">
        and YXPGS = #{yxpgs}
      </if>
    </where>
  </sql>
  <sql id="whereLike">
    <where>
      <if test="dates != null">
        and TO_CHAR(DATES,'yyyy-MM-dd') = #{dates}
      </if>
      <if test="rcl != null">
        and RCL = #{rcl}
      </if>
      <if test="jtsl != null">
        and JTSL = #{jtsl}
      </if>
      <if test="sjyl != null">
        and SJYL = #{sjyl}
      </if>
      <if test="kcl != null">
        and KCL = #{kcl}
      </if>
      <if test="wjzl != null">
        and WJZL = #{wjzl}
      </if>
      <if test="scls != null">
        and SCLS = #{scls}
      </if>
      <if test="ll1 != null">
        and LL_1 = #{ll1}
      </if>
      <if test="ll2 != null">
        and LL_2 = #{ll2}
      </if>
      <if test="fgzlNbhst != null">
        and FGZL_NBHST = #{fgzlNbhst}
      </if>
      <if test="fgzlWg != null">
        and FGZL_WG = #{fgzlWg}
      </if>
      <if test="lldlyl != null">
        and LLDLYL = #{lldlyl}
      </if>
      <if test="wgfgJfgk != null">
        and WGFG_JFGK = #{wgfgJfgk}
      </if>
      <if test="wgfgQxc != null">
        and WGFG_QXC = #{wgfgQxc}
      </if>
      <if test="xcf != null">
        and XCF = #{xcf}
      </if>
      <if test="memo != null and memo != ''">
        and MEMO LIKE '%${memo}%'
      </if>
      <if test="czr != null and czr != ''">
        and CZR LIKE '%${czr}%'
      </if>
      <if test="czsj != null">
        and TO_CHAR(CZSJ,'yyyy-MM-dd') = #{czsj}
      </if>
      <if test="wxgpcl != null">
        and WXGPCL = #{wxgpcl}
      </if>
      <if test="llb != null">
        and LLB = #{llb}
      </if>
      <if test="gsrcl != null">
        and GSRCL = #{gsrcl}
      </if>
      <if test="lgNys != null">
        and LG_NYS = #{lgNys}
      </if>
      <if test="pggp != null">
        and PGGP = #{pggp}
      </if>
      <if test="pzggp != null">
        and PZGGP = #{pzggp}
      </if>
      <if test="yxpgp != null">
        and YXPGP = #{yxpgp}
      </if>
      <if test="pggs != null">
        and PGGS = #{pggs}
      </if>
      <if test="pzggs != null">
        and PZGGS = #{pzggs}
      </if>
      <if test="yxpgs != null">
        and YXPGS = #{yxpgs}
      </if>
    </where>
  </sql>
  <delete id="deleteByPrimaryKey" parameterType="java.util.Date">
    delete from EMS_SCQK_LG
    where DATES = #{dates,jdbcType=TIMESTAMP}
  </delete>
  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
    delete from EMS_SCQK_LG
    where 1!=1
    <if test="rcl != null">
      or RCL = #{rcl}
    </if>
    <if test="jtsl != null">
      or JTSL = #{jtsl}
    </if>
    <if test="sjyl != null">
      or SJYL = #{sjyl}
    </if>
    <if test="kcl != null">
      or KCL = #{kcl}
    </if>
    <if test="wjzl != null">
      or WJZL = #{wjzl}
    </if>
    <if test="scls != null">
      or SCLS = #{scls}
    </if>
    <if test="ll1 != null">
      or LL_1 = #{ll1}
    </if>
    <if test="ll2 != null">
      or LL_2 = #{ll2}
    </if>
    <if test="fgzlNbhst != null">
      or FGZL_NBHST = #{fgzlNbhst}
    </if>
    <if test="fgzlWg != null">
      or FGZL_WG = #{fgzlWg}
    </if>
    <if test="lldlyl != null">
      or LLDLYL = #{lldlyl}
    </if>
    <if test="wgfgJfgk != null">
      or WGFG_JFGK = #{wgfgJfgk}
    </if>
    <if test="wgfgQxc != null">
      or WGFG_QXC = #{wgfgQxc}
    </if>
    <if test="xcf != null">
      or XCF = #{xcf}
    </if>
    <if test="memo != null and memo != ''">
      or MEMO = #{memo}
    </if>
    <if test="czr != null and czr != ''">
      or CZR = #{czr}
    </if>
    <if test="czsj != null">
      or TO_CHAR(CZSJ,'yyyy-MM-dd') = '#{czsj}'
    </if>
    <if test="wxgpcl != null">
      or WXGPCL = #{wxgpcl}
    </if>
    <if test="llb != null">
      or LLB = #{llb}
    </if>
    <if test="gsrcl != null">
      or GSRCL = #{gsrcl}
    </if>
    <if test="lgNys != null">
      or LG_NYS = #{lgNys}
    </if>
    <if test="pggp != null">
      or PGGP = #{pggp}
    </if>
    <if test="pzggp != null">
      or PZGGP = #{pzggp}
    </if>
    <if test="yxpgp != null">
      or YXPGP = #{yxpgp}
    </if>
    <if test="pggs != null">
      or PGGS = #{pggs}
    </if>
    <if test="pzggs != null">
      or PZGGS = #{pzggs}
    </if>
    <if test="yxpgs != null">
      or YXPGS = #{yxpgs}
    </if>
  </delete>
  <insert id="insert" parameterType="com.steerinfo.ems.emsscqklg.model.EmsScqkLg">
    insert into EMS_SCQK_LG (DATES, RCL, JTSL,
    SJYL, KCL, WJZL, SCLS,
    LL_1, LL_2, FGZL_NBHST,
    FGZL_WG, LLDLYL, WGFG_JFGK,
    WGFG_QXC, XCF, MEMO,
    CZR, CZSJ, WXGPCL,
    LLB, GSRCL, LG_NYS,
    PGGP, PZGGP, YXPGP,
    PGGS, PZGGS, YXPGS)
    values (#{dates,jdbcType=TIMESTAMP}, #{rcl,jdbcType=DECIMAL}, #{jtsl,jdbcType=DECIMAL},
    #{sjyl,jdbcType=DECIMAL}, #{kcl,jdbcType=DECIMAL}, #{wjzl,jdbcType=DECIMAL}, #{scls,jdbcType=DECIMAL},
    #{ll1,jdbcType=DECIMAL}, #{ll2,jdbcType=DECIMAL}, #{fgzlNbhst,jdbcType=DECIMAL},
    #{fgzlWg,jdbcType=DECIMAL}, #{lldlyl,jdbcType=DECIMAL}, #{wgfgJfgk,jdbcType=DECIMAL},
    #{wgfgQxc,jdbcType=DECIMAL}, #{xcf,jdbcType=DECIMAL}, #{memo,jdbcType=VARCHAR},
    #{czr,jdbcType=VARCHAR}, #{czsj,jdbcType=TIMESTAMP}, #{wxgpcl,jdbcType=DECIMAL},
    #{llb,jdbcType=DECIMAL}, #{gsrcl,jdbcType=DECIMAL}, #{lgNys,jdbcType=DECIMAL},
    #{pggp,jdbcType=DECIMAL}, #{pzggp,jdbcType=DECIMAL}, #{yxpgp,jdbcType=DECIMAL},
    #{pggs,jdbcType=DECIMAL}, #{pzggs,jdbcType=DECIMAL}, #{yxpgs,jdbcType=DECIMAL})
  </insert>
  <insert id="insertSelective" parameterType="com.steerinfo.ems.emsscqklg.model.EmsScqkLg">
    insert into EMS_SCQK_LG
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="dates != null">
        DATES,
      </if>
      <if test="rcl != null">
        RCL,
      </if>
      <if test="jtsl != null">
        JTSL,
      </if>
      <if test="sjyl != null">
        SJYL,
      </if>
      <if test="kcl != null">
        KCL,
      </if>
      <if test="wjzl != null">
        WJZL,
      </if>
      <if test="scls != null">
        SCLS,
      </if>
      <if test="ll1 != null">
        LL_1,
      </if>
      <if test="ll2 != null">
        LL_2,
      </if>
      <if test="fgzlNbhst != null">
        FGZL_NBHST,
      </if>
      <if test="fgzlWg != null">
        FGZL_WG,
      </if>
      <if test="lldlyl != null">
        LLDLYL,
      </if>
      <if test="wgfgJfgk != null">
        WGFG_JFGK,
      </if>
      <if test="wgfgQxc != null">
        WGFG_QXC,
      </if>
      <if test="xcf != null">
        XCF,
      </if>
      <if test="memo != null">
        MEMO,
      </if>
      <if test="czr != null">
        CZR,
      </if>
      <if test="czsj != null">
        CZSJ,
      </if>
      <if test="wxgpcl != null">
        WXGPCL,
      </if>
      <if test="llb != null">
        LLB,
      </if>
      <if test="gsrcl != null">
        GSRCL,
      </if>
      <if test="lgNys != null">
        LG_NYS,
      </if>
      <if test="pggp != null">
        PGGP,
      </if>
      <if test="pzggp != null">
        PZGGP,
      </if>
      <if test="yxpgp != null">
        YXPGP,
      </if>
      <if test="pggs != null">
        PGGS,
      </if>
      <if test="pzggs != null">
        PZGGS,
      </if>
      <if test="yxpgs != null">
        YXPGS,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="dates != null">
        #{dates,jdbcType=TIMESTAMP},
      </if>
      <if test="rcl != null">
        #{rcl,jdbcType=DECIMAL},
      </if>
      <if test="jtsl != null">
        #{jtsl,jdbcType=DECIMAL},
      </if>
      <if test="sjyl != null">
        #{sjyl,jdbcType=DECIMAL},
      </if>
      <if test="kcl != null">
        #{kcl,jdbcType=DECIMAL},
      </if>
      <if test="wjzl != null">
        #{wjzl,jdbcType=DECIMAL},
      </if>
      <if test="scls != null">
        #{scls,jdbcType=DECIMAL},
      </if>
      <if test="ll1 != null">
        #{ll1,jdbcType=DECIMAL},
      </if>
      <if test="ll2 != null">
        #{ll2,jdbcType=DECIMAL},
      </if>
      <if test="fgzlNbhst != null">
        #{fgzlNbhst,jdbcType=DECIMAL},
      </if>
      <if test="fgzlWg != null">
        #{fgzlWg,jdbcType=DECIMAL},
      </if>
      <if test="lldlyl != null">
        #{lldlyl,jdbcType=DECIMAL},
      </if>
      <if test="wgfgJfgk != null">
        #{wgfgJfgk,jdbcType=DECIMAL},
      </if>
      <if test="wgfgQxc != null">
        #{wgfgQxc,jdbcType=DECIMAL},
      </if>
      <if test="xcf != null">
        #{xcf,jdbcType=DECIMAL},
      </if>
      <if test="memo != null">
        #{memo,jdbcType=VARCHAR},
      </if>
      <if test="czr != null">
        #{czr,jdbcType=VARCHAR},
      </if>
      <if test="czsj != null">
        #{czsj,jdbcType=TIMESTAMP},
      </if>
      <if test="wxgpcl != null">
        #{wxgpcl,jdbcType=DECIMAL},
      </if>
      <if test="llb != null">
        #{llb,jdbcType=DECIMAL},
      </if>
      <if test="gsrcl != null">
        #{gsrcl,jdbcType=DECIMAL},
      </if>
      <if test="lgNys != null">
        #{lgNys,jdbcType=DECIMAL},
      </if>
      <if test="pggp != null">
        #{pggp,jdbcType=DECIMAL},
      </if>
      <if test="pzggp != null">
        #{pzggp,jdbcType=DECIMAL},
      </if>
      <if test="yxpgp != null">
        #{yxpgp,jdbcType=DECIMAL},
      </if>
      <if test="pggs != null">
        #{pggs,jdbcType=DECIMAL},
      </if>
      <if test="pzggs != null">
        #{pzggs,jdbcType=DECIMAL},
      </if>
      <if test="yxpgs != null">
        #{yxpgs,jdbcType=DECIMAL},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKey" parameterType="com.steerinfo.ems.emsscqklg.model.EmsScqkLg">
    update EMS_SCQK_LG
    set RCL = #{rcl,jdbcType=DECIMAL},
    JTSL = #{jtsl,jdbcType=DECIMAL},
    SJYL = #{sjyl,jdbcType=DECIMAL},
    KCL = #{kcl,jdbcType=DECIMAL},
    WJZL = #{wjzl,jdbcType=DECIMAL},
    SCLS = #{scls,jdbcType=DECIMAL},
    LL_1 = #{ll1,jdbcType=DECIMAL},
    LL_2 = #{ll2,jdbcType=DECIMAL},
    FGZL_NBHST = #{fgzlNbhst,jdbcType=DECIMAL},
    FGZL_WG = #{fgzlWg,jdbcType=DECIMAL},
    LLDLYL = #{lldlyl,jdbcType=DECIMAL},
    WGFG_JFGK = #{wgfgJfgk,jdbcType=DECIMAL},
    WGFG_QXC = #{wgfgQxc,jdbcType=DECIMAL},
    XCF = #{xcf,jdbcType=DECIMAL},
    MEMO = #{memo,jdbcType=VARCHAR},
    CZR = #{czr,jdbcType=VARCHAR},
    CZSJ = #{czsj,jdbcType=TIMESTAMP},
    WXGPCL = #{wxgpcl,jdbcType=DECIMAL},
    LLB = #{llb,jdbcType=DECIMAL},
    GSRCL = #{gsrcl,jdbcType=DECIMAL},
    LG_NYS = #{lgNys,jdbcType=DECIMAL},
    PGGP = #{pggp,jdbcType=DECIMAL},
    PZGGP = #{pzggp,jdbcType=DECIMAL},
    YXPGP = #{yxpgp,jdbcType=DECIMAL},
    PGGS = #{pggs,jdbcType=DECIMAL},
    PZGGS = #{pzggs,jdbcType=DECIMAL},
    YXPGS = #{yxpgs,jdbcType=DECIMAL}
    where DATES = #{dates,jdbcType=TIMESTAMP}
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.ems.emsscqklg.model.EmsScqkLg">
    update EMS_SCQK_LG
    <set>
      <if test="rcl != null">
        RCL = #{rcl,jdbcType=DECIMAL},
      </if>
      <if test="jtsl != null">
        JTSL = #{jtsl,jdbcType=DECIMAL},
      </if>
      <if test="sjyl != null">
        SJYL = #{sjyl,jdbcType=DECIMAL},
      </if>
      <if test="kcl != null">
        KCL = #{kcl,jdbcType=DECIMAL},
      </if>
      <if test="wjzl != null">
        WJZL = #{wjzl,jdbcType=DECIMAL},
      </if>
      <if test="scls != null">
        SCLS = #{scls,jdbcType=DECIMAL},
      </if>
      <if test="ll1 != null">
        LL_1 = #{ll1,jdbcType=DECIMAL},
      </if>
      <if test="ll2 != null">
        LL_2 = #{ll2,jdbcType=DECIMAL},
      </if>
      <if test="fgzlNbhst != null">
        FGZL_NBHST = #{fgzlNbhst,jdbcType=DECIMAL},
      </if>
      <if test="fgzlWg != null">
        FGZL_WG = #{fgzlWg,jdbcType=DECIMAL},
      </if>
      <if test="lldlyl != null">
        LLDLYL = #{lldlyl,jdbcType=DECIMAL},
      </if>
      <if test="wgfgJfgk != null">
        WGFG_JFGK = #{wgfgJfgk,jdbcType=DECIMAL},
      </if>
      <if test="wgfgQxc != null">
        WGFG_QXC = #{wgfgQxc,jdbcType=DECIMAL},
      </if>
      <if test="xcf != null">
        XCF = #{xcf,jdbcType=DECIMAL},
      </if>
      <if test="memo != null">
        MEMO = #{memo,jdbcType=VARCHAR},
      </if>
      <if test="czr != null">
        CZR = #{czr,jdbcType=VARCHAR},
      </if>
      <if test="czsj != null">
        CZSJ = #{czsj,jdbcType=TIMESTAMP},
      </if>
      <if test="wxgpcl != null">
        WXGPCL = #{wxgpcl,jdbcType=DECIMAL},
      </if>
      <if test="llb != null">
        LLB = #{llb,jdbcType=DECIMAL},
      </if>
      <if test="gsrcl != null">
        GSRCL = #{gsrcl,jdbcType=DECIMAL},
      </if>
      <if test="lgNys != null">
        LG_NYS = #{lgNys,jdbcType=DECIMAL},
      </if>
      <if test="pggp != null">
        PGGP = #{pggp,jdbcType=DECIMAL},
      </if>
      <if test="pzggp != null">
        PZGGP = #{pzggp,jdbcType=DECIMAL},
      </if>
      <if test="yxpgp != null">
        YXPGP = #{yxpgp,jdbcType=DECIMAL},
      </if>
      <if test="pggs != null">
        PGGS = #{pggs,jdbcType=DECIMAL},
      </if>
      <if test="pzggs != null">
        PZGGS = #{pzggs,jdbcType=DECIMAL},
      </if>
      <if test="yxpgs != null">
        YXPGS = #{yxpgs,jdbcType=DECIMAL},
      </if>
    </set>
    where DATES = #{dates,jdbcType=TIMESTAMP}
  </update>
  <select id="selectByPrimaryKey" parameterType="java.util.Date" resultMap="BaseResultMap">
    <include refid="select" />
    where DATES = #{dates,jdbcType=TIMESTAMP}
  </select>
  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select" />
    <include refid="where" />
  </select>
  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select" />
    <include refid="whereLike" />
  </select>
  <insert id="batchInsert" parameterType="java.util.List">
    insert into EMS_SCQK_LG
    (DATES,
    RCL, JTSL, SJYL,
    KCL, WJZL, SCLS,
    LL_1, LL_2, FGZL_NBHST,
    FGZL_WG, LLDLYL, WGFG_JFGK,
    WGFG_QXC, XCF, MEMO,
    CZR, CZSJ, WXGPCL,
    LLB, GSRCL, LG_NYS,
    PGGP, PZGGP, YXPGP,
    PGGS, PZGGS, YXPGS
    )
    ( <foreach collection="list" item="item" separator="union all">
    select
    #{item.dates,jdbcType=TIMESTAMP},
    #{item.rcl,jdbcType=DECIMAL}, #{item.jtsl,jdbcType=DECIMAL}, #{item.sjyl,jdbcType=DECIMAL},
    #{item.kcl,jdbcType=DECIMAL}, #{item.wjzl,jdbcType=DECIMAL}, #{item.scls,jdbcType=DECIMAL},
    #{item.ll1,jdbcType=DECIMAL}, #{item.ll2,jdbcType=DECIMAL}, #{item.fgzlNbhst,jdbcType=DECIMAL},
    #{item.fgzlWg,jdbcType=DECIMAL}, #{item.lldlyl,jdbcType=DECIMAL}, #{item.wgfgJfgk,jdbcType=DECIMAL},
    #{item.wgfgQxc,jdbcType=DECIMAL}, #{item.xcf,jdbcType=DECIMAL}, #{item.memo,jdbcType=VARCHAR},
    #{item.czr,jdbcType=VARCHAR}, #{item.czsj,jdbcType=TIMESTAMP}, #{item.wxgpcl,jdbcType=DECIMAL},
    #{item.llb,jdbcType=DECIMAL}, #{item.gsrcl,jdbcType=DECIMAL}, #{item.lgNys,jdbcType=DECIMAL},
    #{item.pggp,jdbcType=DECIMAL}, #{item.pzggp,jdbcType=DECIMAL}, #{item.yxpgp,jdbcType=DECIMAL},
    #{item.pggs,jdbcType=DECIMAL}, #{item.pzggs,jdbcType=DECIMAL}, #{item.yxpgs,jdbcType=DECIMAL}
    from dual
  </foreach> )
  </insert>
  <update id="batchUpdate" parameterType="java.util.List">
    update EMS_SCQK_LG
    set
    DATES=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.dates,jdbcType=TIMESTAMP}
    </foreach>
    ,RCL=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.rcl,jdbcType=DECIMAL}
    </foreach>
    ,JTSL=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.jtsl,jdbcType=DECIMAL}
    </foreach>
    ,SJYL=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.sjyl,jdbcType=DECIMAL}
    </foreach>
    ,KCL=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.kcl,jdbcType=DECIMAL}
    </foreach>
    ,WJZL=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.wjzl,jdbcType=DECIMAL}
    </foreach>
    ,SCLS=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.scls,jdbcType=DECIMAL}
    </foreach>
    ,LL_1=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.ll1,jdbcType=DECIMAL}
    </foreach>
    ,LL_2=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.ll2,jdbcType=DECIMAL}
    </foreach>
    ,FGZL_NBHST=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.fgzlNbhst,jdbcType=DECIMAL}
    </foreach>
    ,FGZL_WG=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.fgzlWg,jdbcType=DECIMAL}
    </foreach>
    ,LLDLYL=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.lldlyl,jdbcType=DECIMAL}
    </foreach>
    ,WGFG_JFGK=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.wgfgJfgk,jdbcType=DECIMAL}
    </foreach>
    ,WGFG_QXC=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.wgfgQxc,jdbcType=DECIMAL}
    </foreach>
    ,XCF=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.xcf,jdbcType=DECIMAL}
    </foreach>
    ,MEMO=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.memo,jdbcType=VARCHAR}
    </foreach>
    ,CZR=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.czr,jdbcType=VARCHAR}
    </foreach>
    ,CZSJ=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.czsj,jdbcType=TIMESTAMP}
    </foreach>
    ,WXGPCL=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.wxgpcl,jdbcType=DECIMAL}
    </foreach>
    ,LLB=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.llb,jdbcType=DECIMAL}
    </foreach>
    ,GSRCL=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.gsrcl,jdbcType=DECIMAL}
    </foreach>
    ,LG_NYS=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.lgNys,jdbcType=DECIMAL}
    </foreach>
    ,PGGP=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.pggp,jdbcType=DECIMAL}
    </foreach>
    ,PZGGP=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.pzggp,jdbcType=DECIMAL}
    </foreach>
    ,YXPGP=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.yxpgp,jdbcType=DECIMAL}
    </foreach>
    ,PGGS=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.pggs,jdbcType=DECIMAL}
    </foreach>
    ,PZGGS=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.pzggs,jdbcType=DECIMAL}
    </foreach>
    ,YXPGS=
    <foreach close="end" collection="list" index="index" item="item" open="case DATES" separator=" ">
      when #{item.dates,jdbcType=TIMESTAMP} then #{item.yxpgs,jdbcType=DECIMAL}
    </foreach>
    where DATES in
    <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
      #{item.dates,jdbcType=TIMESTAMP}
    </foreach>
  </update>
  <delete id="batchDelete" parameterType="java.util.List">
    delete from EMS_SCQK_LG
    where DATES in
    <foreach close=")" collection="list" item="id" open="(" separator=",">
      #{id}
    </foreach>
  </delete>
  <!-- 友情提示！！！-->
  <!-- 请将自己写的代码放在此标签之下，方便以后粘贴复制。-->
  <update id="updateByMap" parameterType="java.util.HashMap">
    update EMS_SCQK_LG
    <set>
      <if test="rcl != null">
        RCL = #{rcl,jdbcType=DECIMAL},
      </if>
      <if test="jtsl != null">
        JTSL = #{jtsl,jdbcType=DECIMAL},
      </if>
      <if test="sjyl != null">
        SJYL = #{sjyl,jdbcType=DECIMAL},
      </if>
      <if test="kcl != null">
        KCL = #{kcl,jdbcType=DECIMAL},
      </if>
      <if test="wjzl != null">
        WJZL = #{wjzl,jdbcType=DECIMAL},
      </if>
      <if test="scls != null">
        SCLS = #{scls,jdbcType=DECIMAL},
      </if>
      <if test="ll1 != null">
        LL_1 = #{ll1,jdbcType=DECIMAL},
      </if>
      <if test="ll2 != null">
        LL_2 = #{ll2,jdbcType=DECIMAL},
      </if>
      <if test="fgzlNbhst != null">
        FGZL_NBHST = #{fgzlNbhst,jdbcType=DECIMAL},
      </if>
      <if test="fgzlWg != null">
        FGZL_WG = #{fgzlWg,jdbcType=DECIMAL},
      </if>
      <if test="lldlyl != null">
        LLDLYL = #{lldlyl,jdbcType=DECIMAL},
      </if>
      <if test="wgfgJfgk != null">
        WGFG_JFGK = #{wgfgJfgk,jdbcType=DECIMAL},
      </if>
      <if test="wgfgQxc != null">
        WGFG_QXC = #{wgfgQxc,jdbcType=DECIMAL},
      </if>
      <if test="xcf != null">
        XCF = #{xcf,jdbcType=DECIMAL},
      </if>
      <if test="memo != null">
        MEMO = #{memo,jdbcType=VARCHAR},
      </if>
      <if test="czr != null">
        CZR = #{czr,jdbcType=VARCHAR},
      </if>
      <if test="czsj != null">
        CZSJ = #{czsj,jdbcType=TIMESTAMP},
      </if>
      <if test="wxgpcl != null">
        WXGPCL = #{wxgpcl,jdbcType=DECIMAL},
      </if>
      <if test="llb != null">
        LLB = #{llb,jdbcType=DECIMAL},
      </if>
      <if test="gsrcl != null">
        GSRCL = #{gsrcl,jdbcType=DECIMAL},
      </if>
      <if test="lgNys != null">
        LG_NYS = #{lgNys,jdbcType=DECIMAL},
      </if>
      <if test="pggp != null">
        PGGP = #{pggp,jdbcType=DECIMAL},
      </if>
      <if test="pzggp != null">
        PZGGP = #{pzggp,jdbcType=DECIMAL},
      </if>
      <if test="yxpgp != null">
        YXPGP = #{yxpgp,jdbcType=DECIMAL},
      </if>
      <if test="pggs != null">
        PGGS = #{pggs,jdbcType=DECIMAL},
      </if>
      <if test="pzggs != null">
        PZGGS = #{pzggs,jdbcType=DECIMAL},
      </if>
      <if test="yxpgs != null">
        YXPGS = #{yxpgs,jdbcType=DECIMAL},
      </if>
    </set>
    where DATES = #{dates,jdbcType=TIMESTAMP}
  </update>
</mapper>