|
@@ -1,595 +1,595 @@
|
|
|
-<?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" />
|
|
|
- </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
|
|
|
- </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
|
|
|
- </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>
|
|
|
- </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>
|
|
|
- </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>
|
|
|
- </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)
|
|
|
- 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})
|
|
|
- </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>
|
|
|
- </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>
|
|
|
- </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}
|
|
|
- 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>
|
|
|
- </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)
|
|
|
- ( <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} from dual
|
|
|
- </foreach> )
|
|
|
- </insert>
|
|
|
- <update id="batchUpdate" parameterType="java.util.List">
|
|
|
- update EMS_SCQK_LG
|
|
|
- set
|
|
|
- DATES=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.dates,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,RCL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.rcl,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,JTSL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.jtsl,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,SJYL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.sjyl,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,KCL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.kcl,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,WJZL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.wjzl,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,SCLS=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.scls,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,LL_1=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.ll1,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,LL_2=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.ll2,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,FGZL_NBHST=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.fgzlNbhst,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,FGZL_WG=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.fgzlWg,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,LLDLYL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.lldlyl,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,WGFG_JFGK=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.wgfgJfgk,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,WGFG_QXC=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.wgfgQxc,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,XCF=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.xcf,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,MEMO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.memo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CZR=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.czr,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CZSJ=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.czsj,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,WXGPCL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.wxgpcl,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,LLB=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
- when #{item.dates,jdbcType=TIMESTAMP} then #{item.llb,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- where DATES in
|
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
- #{item.dates,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- </update>
|
|
|
- <delete id="batchDelete" parameterType="java.util.List">
|
|
|
- delete from EMS_SCQK_LG
|
|
|
- where DATES in
|
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- </delete>
|
|
|
- <!-- 友情提示!!!-->
|
|
|
- <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
-
|
|
|
+<?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" />
|
|
|
+ </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
|
|
|
+ </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
|
|
|
+ </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>
|
|
|
+ </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>
|
|
|
+ </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>
|
|
|
+ </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)
|
|
|
+ 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})
|
|
|
+ </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>
|
|
|
+ </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>
|
|
|
+ </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}
|
|
|
+ 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>
|
|
|
+ </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)
|
|
|
+ ( <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} from dual
|
|
|
+ </foreach> )
|
|
|
+ </insert>
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
+ update EMS_SCQK_LG
|
|
|
+ set
|
|
|
+ DATES=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.dates,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,RCL=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.rcl,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,JTSL=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.jtsl,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,SJYL=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.sjyl,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,KCL=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.kcl,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,WJZL=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.wjzl,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,SCLS=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.scls,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,LL_1=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.ll1,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,LL_2=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.ll2,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,FGZL_NBHST=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.fgzlNbhst,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,FGZL_WG=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.fgzlWg,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,LLDLYL=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.lldlyl,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,WGFG_JFGK=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.wgfgJfgk,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,WGFG_QXC=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.wgfgQxc,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,XCF=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.xcf,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,MEMO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.memo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CZR=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.czr,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CZSJ=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.czsj,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,WXGPCL=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.wxgpcl,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,LLB=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case DATES" close="end">
|
|
|
+ when #{item.dates,jdbcType=TIMESTAMP} then #{item.llb,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ where DATES in
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
+ #{item.dates,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
+ delete from EMS_SCQK_LG
|
|
|
+ where DATES in
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
+
|
|
|
</mapper>
|