|
|
@@ -0,0 +1,444 @@
|
|
|
+<?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.dil.mapper.LogResultMapper">
|
|
|
+ <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="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>
|
|
|
+ <sql id="columns">
|
|
|
+ LOG_ID, LOG_CONTENT, FOREIGN_KEY_ID, FOREIGN_KEY_TYPE, METHOD_NAME, METHOD_DESCRIPTION,
|
|
|
+ EXE_COST, FILE_PATH, INSERT_TIME, INSERT_USERNAME, REMARK, DATAGRAM1, DATAGRAM2,
|
|
|
+ DATAGRAM3
|
|
|
+ </sql>
|
|
|
+ <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.EXE_COST, t.FILE_PATH, t.INSERT_TIME, t.INSERT_USERNAME, t.REMARK, t.DATAGRAM1,
|
|
|
+ t.DATAGRAM2, t.DATAGRAM3
|
|
|
+ </sql>
|
|
|
+ <sql id="select">
|
|
|
+ SELECT <include refid="columns"/> FROM LOG_RESULT
|
|
|
+ </sql>
|
|
|
+ <sql id="select_alias">
|
|
|
+ SELECT <include refid="columns_alias"/> FROM LOG_RESULT t
|
|
|
+ </sql>
|
|
|
+ <sql id="where">
|
|
|
+ <where>
|
|
|
+ <if test="logId != null">
|
|
|
+ and LOG_ID = #{logId}
|
|
|
+ </if>
|
|
|
+ <if test="logContent != null and logContent != ''">
|
|
|
+ and LOG_CONTENT = #{logContent}
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyId != null">
|
|
|
+ and FOREIGN_KEY_ID = #{foreignKeyId}
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyType != null and foreignKeyType != ''">
|
|
|
+ and FOREIGN_KEY_TYPE = #{foreignKeyType}
|
|
|
+ </if>
|
|
|
+ <if test="methodName != null and methodName != ''">
|
|
|
+ and METHOD_NAME = #{methodName}
|
|
|
+ </if>
|
|
|
+ <if test="methodDescription != null and methodDescription != ''">
|
|
|
+ and METHOD_DESCRIPTION = #{methodDescription}
|
|
|
+ </if>
|
|
|
+ <if test="exeCost != null">
|
|
|
+ and EXE_COST = #{exeCost}
|
|
|
+ </if>
|
|
|
+ <if test="filePath != null and filePath != ''">
|
|
|
+ and FILE_PATH = #{filePath}
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
+ and INSERT_USERNAME = #{insertUsername}
|
|
|
+ </if>
|
|
|
+ <if test="remark != null and remark != ''">
|
|
|
+ and REMARK = #{remark}
|
|
|
+ </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>
|
|
|
+ </sql>
|
|
|
+ <sql id="whereLike">
|
|
|
+ <where>
|
|
|
+ <if test="logId != null">
|
|
|
+ and LOG_ID = #{logId}
|
|
|
+ </if>
|
|
|
+ <if test="logContent != null and logContent != ''">
|
|
|
+ and LOG_CONTENT LIKE '%${logContent}%'
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyId != null">
|
|
|
+ and FOREIGN_KEY_ID = #{foreignKeyId}
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyType != null and foreignKeyType != ''">
|
|
|
+ and FOREIGN_KEY_TYPE LIKE '%${foreignKeyType}%'
|
|
|
+ </if>
|
|
|
+ <if test="methodName != null and methodName != ''">
|
|
|
+ and METHOD_NAME LIKE '%${methodName}%'
|
|
|
+ </if>
|
|
|
+ <if test="methodDescription != null and methodDescription != ''">
|
|
|
+ and METHOD_DESCRIPTION LIKE '%${methodDescription}%'
|
|
|
+ </if>
|
|
|
+ <if test="exeCost != null">
|
|
|
+ and EXE_COST = #{exeCost}
|
|
|
+ </if>
|
|
|
+ <if test="filePath != null and filePath != ''">
|
|
|
+ and FILE_PATH LIKE '%${filePath}%'
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
+ and INSERT_USERNAME LIKE '%${insertUsername}%'
|
|
|
+ </if>
|
|
|
+ <if test="remark != null and remark != ''">
|
|
|
+ and REMARK LIKE '%${remark}%'
|
|
|
+ </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>
|
|
|
+ </sql>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
+ delete from LOG_RESULT
|
|
|
+ where LOG_ID = #{logId,jdbcType=DECIMAL}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
+ delete from LOG_RESULT
|
|
|
+ where 1!=1
|
|
|
+ <if test="logContent != null and logContent != ''">
|
|
|
+ or LOG_CONTENT = #{logContent}
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyId != null">
|
|
|
+ or FOREIGN_KEY_ID = #{foreignKeyId}
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyType != null and foreignKeyType != ''">
|
|
|
+ or FOREIGN_KEY_TYPE = #{foreignKeyType}
|
|
|
+ </if>
|
|
|
+ <if test="methodName != null and methodName != ''">
|
|
|
+ or METHOD_NAME = #{methodName}
|
|
|
+ </if>
|
|
|
+ <if test="methodDescription != null and methodDescription != ''">
|
|
|
+ or METHOD_DESCRIPTION = #{methodDescription}
|
|
|
+ </if>
|
|
|
+ <if test="exeCost != null">
|
|
|
+ or EXE_COST = #{exeCost}
|
|
|
+ </if>
|
|
|
+ <if test="filePath != null and filePath != ''">
|
|
|
+ or FILE_PATH = #{filePath}
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
+ or INSERT_USERNAME = #{insertUsername}
|
|
|
+ </if>
|
|
|
+ <if test="remark != null and remark != ''">
|
|
|
+ or REMARK = #{remark}
|
|
|
+ </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>
|
|
|
+ <insert id="insert" parameterType="com.steerinfo.dil.model.LogResult">
|
|
|
+ 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, DATAGRAM1,
|
|
|
+ DATAGRAM2, DATAGRAM3)
|
|
|
+ values (#{logId,jdbcType=DECIMAL}, #{logContent,jdbcType=VARCHAR}, #{foreignKeyId,jdbcType=DECIMAL},
|
|
|
+ #{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 id="insertSelective" parameterType="com.steerinfo.dil.model.LogResult">
|
|
|
+ insert into LOG_RESULT
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="logId != null">
|
|
|
+ LOG_ID,
|
|
|
+ </if>
|
|
|
+ <if test="logContent != null">
|
|
|
+ LOG_CONTENT,
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyId != null">
|
|
|
+ FOREIGN_KEY_ID,
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyType != null">
|
|
|
+ FOREIGN_KEY_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="methodName != null">
|
|
|
+ METHOD_NAME,
|
|
|
+ </if>
|
|
|
+ <if test="methodDescription != null">
|
|
|
+ METHOD_DESCRIPTION,
|
|
|
+ </if>
|
|
|
+ <if test="exeCost != null">
|
|
|
+ EXE_COST,
|
|
|
+ </if>
|
|
|
+ <if test="filePath != null">
|
|
|
+ FILE_PATH,
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ INSERT_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null">
|
|
|
+ INSERT_USERNAME,
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">
|
|
|
+ REMARK,
|
|
|
+ </if>
|
|
|
+ <if test="datagram1 != null">
|
|
|
+ DATAGRAM1,
|
|
|
+ </if>
|
|
|
+ <if test="datagram2 != null">
|
|
|
+ DATAGRAM2,
|
|
|
+ </if>
|
|
|
+ <if test="datagram3 != null">
|
|
|
+ DATAGRAM3,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="logId != null">
|
|
|
+ #{logId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="logContent != null">
|
|
|
+ #{logContent,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyId != null">
|
|
|
+ #{foreignKeyId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyType != null">
|
|
|
+ #{foreignKeyType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="methodName != null">
|
|
|
+ #{methodName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="methodDescription != null">
|
|
|
+ #{methodDescription,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="exeCost != null">
|
|
|
+ #{exeCost,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="filePath != null">
|
|
|
+ #{filePath,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null">
|
|
|
+ #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">
|
|
|
+ #{remark,jdbcType=VARCHAR},
|
|
|
+ </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>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.LogResult">
|
|
|
+ update LOG_RESULT
|
|
|
+ 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=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}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.LogResult">
|
|
|
+ update LOG_RESULT
|
|
|
+ <set>
|
|
|
+ <if test="logContent != null">
|
|
|
+ LOG_CONTENT = #{logContent,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyId != null">
|
|
|
+ FOREIGN_KEY_ID = #{foreignKeyId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="foreignKeyType != null">
|
|
|
+ FOREIGN_KEY_TYPE = #{foreignKeyType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="methodName != null">
|
|
|
+ METHOD_NAME = #{methodName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="methodDescription != null">
|
|
|
+ METHOD_DESCRIPTION = #{methodDescription,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="exeCost != null">
|
|
|
+ EXE_COST = #{exeCost,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="filePath != null">
|
|
|
+ FILE_PATH = #{filePath,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null">
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">
|
|
|
+ REMARK = #{remark,jdbcType=VARCHAR},
|
|
|
+ </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>
|
|
|
+ where LOG_ID = #{logId,jdbcType=DECIMAL}
|
|
|
+ </update>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
+ <include refid="select"/>
|
|
|
+ where LOG_ID = #{logId,jdbcType=DECIMAL}
|
|
|
+ </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 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, DATAGRAM1,
|
|
|
+ DATAGRAM2, DATAGRAM3)
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
+ select
|
|
|
+ #{item.logId,jdbcType=DECIMAL},
|
|
|
+ #{item.logContent,jdbcType=VARCHAR}, #{item.foreignKeyId,jdbcType=DECIMAL}, #{item.foreignKeyType,jdbcType=VARCHAR},
|
|
|
+ #{item.methodName,jdbcType=VARCHAR}, #{item.methodDescription,jdbcType=VARCHAR},
|
|
|
+ #{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> )
|
|
|
+ </insert>
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
+ update LOG_RESULT
|
|
|
+ set
|
|
|
+ LOG_ID=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.logId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,LOG_CONTENT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.logContent,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,FOREIGN_KEY_ID=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.foreignKeyId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,FOREIGN_KEY_TYPE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.foreignKeyType,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,METHOD_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.methodName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,METHOD_DESCRIPTION=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.methodDescription,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,EXE_COST=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.exeCost,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,FILE_PATH=
|
|
|
+ <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>
|
|
|
+ ,INSERT_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_USERNAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,REMARK=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case LOG_ID" close="end">
|
|
|
+ when #{item.logId,jdbcType=DECIMAL} then #{item.remark,jdbcType=VARCHAR}
|
|
|
+ </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
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
+ #{item.logId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
+ delete from LOG_RESULT
|
|
|
+ where LOG_ID in
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
+
|
|
|
+</mapper>
|