|
@@ -2,35 +2,36 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.steerinfo.dil.mapper.LogResultMapper">
|
|
<mapper namespace="com.steerinfo.dil.mapper.LogResultMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.steerinfo.dil.model.LogResult">
|
|
<resultMap id="BaseResultMap" type="com.steerinfo.dil.model.LogResult">
|
|
|
- <id column="LOG_ID" jdbcType="DECIMAL" property="logId"/>
|
|
|
|
|
- <result column="LOG_CONTENT" jdbcType="VARCHAR" property="logContent"/>
|
|
|
|
|
- <result column="FOREIGN_KEY_ID" jdbcType="DECIMAL" property="foreignKeyId"/>
|
|
|
|
|
- <result column="FOREIGN_KEY_TYPE" jdbcType="VARCHAR" property="foreignKeyType"/>
|
|
|
|
|
- <result column="METHOD_NAME" jdbcType="VARCHAR" property="methodName"/>
|
|
|
|
|
- <result column="METHOD_DESCRIPTION" jdbcType="VARCHAR" property="methodDescription"/>
|
|
|
|
|
- <result column="EXE_COST" jdbcType="DECIMAL" property="exeCost"/>
|
|
|
|
|
- <result column="FILE_PATH" jdbcType="TIMESTAMP" property="filePath"/>
|
|
|
|
|
- <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime"/>
|
|
|
|
|
- <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername"/>
|
|
|
|
|
- <result column="REMARK" jdbcType="VARCHAR" property="remark"/>
|
|
|
|
|
|
|
+ <id column="LOG_ID" jdbcType="DECIMAL" property="logId" />
|
|
|
|
|
+ <result column="LOG_CONTENT" jdbcType="VARCHAR" property="logContent" />
|
|
|
|
|
+ <result column="FOREIGN_KEY_ID" jdbcType="DECIMAL" property="foreignKeyId" />
|
|
|
|
|
+ <result column="FOREIGN_KEY_TYPE" jdbcType="VARCHAR" property="foreignKeyType" />
|
|
|
|
|
+ <result column="METHOD_NAME" jdbcType="VARCHAR" property="methodName" />
|
|
|
|
|
+ <result column="METHOD_DESCRIPTION" jdbcType="VARCHAR" property="methodDescription" />
|
|
|
|
|
+ <result column="EXE_COST" jdbcType="DECIMAL" property="exeCost" />
|
|
|
|
|
+ <result column="FILE_PATH" jdbcType="VARCHAR" property="filePath" />
|
|
|
|
|
+ <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
|
|
|
|
|
+ <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
|
|
|
|
|
+ <result column="REMARK" jdbcType="VARCHAR" property="remark" />
|
|
|
|
|
+ <result column="DATAGRAM1" jdbcType="VARCHAR" property="datagram1" />
|
|
|
|
|
+ <result column="DATAGRAM2" jdbcType="VARCHAR" property="datagram2" />
|
|
|
|
|
+ <result column="DATAGRAM3" jdbcType="VARCHAR" property="datagram3" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
|
LOG_ID, LOG_CONTENT, FOREIGN_KEY_ID, FOREIGN_KEY_TYPE, METHOD_NAME, METHOD_DESCRIPTION,
|
|
LOG_ID, LOG_CONTENT, FOREIGN_KEY_ID, FOREIGN_KEY_TYPE, METHOD_NAME, METHOD_DESCRIPTION,
|
|
|
- EXE_COST, FILE_PATH, INSERT_TIME, INSERT_USERNAME, REMARK
|
|
|
|
|
|
|
+ EXE_COST, FILE_PATH, INSERT_TIME, INSERT_USERNAME, REMARK, DATAGRAM1, DATAGRAM2,
|
|
|
|
|
+ DATAGRAM3
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
|
t.LOG_ID, t.LOG_CONTENT, t.FOREIGN_KEY_ID, t.FOREIGN_KEY_TYPE, t.METHOD_NAME, t.METHOD_DESCRIPTION,
|
|
t.LOG_ID, t.LOG_CONTENT, t.FOREIGN_KEY_ID, t.FOREIGN_KEY_TYPE, t.METHOD_NAME, t.METHOD_DESCRIPTION,
|
|
|
- t.EXE_COST, t.FILE_PATH, t.INSERT_TIME, t.INSERT_USERNAME, t.REMARK
|
|
|
|
|
|
|
+ t.EXE_COST, t.FILE_PATH, t.INSERT_TIME, t.INSERT_USERNAME, t.REMARK, t.DATAGRAM1,
|
|
|
|
|
+ t.DATAGRAM2, t.DATAGRAM3
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select">
|
|
<sql id="select">
|
|
|
- SELECT
|
|
|
|
|
- <include refid="columns"/>
|
|
|
|
|
- FROM LOG_RESULT
|
|
|
|
|
|
|
+ SELECT <include refid="columns"/> FROM LOG_RESULT
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
|
- SELECT
|
|
|
|
|
- <include refid="columns_alias"/>
|
|
|
|
|
- FROM LOG_RESULT t
|
|
|
|
|
|
|
+ SELECT <include refid="columns_alias"/> FROM LOG_RESULT t
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="where">
|
|
<sql id="where">
|
|
|
<where>
|
|
<where>
|
|
@@ -55,8 +56,8 @@
|
|
|
<if test="exeCost != null">
|
|
<if test="exeCost != null">
|
|
|
and EXE_COST = #{exeCost}
|
|
and EXE_COST = #{exeCost}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="filePath != null">
|
|
|
|
|
- and TO_CHAR(FILE_PATH,'yyyy-MM-dd') = #{filePath}
|
|
|
|
|
|
|
+ <if test="filePath != null and filePath != ''">
|
|
|
|
|
+ and FILE_PATH = #{filePath}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="insertTime != null">
|
|
<if test="insertTime != null">
|
|
|
and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
@@ -67,6 +68,15 @@
|
|
|
<if test="remark != null and remark != ''">
|
|
<if test="remark != null and remark != ''">
|
|
|
and REMARK = #{remark}
|
|
and REMARK = #{remark}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="datagram1 != null and datagram1 != ''">
|
|
|
|
|
+ and DATAGRAM1 = #{datagram1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram2 != null and datagram2 != ''">
|
|
|
|
|
+ and DATAGRAM2 = #{datagram2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram3 != null and datagram3 != ''">
|
|
|
|
|
+ and DATAGRAM3 = #{datagram3}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -92,8 +102,8 @@
|
|
|
<if test="exeCost != null">
|
|
<if test="exeCost != null">
|
|
|
and EXE_COST = #{exeCost}
|
|
and EXE_COST = #{exeCost}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="filePath != null">
|
|
|
|
|
- and TO_CHAR(FILE_PATH,'yyyy-MM-dd') = #{filePath}
|
|
|
|
|
|
|
+ <if test="filePath != null and filePath != ''">
|
|
|
|
|
+ and FILE_PATH LIKE '%${filePath}%'
|
|
|
</if>
|
|
</if>
|
|
|
<if test="insertTime != null">
|
|
<if test="insertTime != null">
|
|
|
and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
@@ -104,6 +114,15 @@
|
|
|
<if test="remark != null and remark != ''">
|
|
<if test="remark != null and remark != ''">
|
|
|
and REMARK LIKE '%${remark}%'
|
|
and REMARK LIKE '%${remark}%'
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="datagram1 != null and datagram1 != ''">
|
|
|
|
|
+ and DATAGRAM1 LIKE '%${datagram1}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram2 != null and datagram2 != ''">
|
|
|
|
|
+ and DATAGRAM2 LIKE '%${datagram2}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram3 != null and datagram3 != ''">
|
|
|
|
|
+ and DATAGRAM3 LIKE '%${datagram3}%'
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
@@ -131,8 +150,8 @@
|
|
|
<if test="exeCost != null">
|
|
<if test="exeCost != null">
|
|
|
or EXE_COST = #{exeCost}
|
|
or EXE_COST = #{exeCost}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="filePath != null">
|
|
|
|
|
- or TO_CHAR(FILE_PATH,'yyyy-MM-dd') = '#{filePath}'
|
|
|
|
|
|
|
+ <if test="filePath != null and filePath != ''">
|
|
|
|
|
+ or FILE_PATH = #{filePath}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="insertTime != null">
|
|
<if test="insertTime != null">
|
|
|
or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
|
|
or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
|
|
@@ -143,16 +162,27 @@
|
|
|
<if test="remark != null and remark != ''">
|
|
<if test="remark != null and remark != ''">
|
|
|
or REMARK = #{remark}
|
|
or REMARK = #{remark}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="datagram1 != null and datagram1 != ''">
|
|
|
|
|
+ or DATAGRAM1 = #{datagram1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram2 != null and datagram2 != ''">
|
|
|
|
|
+ or DATAGRAM2 = #{datagram2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram3 != null and datagram3 != ''">
|
|
|
|
|
+ or DATAGRAM3 = #{datagram3}
|
|
|
|
|
+ </if>
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.LogResult">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.LogResult">
|
|
|
insert into LOG_RESULT (LOG_ID, LOG_CONTENT, FOREIGN_KEY_ID,
|
|
insert into LOG_RESULT (LOG_ID, LOG_CONTENT, FOREIGN_KEY_ID,
|
|
|
- FOREIGN_KEY_TYPE, METHOD_NAME, METHOD_DESCRIPTION,
|
|
|
|
|
- EXE_COST, FILE_PATH, INSERT_TIME,
|
|
|
|
|
- INSERT_USERNAME, REMARK)
|
|
|
|
|
|
|
+ FOREIGN_KEY_TYPE, METHOD_NAME, METHOD_DESCRIPTION,
|
|
|
|
|
+ EXE_COST, FILE_PATH, INSERT_TIME,
|
|
|
|
|
+ INSERT_USERNAME, REMARK, DATAGRAM1,
|
|
|
|
|
+ DATAGRAM2, DATAGRAM3)
|
|
|
values (#{logId,jdbcType=DECIMAL}, #{logContent,jdbcType=VARCHAR}, #{foreignKeyId,jdbcType=DECIMAL},
|
|
values (#{logId,jdbcType=DECIMAL}, #{logContent,jdbcType=VARCHAR}, #{foreignKeyId,jdbcType=DECIMAL},
|
|
|
- #{foreignKeyType,jdbcType=VARCHAR}, #{methodName,jdbcType=VARCHAR}, #{methodDescription,jdbcType=VARCHAR},
|
|
|
|
|
- #{exeCost,jdbcType=DECIMAL}, #{filePath,jdbcType=TIMESTAMP}, #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- #{insertUsername,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ #{foreignKeyType,jdbcType=VARCHAR}, #{methodName,jdbcType=VARCHAR}, #{methodDescription,jdbcType=VARCHAR},
|
|
|
|
|
+ #{exeCost,jdbcType=DECIMAL}, #{filePath,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{insertUsername,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{datagram1,jdbcType=VARCHAR},
|
|
|
|
|
+ #{datagram2,jdbcType=VARCHAR}, #{datagram3,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.LogResult">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.LogResult">
|
|
|
insert into LOG_RESULT
|
|
insert into LOG_RESULT
|
|
@@ -190,6 +220,15 @@
|
|
|
<if test="remark != null">
|
|
<if test="remark != null">
|
|
|
REMARK,
|
|
REMARK,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="datagram1 != null">
|
|
|
|
|
+ DATAGRAM1,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram2 != null">
|
|
|
|
|
+ DATAGRAM2,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram3 != null">
|
|
|
|
|
+ DATAGRAM3,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="logId != null">
|
|
<if test="logId != null">
|
|
@@ -214,7 +253,7 @@
|
|
|
#{exeCost,jdbcType=DECIMAL},
|
|
#{exeCost,jdbcType=DECIMAL},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="filePath != null">
|
|
<if test="filePath != null">
|
|
|
- #{filePath,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
+ #{filePath,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="insertTime != null">
|
|
<if test="insertTime != null">
|
|
|
#{insertTime,jdbcType=TIMESTAMP},
|
|
#{insertTime,jdbcType=TIMESTAMP},
|
|
@@ -225,20 +264,32 @@
|
|
|
<if test="remark != null">
|
|
<if test="remark != null">
|
|
|
#{remark,jdbcType=VARCHAR},
|
|
#{remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="datagram1 != null">
|
|
|
|
|
+ #{datagram1,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram2 != null">
|
|
|
|
|
+ #{datagram2,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram3 != null">
|
|
|
|
|
+ #{datagram3,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.LogResult">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.LogResult">
|
|
|
update LOG_RESULT
|
|
update LOG_RESULT
|
|
|
set LOG_CONTENT = #{logContent,jdbcType=VARCHAR},
|
|
set LOG_CONTENT = #{logContent,jdbcType=VARCHAR},
|
|
|
- FOREIGN_KEY_ID = #{foreignKeyId,jdbcType=DECIMAL},
|
|
|
|
|
- FOREIGN_KEY_TYPE = #{foreignKeyType,jdbcType=VARCHAR},
|
|
|
|
|
- METHOD_NAME = #{methodName,jdbcType=VARCHAR},
|
|
|
|
|
- METHOD_DESCRIPTION = #{methodDescription,jdbcType=VARCHAR},
|
|
|
|
|
- EXE_COST = #{exeCost,jdbcType=DECIMAL},
|
|
|
|
|
- FILE_PATH = #{filePath,jdbcType=TIMESTAMP},
|
|
|
|
|
- INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
|
- REMARK = #{remark,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ FOREIGN_KEY_ID = #{foreignKeyId,jdbcType=DECIMAL},
|
|
|
|
|
+ FOREIGN_KEY_TYPE = #{foreignKeyType,jdbcType=VARCHAR},
|
|
|
|
|
+ METHOD_NAME = #{methodName,jdbcType=VARCHAR},
|
|
|
|
|
+ METHOD_DESCRIPTION = #{methodDescription,jdbcType=VARCHAR},
|
|
|
|
|
+ EXE_COST = #{exeCost,jdbcType=DECIMAL},
|
|
|
|
|
+ FILE_PATH = #{filePath,jdbcType=VARCHAR},
|
|
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
|
+ REMARK = #{remark,jdbcType=VARCHAR},
|
|
|
|
|
+ DATAGRAM1 = #{datagram1,jdbcType=VARCHAR},
|
|
|
|
|
+ DATAGRAM2 = #{datagram2,jdbcType=VARCHAR},
|
|
|
|
|
+ DATAGRAM3 = #{datagram3,jdbcType=VARCHAR}
|
|
|
where LOG_ID = #{logId,jdbcType=DECIMAL}
|
|
where LOG_ID = #{logId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.LogResult">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.LogResult">
|
|
@@ -263,7 +314,7 @@
|
|
|
EXE_COST = #{exeCost,jdbcType=DECIMAL},
|
|
EXE_COST = #{exeCost,jdbcType=DECIMAL},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="filePath != null">
|
|
<if test="filePath != null">
|
|
|
- FILE_PATH = #{filePath,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
+ FILE_PATH = #{filePath,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="insertTime != null">
|
|
<if test="insertTime != null">
|
|
|
INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
@@ -274,6 +325,15 @@
|
|
|
<if test="remark != null">
|
|
<if test="remark != null">
|
|
|
REMARK = #{remark,jdbcType=VARCHAR},
|
|
REMARK = #{remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="datagram1 != null">
|
|
|
|
|
+ DATAGRAM1 = #{datagram1,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram2 != null">
|
|
|
|
|
+ DATAGRAM2 = #{datagram2,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="datagram3 != null">
|
|
|
|
|
+ DATAGRAM3 = #{datagram3,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where LOG_ID = #{logId,jdbcType=DECIMAL}
|
|
where LOG_ID = #{logId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
</update>
|
|
@@ -295,73 +355,86 @@
|
|
|
LOG_CONTENT, FOREIGN_KEY_ID, FOREIGN_KEY_TYPE,
|
|
LOG_CONTENT, FOREIGN_KEY_ID, FOREIGN_KEY_TYPE,
|
|
|
METHOD_NAME, METHOD_DESCRIPTION,
|
|
METHOD_NAME, METHOD_DESCRIPTION,
|
|
|
EXE_COST, FILE_PATH, INSERT_TIME,
|
|
EXE_COST, FILE_PATH, INSERT_TIME,
|
|
|
- INSERT_USERNAME, REMARK)
|
|
|
|
|
|
|
+ INSERT_USERNAME, REMARK, DATAGRAM1,
|
|
|
|
|
+ DATAGRAM2, DATAGRAM3)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
select
|
|
|
#{item.logId,jdbcType=DECIMAL},
|
|
#{item.logId,jdbcType=DECIMAL},
|
|
|
- #{item.logContent,jdbcType=VARCHAR}, #{item.foreignKeyId,jdbcType=DECIMAL},
|
|
|
|
|
- #{item.foreignKeyType,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ #{item.logContent,jdbcType=VARCHAR}, #{item.foreignKeyId,jdbcType=DECIMAL}, #{item.foreignKeyType,jdbcType=VARCHAR},
|
|
|
#{item.methodName,jdbcType=VARCHAR}, #{item.methodDescription,jdbcType=VARCHAR},
|
|
#{item.methodName,jdbcType=VARCHAR}, #{item.methodDescription,jdbcType=VARCHAR},
|
|
|
- #{item.exeCost,jdbcType=DECIMAL}, #{item.filePath,jdbcType=TIMESTAMP}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- #{item.insertUsername,jdbcType=VARCHAR}, #{item.remark,jdbcType=VARCHAR} from dual
|
|
|
|
|
|
|
+ #{item.exeCost,jdbcType=DECIMAL}, #{item.filePath,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{item.insertUsername,jdbcType=VARCHAR}, #{item.remark,jdbcType=VARCHAR}, #{item.datagram1,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.datagram2,jdbcType=VARCHAR}, #{item.datagram3,jdbcType=VARCHAR} from dual
|
|
|
</foreach> )
|
|
</foreach> )
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
update LOG_RESULT
|
|
update LOG_RESULT
|
|
|
set
|
|
set
|
|
|
LOG_ID=
|
|
LOG_ID=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case LOG_ID" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.logId,jdbcType=DECIMAL}
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.logId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,LOG_CONTENT=
|
|
,LOG_CONTENT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case LOG_ID" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.logContent,jdbcType=VARCHAR}
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.logContent,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,FOREIGN_KEY_ID=
|
|
,FOREIGN_KEY_ID=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case LOG_ID" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.foreignKeyId,jdbcType=DECIMAL}
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.foreignKeyId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,FOREIGN_KEY_TYPE=
|
|
,FOREIGN_KEY_TYPE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case LOG_ID" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.foreignKeyType,jdbcType=VARCHAR}
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.foreignKeyType,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,METHOD_NAME=
|
|
,METHOD_NAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case LOG_ID" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.methodName,jdbcType=VARCHAR}
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.methodName,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,METHOD_DESCRIPTION=
|
|
,METHOD_DESCRIPTION=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case LOG_ID" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.methodDescription,jdbcType=VARCHAR}
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.methodDescription,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,EXE_COST=
|
|
,EXE_COST=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case LOG_ID" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.exeCost,jdbcType=DECIMAL}
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.exeCost,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,FILE_PATH=
|
|
,FILE_PATH=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case LOG_ID" separator=" ">
|
|
|
|
|
- when #{item.logId,jdbcType=DECIMAL} then #{item.filePath,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.filePath,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,INSERT_TIME=
|
|
,INSERT_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case LOG_ID" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,INSERT_USERNAME=
|
|
,INSERT_USERNAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case LOG_ID" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,REMARK=
|
|
,REMARK=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case LOG_ID" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.remark,jdbcType=VARCHAR}
|
|
when #{item.logId,jdbcType=DECIMAL} then #{item.remark,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
+ ,DATAGRAM1=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.datagram1,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,DATAGRAM2=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.datagram2,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,DATAGRAM3=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.datagram3,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
where LOG_ID in
|
|
where LOG_ID in
|
|
|
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
|
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
#{item.logId,jdbcType=DECIMAL}
|
|
#{item.logId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</update>
|
|
</update>
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
|
delete from LOG_RESULT
|
|
delete from LOG_RESULT
|
|
|
where LOG_ID in
|
|
where LOG_ID in
|
|
|
- <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
|
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
#{id}
|
|
#{id}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</delete>
|
|
</delete>
|