|
@@ -13,14 +13,21 @@
|
|
<result column="TYPE" jdbcType="VARCHAR" property="type" />
|
|
<result column="TYPE" jdbcType="VARCHAR" property="type" />
|
|
<result column="MEMO" jdbcType="VARCHAR" property="memo" />
|
|
<result column="MEMO" jdbcType="VARCHAR" property="memo" />
|
|
<result column="DATES" jdbcType="VARCHAR" property="dates" />
|
|
<result column="DATES" jdbcType="VARCHAR" property="dates" />
|
|
|
|
+ <result column="RECTIFICATIONDATE" jdbcType="VARCHAR" property="rectificationdate" />
|
|
|
|
+ <result column="VERIFY" jdbcType="VARCHAR" property="verify" />
|
|
|
|
+ <result column="MONEY" jdbcType="DECIMAL" property="money" />
|
|
|
|
+ <result column="PLAN" jdbcType="VARCHAR" property="plan" />
|
|
|
|
+ <result column="HAZARD" jdbcType="VARCHAR" property="hazard" />
|
|
|
|
+ <result column="MEASURE" jdbcType="VARCHAR" property="measure" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
ID, PROCESS, CREATEMAN, CREATETIME, UPDATEMAN, UPDATETIME, CONTENT, FILENAME, TYPE,
|
|
ID, PROCESS, CREATEMAN, CREATETIME, UPDATEMAN, UPDATETIME, CONTENT, FILENAME, TYPE,
|
|
- MEMO,DATES
|
|
|
|
|
|
+ MEMO, DATES, RECTIFICATIONDATE, VERIFY, MONEY, PLAN, HAZARD, MEASURE
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
t.ID, t.PROCESS, t.CREATEMAN, t.CREATETIME, t.UPDATEMAN, t.UPDATETIME, t.CONTENT,
|
|
t.ID, t.PROCESS, t.CREATEMAN, t.CREATETIME, t.UPDATEMAN, t.UPDATETIME, t.CONTENT,
|
|
- t.FILENAME, t.TYPE, t.MEMO,t.DATES
|
|
|
|
|
|
+ t.FILENAME, t.TYPE, t.MEMO, t.DATES, t.RECTIFICATIONDATE, t.VERIFY, t.MONEY, t.PLAN,
|
|
|
|
+ t.HAZARD, t.MEASURE
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
SELECT <include refid="columns"/> FROM EMS_SAFEINFO
|
|
SELECT <include refid="columns"/> FROM EMS_SAFEINFO
|
|
@@ -30,7 +37,7 @@
|
|
</sql>
|
|
</sql>
|
|
<sql id="where">
|
|
<sql id="where">
|
|
<where>
|
|
<where>
|
|
- <if test="id != null">
|
|
|
|
|
|
+ <if test="id != null and id != ''">
|
|
and ID = #{id}
|
|
and ID = #{id}
|
|
</if>
|
|
</if>
|
|
<if test="process != null and process != ''">
|
|
<if test="process != null and process != ''">
|
|
@@ -61,14 +68,32 @@
|
|
and MEMO = #{memo}
|
|
and MEMO = #{memo}
|
|
</if>
|
|
</if>
|
|
<if test="dates != null and dates != ''">
|
|
<if test="dates != null and dates != ''">
|
|
- and DATES BETWEEN #{dates} and #{dates2}
|
|
|
|
|
|
+ and DATES = #{dates}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rectificationdate != null and rectificationdate != ''">
|
|
|
|
+ and RECTIFICATIONDATE = #{rectificationdate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="verify != null and verify != ''">
|
|
|
|
+ and VERIFY = #{verify}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="money != null">
|
|
|
|
+ and MONEY = #{money}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="plan != null and plan != ''">
|
|
|
|
+ and PLAN = #{plan}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="hazard != null and hazard != ''">
|
|
|
|
+ and HAZARD = #{hazard}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="measure != null and measure != ''">
|
|
|
|
+ and MEASURE = #{measure}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
<where>
|
|
<where>
|
|
- <if test="id != null">
|
|
|
|
- and ID = #{id}
|
|
|
|
|
|
+ <if test="id != null and id != ''">
|
|
|
|
+ and ID LIKE '%${id}%'
|
|
</if>
|
|
</if>
|
|
<if test="process != null and process != ''">
|
|
<if test="process != null and process != ''">
|
|
and PROCESS LIKE '%${process}%'
|
|
and PROCESS LIKE '%${process}%'
|
|
@@ -100,11 +125,29 @@
|
|
<if test="dates != null and dates != ''">
|
|
<if test="dates != null and dates != ''">
|
|
and DATES LIKE '%${dates}%'
|
|
and DATES LIKE '%${dates}%'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="rectificationdate != null and rectificationdate != ''">
|
|
|
|
+ and RECTIFICATIONDATE LIKE '%${rectificationdate}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="verify != null and verify != ''">
|
|
|
|
+ and VERIFY LIKE '%${verify}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="money != null">
|
|
|
|
+ and MONEY = #{money}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="plan != null and plan != ''">
|
|
|
|
+ and PLAN LIKE '%${plan}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="hazard != null and hazard != ''">
|
|
|
|
+ and HAZARD LIKE '%${hazard}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="measure != null and measure != ''">
|
|
|
|
+ and MEASURE LIKE '%${measure}%'
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
- <delete id="deleteByPrimaryKey" parameterType="string">
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
delete from EMS_SAFEINFO
|
|
delete from EMS_SAFEINFO
|
|
- where ID = #{id,jdbcType=DECIMAL}
|
|
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
</delete>
|
|
</delete>
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
delete from EMS_SAFEINFO
|
|
delete from EMS_SAFEINFO
|
|
@@ -136,19 +179,41 @@
|
|
<if test="memo != null and memo != ''">
|
|
<if test="memo != null and memo != ''">
|
|
or MEMO = #{memo}
|
|
or MEMO = #{memo}
|
|
</if>
|
|
</if>
|
|
- <if test="dates != null and dates != ''">
|
|
|
|
- or DATES = #{dates}
|
|
|
|
- </if>
|
|
|
|
|
|
+ <if test="dates != null and dates != ''">
|
|
|
|
+ or DATES = #{dates}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rectificationdate != null and rectificationdate != ''">
|
|
|
|
+ or RECTIFICATIONDATE = #{rectificationdate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="verify != null and verify != ''">
|
|
|
|
+ or VERIFY = #{verify}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="money != null">
|
|
|
|
+ or MONEY = #{money}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="plan != null and plan != ''">
|
|
|
|
+ or PLAN = #{plan}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="hazard != null and hazard != ''">
|
|
|
|
+ or HAZARD = #{hazard}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="measure != null and measure != ''">
|
|
|
|
+ or MEASURE = #{measure}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.ems.emssafeinfo.model.EmsSafeinfo">
|
|
<insert id="insert" parameterType="com.steerinfo.ems.emssafeinfo.model.EmsSafeinfo">
|
|
insert into EMS_SAFEINFO (ID, PROCESS, CREATEMAN,
|
|
insert into EMS_SAFEINFO (ID, PROCESS, CREATEMAN,
|
|
CREATETIME, UPDATEMAN, UPDATETIME,
|
|
CREATETIME, UPDATEMAN, UPDATETIME,
|
|
CONTENT, FILENAME, TYPE,
|
|
CONTENT, FILENAME, TYPE,
|
|
- MEMO,DATES)
|
|
|
|
- values (#{id,jdbcType=DECIMAL}, #{process,jdbcType=VARCHAR}, #{createman,jdbcType=VARCHAR},
|
|
|
|
|
|
+ MEMO, DATES, RECTIFICATIONDATE,
|
|
|
|
+ VERIFY, MONEY, PLAN,
|
|
|
|
+ HAZARD, MEASURE)
|
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{process,jdbcType=VARCHAR}, #{createman,jdbcType=VARCHAR},
|
|
#{createtime,jdbcType=VARCHAR}, #{updateman,jdbcType=VARCHAR}, #{updatetime,jdbcType=VARCHAR},
|
|
#{createtime,jdbcType=VARCHAR}, #{updateman,jdbcType=VARCHAR}, #{updatetime,jdbcType=VARCHAR},
|
|
#{content,jdbcType=VARCHAR}, #{filename,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
|
|
#{content,jdbcType=VARCHAR}, #{filename,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
|
|
- #{memo,jdbcType=VARCHAR},#{dates,jdbcType=VARCHAR})
|
|
|
|
|
|
+ #{memo,jdbcType=VARCHAR}, #{dates,jdbcType=VARCHAR}, #{rectificationdate,jdbcType=VARCHAR},
|
|
|
|
+ #{verify,jdbcType=VARCHAR}, #{money,jdbcType=DECIMAL}, #{plan,jdbcType=VARCHAR},
|
|
|
|
+ #{hazard,jdbcType=VARCHAR}, #{measure,jdbcType=VARCHAR})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.ems.emssafeinfo.model.EmsSafeinfo">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.ems.emssafeinfo.model.EmsSafeinfo">
|
|
insert into EMS_SAFEINFO
|
|
insert into EMS_SAFEINFO
|
|
@@ -186,10 +251,28 @@
|
|
<if test="dates != null">
|
|
<if test="dates != null">
|
|
DATES,
|
|
DATES,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="rectificationdate != null">
|
|
|
|
+ RECTIFICATIONDATE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="verify != null">
|
|
|
|
+ VERIFY,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="money != null">
|
|
|
|
+ MONEY,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="plan != null">
|
|
|
|
+ PLAN,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="hazard != null">
|
|
|
|
+ HAZARD,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="measure != null">
|
|
|
|
+ MEASURE,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
- #{id,jdbcType=DECIMAL},
|
|
|
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="process != null">
|
|
<if test="process != null">
|
|
#{process,jdbcType=VARCHAR},
|
|
#{process,jdbcType=VARCHAR},
|
|
@@ -218,8 +301,26 @@
|
|
<if test="memo != null">
|
|
<if test="memo != null">
|
|
#{memo,jdbcType=VARCHAR},
|
|
#{memo,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="memo != null">
|
|
|
|
- #{dates,jdbcType=VARCHAR}
|
|
|
|
|
|
+ <if test="dates != null">
|
|
|
|
+ #{dates,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rectificationdate != null">
|
|
|
|
+ #{rectificationdate,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="verify != null">
|
|
|
|
+ #{verify,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="money != null">
|
|
|
|
+ #{money,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="plan != null">
|
|
|
|
+ #{plan,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="hazard != null">
|
|
|
|
+ #{hazard,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="measure != null">
|
|
|
|
+ #{measure,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
@@ -234,8 +335,14 @@
|
|
FILENAME = #{filename,jdbcType=VARCHAR},
|
|
FILENAME = #{filename,jdbcType=VARCHAR},
|
|
TYPE = #{type,jdbcType=VARCHAR},
|
|
TYPE = #{type,jdbcType=VARCHAR},
|
|
MEMO = #{memo,jdbcType=VARCHAR},
|
|
MEMO = #{memo,jdbcType=VARCHAR},
|
|
- DATES = #{dates,jdbcType=VARCHAR}
|
|
|
|
- where ID = #{id,jdbcType=DECIMAL}
|
|
|
|
|
|
+ DATES = #{dates,jdbcType=VARCHAR},
|
|
|
|
+ RECTIFICATIONDATE = #{rectificationdate,jdbcType=VARCHAR},
|
|
|
|
+ VERIFY = #{verify,jdbcType=VARCHAR},
|
|
|
|
+ MONEY = #{money,jdbcType=DECIMAL},
|
|
|
|
+ PLAN = #{plan,jdbcType=VARCHAR},
|
|
|
|
+ HAZARD = #{hazard,jdbcType=VARCHAR},
|
|
|
|
+ MEASURE = #{measure,jdbcType=VARCHAR}
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.ems.emssafeinfo.model.EmsSafeinfo">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.ems.emssafeinfo.model.EmsSafeinfo">
|
|
update EMS_SAFEINFO
|
|
update EMS_SAFEINFO
|
|
@@ -268,58 +375,36 @@
|
|
MEMO = #{memo,jdbcType=VARCHAR},
|
|
MEMO = #{memo,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="dates != null">
|
|
<if test="dates != null">
|
|
- DATES = #{dates,jdbcType=VARCHAR}
|
|
|
|
|
|
+ DATES = #{dates,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- </set>
|
|
|
|
- where ID = #{id,jdbcType=DECIMAL}
|
|
|
|
- </update>
|
|
|
|
- <select id="selectByPrimaryKey" parameterType="string" resultMap="BaseResultMap">
|
|
|
|
- <include refid="select"/>
|
|
|
|
- where ID = #{id,jdbcType=DECIMAL}
|
|
|
|
- </select>
|
|
|
|
- <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
- <include refid="select"/>
|
|
|
|
- <where>
|
|
|
|
- <if test="id != null">
|
|
|
|
- and ID = #{id}
|
|
|
|
|
|
+ <if test="rectificationdate != null">
|
|
|
|
+ RECTIFICATIONDATE = #{rectificationdate,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="process != null and process != ''">
|
|
|
|
- and PROCESS in
|
|
|
|
- <foreach collection="array" index="index" item="process" open="(" separator="," close=")">
|
|
|
|
- #{process}
|
|
|
|
- </foreach>
|
|
|
|
|
|
+ <if test="verify != null">
|
|
|
|
+ VERIFY = #{verify,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="type != null and type != ''">
|
|
|
|
- and TYPE in
|
|
|
|
- <foreach collection="array" index="index" item="type" open="(" separator="," close=")">
|
|
|
|
- #{type}
|
|
|
|
- </foreach>
|
|
|
|
|
|
+ <if test="money != null">
|
|
|
|
+ MONEY = #{money,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
- <if test="dates != null and dates != ''">
|
|
|
|
- and DATES BETWEEN #{dates} and #{dates2}
|
|
|
|
|
|
+ <if test="plan != null">
|
|
|
|
+ PLAN = #{plan,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- </where>
|
|
|
|
- </select>
|
|
|
|
-
|
|
|
|
- <select id="selectByParameters2" resultMap="BaseResultMap">
|
|
|
|
- <include refid="select"/>
|
|
|
|
- <where>
|
|
|
|
- <if test="process != null and process != ''">
|
|
|
|
- and PROCESS in
|
|
|
|
- <foreach collection="process" index="index" item="process" open="(" separator="," close=")">
|
|
|
|
- #{process}
|
|
|
|
- </foreach>
|
|
|
|
- </if>
|
|
|
|
- <if test="type != null and type != ''">
|
|
|
|
- and TYPE in
|
|
|
|
- <foreach collection="type" index="index" item="type" open="(" separator="," close=")">
|
|
|
|
- #{type}
|
|
|
|
- </foreach>
|
|
|
|
|
|
+ <if test="hazard != null">
|
|
|
|
+ HAZARD = #{hazard,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="dates != null and dates != ''">
|
|
|
|
- and DATES BETWEEN #{dates} and #{dates2}
|
|
|
|
|
|
+ <if test="measure != null">
|
|
|
|
+ MEASURE = #{measure,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- </where>
|
|
|
|
|
|
+ </set>
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </update>
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select"/>
|
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select"/>
|
|
|
|
+ <include refid="where"/>
|
|
</select>
|
|
</select>
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<include refid="select"/>
|
|
<include refid="select"/>
|
|
@@ -330,15 +415,19 @@
|
|
(ID,
|
|
(ID,
|
|
PROCESS, CREATEMAN, CREATETIME,
|
|
PROCESS, CREATEMAN, CREATETIME,
|
|
UPDATEMAN, UPDATETIME, CONTENT,
|
|
UPDATEMAN, UPDATETIME, CONTENT,
|
|
- FILENAME, TYPE, MEMO,DATES
|
|
|
|
- )
|
|
|
|
|
|
+ FILENAME, TYPE, MEMO,
|
|
|
|
+ DATES, RECTIFICATIONDATE, VERIFY,
|
|
|
|
+ MONEY, PLAN, HAZARD,
|
|
|
|
+ MEASURE)
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
- #{item.id,jdbcType=DECIMAL},
|
|
|
|
|
|
+ #{item.id,jdbcType=VARCHAR},
|
|
#{item.process,jdbcType=VARCHAR}, #{item.createman,jdbcType=VARCHAR}, #{item.createtime,jdbcType=VARCHAR},
|
|
#{item.process,jdbcType=VARCHAR}, #{item.createman,jdbcType=VARCHAR}, #{item.createtime,jdbcType=VARCHAR},
|
|
#{item.updateman,jdbcType=VARCHAR}, #{item.updatetime,jdbcType=VARCHAR}, #{item.content,jdbcType=VARCHAR},
|
|
#{item.updateman,jdbcType=VARCHAR}, #{item.updatetime,jdbcType=VARCHAR}, #{item.content,jdbcType=VARCHAR},
|
|
- #{item.filename,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR,},#{item.dates,jdbcType=VARCHAR}
|
|
|
|
- from dual
|
|
|
|
|
|
+ #{item.filename,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR},
|
|
|
|
+ #{item.dates,jdbcType=VARCHAR}, #{item.rectificationdate,jdbcType=VARCHAR}, #{item.verify,jdbcType=VARCHAR},
|
|
|
|
+ #{item.money,jdbcType=DECIMAL}, #{item.plan,jdbcType=VARCHAR}, #{item.hazard,jdbcType=VARCHAR},
|
|
|
|
+ #{item.measure,jdbcType=VARCHAR} from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -346,52 +435,75 @@
|
|
set
|
|
set
|
|
ID=
|
|
ID=
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
- when #{item.id,jdbcType=DECIMAL} then #{item.id,jdbcType=DECIMAL}
|
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.id,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,PROCESS=
|
|
,PROCESS=
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
- when #{item.id,jdbcType=DECIMAL} then #{item.process,jdbcType=VARCHAR}
|
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.process,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,CREATEMAN=
|
|
,CREATEMAN=
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
- when #{item.id,jdbcType=DECIMAL} then #{item.createman,jdbcType=VARCHAR}
|
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.createman,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,CREATETIME=
|
|
,CREATETIME=
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
- when #{item.id,jdbcType=DECIMAL} then #{item.createtime,jdbcType=VARCHAR}
|
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.createtime,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATEMAN=
|
|
,UPDATEMAN=
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
- when #{item.id,jdbcType=DECIMAL} then #{item.updateman,jdbcType=VARCHAR}
|
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.updateman,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATETIME=
|
|
,UPDATETIME=
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
- when #{item.id,jdbcType=DECIMAL} then #{item.updatetime,jdbcType=VARCHAR}
|
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.updatetime,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,CONTENT=
|
|
,CONTENT=
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
- when #{item.id,jdbcType=DECIMAL} then #{item.content,jdbcType=VARCHAR}
|
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.content,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,FILENAME=
|
|
,FILENAME=
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
- when #{item.id,jdbcType=DECIMAL} then #{item.filename,jdbcType=VARCHAR}
|
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.filename,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,TYPE=
|
|
,TYPE=
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
- when #{item.id,jdbcType=DECIMAL} then #{item.type,jdbcType=VARCHAR}
|
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.type,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,MEMO=
|
|
,MEMO=
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
- when #{item.id,jdbcType=DECIMAL} then #{item.memo,jdbcType=VARCHAR}
|
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,DATES=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.dates,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RECTIFICATIONDATE=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.rectificationdate,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,VERIFY=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.verify,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,MONEY=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.money,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,PLAN=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.plan,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,HAZARD=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.hazard,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,MEASURE=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.measure,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
- ,DATES=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
- when #{item.id,jdbcType=DECIMAL} then #{item.dates,jdbcType=VARCHAR}
|
|
|
|
- </foreach>
|
|
|
|
-
|
|
|
|
where ID in
|
|
where ID in
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
- #{item.id,jdbcType=DECIMAL}
|
|
|
|
|
|
+ #{item.id,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
@@ -404,6 +516,27 @@
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<select id="selectmaxid" resultType="string">
|
|
<select id="selectmaxid" resultType="string">
|
|
- select max(t.id) as maxid from EMS_SAFEINFO t
|
|
|
|
|
|
+ select max(t.id) as maxid from EMS_SAFEINFO t
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectByParameters2" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select"/>
|
|
|
|
+ <where>
|
|
|
|
+ <if test="process != null and process != ''">
|
|
|
|
+ PROCESS in
|
|
|
|
+ <foreach collection="process" index="index" item="process" open="(" separator="," close=")">
|
|
|
|
+ #{process}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="hazard != null and hazard != ''">
|
|
|
|
+ and HAZARD in
|
|
|
|
+ <foreach collection="hazard" index="index" item="hazard" open="(" separator="," close=")">
|
|
|
|
+ #{hazard}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+
|
|
|
|
+ <if test="dates != null and dates != '' and dates2 != null and dates2 != ''">
|
|
|
|
+ and CREATETIME BETWEEN #{dates} and #{dates2}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|