|
|
@@ -0,0 +1,419 @@
|
|
|
+<?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.meterwork.meterworkcarmetertime.mapper.MeterWorkCarMeterTimeMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.steerinfo.meterwork.meterworkcarmetertime.model.MeterWorkCarMeterTime">
|
|
|
+ <id column="ACTUAL_FIRST_NO" jdbcType="VARCHAR" property="actualFirstNo" />
|
|
|
+ <result column="START_TIME" jdbcType="TIMESTAMP" property="startTime" />
|
|
|
+ <result column="METER_START_TIME" jdbcType="TIMESTAMP" property="meterStartTime" />
|
|
|
+ <result column="METER_END_TIME" jdbcType="TIMESTAMP" property="meterEndTime" />
|
|
|
+ <result column="END_TIME" jdbcType="TIMESTAMP" property="endTime" />
|
|
|
+ <result column="TOTAL_NUM" jdbcType="DECIMAL" property="totalNum" />
|
|
|
+ <result column="UP_NUM" jdbcType="DECIMAL" property="upNum" />
|
|
|
+ <result column="METER_NUM" jdbcType="DECIMAL" property="meterNum" />
|
|
|
+ <result column="DOWN_NUM" jdbcType="DECIMAL" property="downNum" />
|
|
|
+ <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
|
|
|
+ <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
|
|
|
+ <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
|
|
|
+ <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="columns">
|
|
|
+ ACTUAL_FIRST_NO, START_TIME, METER_START_TIME, METER_END_TIME, END_TIME, TOTAL_NUM,
|
|
|
+ UP_NUM, METER_NUM, DOWN_NUM, VALUE_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME
|
|
|
+ </sql>
|
|
|
+ <sql id="columns_alias">
|
|
|
+ t.ACTUAL_FIRST_NO, t.START_TIME, t.METER_START_TIME, t.METER_END_TIME, t.END_TIME,
|
|
|
+ t.TOTAL_NUM, t.UP_NUM, t.METER_NUM, t.DOWN_NUM, t.VALUE_FLAG, t.CREATE_MAN_NO, t.CREATE_MAN_NAME,
|
|
|
+ t.CREATE_TIME
|
|
|
+ </sql>
|
|
|
+ <sql id="select">
|
|
|
+ SELECT <include refid="columns"/> FROM METER_WORK_CAR_METER_TIME
|
|
|
+ </sql>
|
|
|
+ <sql id="select_alias">
|
|
|
+ SELECT <include refid="columns_alias"/> FROM METER_WORK_CAR_METER_TIME t
|
|
|
+ </sql>
|
|
|
+ <sql id="where">
|
|
|
+ <where>
|
|
|
+ <if test="actualFirstNo != null and actualFirstNo != ''">
|
|
|
+ and ACTUAL_FIRST_NO = #{actualFirstNo}
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null">
|
|
|
+ and TO_CHAR(START_TIME,'yyyy-MM-dd') = #{startTime}
|
|
|
+ </if>
|
|
|
+ <if test="meterStartTime != null">
|
|
|
+ and TO_CHAR(METER_START_TIME,'yyyy-MM-dd') = #{meterStartTime}
|
|
|
+ </if>
|
|
|
+ <if test="meterEndTime != null">
|
|
|
+ and TO_CHAR(METER_END_TIME,'yyyy-MM-dd') = #{meterEndTime}
|
|
|
+ </if>
|
|
|
+ <if test="endTime != null">
|
|
|
+ and TO_CHAR(END_TIME,'yyyy-MM-dd') = #{endTime}
|
|
|
+ </if>
|
|
|
+ <if test="totalNum != null">
|
|
|
+ and TOTAL_NUM = #{totalNum}
|
|
|
+ </if>
|
|
|
+ <if test="upNum != null">
|
|
|
+ and UP_NUM = #{upNum}
|
|
|
+ </if>
|
|
|
+ <if test="meterNum != null">
|
|
|
+ and METER_NUM = #{meterNum}
|
|
|
+ </if>
|
|
|
+ <if test="downNum != null">
|
|
|
+ and DOWN_NUM = #{downNum}
|
|
|
+ </if>
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
+ and VALUE_FLAG = #{valueFlag}
|
|
|
+ </if>
|
|
|
+ <if test="createManNo != null and createManNo != ''">
|
|
|
+ and CREATE_MAN_NO = #{createManNo}
|
|
|
+ </if>
|
|
|
+ <if test="createManName != null and createManName != ''">
|
|
|
+ and CREATE_MAN_NAME = #{createManName}
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="whereLike">
|
|
|
+ <where>
|
|
|
+ <if test="actualFirstNo != null and actualFirstNo != ''">
|
|
|
+ and ACTUAL_FIRST_NO LIKE '%${actualFirstNo}%'
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null">
|
|
|
+ and TO_CHAR(START_TIME,'yyyy-MM-dd') = #{startTime}
|
|
|
+ </if>
|
|
|
+ <if test="meterStartTime != null">
|
|
|
+ and TO_CHAR(METER_START_TIME,'yyyy-MM-dd') = #{meterStartTime}
|
|
|
+ </if>
|
|
|
+ <if test="meterEndTime != null">
|
|
|
+ and TO_CHAR(METER_END_TIME,'yyyy-MM-dd') = #{meterEndTime}
|
|
|
+ </if>
|
|
|
+ <if test="endTime != null">
|
|
|
+ and TO_CHAR(END_TIME,'yyyy-MM-dd') = #{endTime}
|
|
|
+ </if>
|
|
|
+ <if test="totalNum != null">
|
|
|
+ and TOTAL_NUM = #{totalNum}
|
|
|
+ </if>
|
|
|
+ <if test="upNum != null">
|
|
|
+ and UP_NUM = #{upNum}
|
|
|
+ </if>
|
|
|
+ <if test="meterNum != null">
|
|
|
+ and METER_NUM = #{meterNum}
|
|
|
+ </if>
|
|
|
+ <if test="downNum != null">
|
|
|
+ and DOWN_NUM = #{downNum}
|
|
|
+ </if>
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
+ and VALUE_FLAG LIKE '%${valueFlag}%'
|
|
|
+ </if>
|
|
|
+ <if test="createManNo != null and createManNo != ''">
|
|
|
+ and CREATE_MAN_NO LIKE '%${createManNo}%'
|
|
|
+ </if>
|
|
|
+ <if test="createManName != null and createManName != ''">
|
|
|
+ and CREATE_MAN_NAME LIKE '%${createManName}%'
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from METER_WORK_CAR_METER_TIME
|
|
|
+ where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
+ delete from METER_WORK_CAR_METER_TIME
|
|
|
+ where 1!=1
|
|
|
+ <if test="startTime != null">
|
|
|
+ or TO_CHAR(START_TIME,'yyyy-MM-dd') = '#{startTime}'
|
|
|
+ </if>
|
|
|
+ <if test="meterStartTime != null">
|
|
|
+ or TO_CHAR(METER_START_TIME,'yyyy-MM-dd') = '#{meterStartTime}'
|
|
|
+ </if>
|
|
|
+ <if test="meterEndTime != null">
|
|
|
+ or TO_CHAR(METER_END_TIME,'yyyy-MM-dd') = '#{meterEndTime}'
|
|
|
+ </if>
|
|
|
+ <if test="endTime != null">
|
|
|
+ or TO_CHAR(END_TIME,'yyyy-MM-dd') = '#{endTime}'
|
|
|
+ </if>
|
|
|
+ <if test="totalNum != null">
|
|
|
+ or TOTAL_NUM = #{totalNum}
|
|
|
+ </if>
|
|
|
+ <if test="upNum != null">
|
|
|
+ or UP_NUM = #{upNum}
|
|
|
+ </if>
|
|
|
+ <if test="meterNum != null">
|
|
|
+ or METER_NUM = #{meterNum}
|
|
|
+ </if>
|
|
|
+ <if test="downNum != null">
|
|
|
+ or DOWN_NUM = #{downNum}
|
|
|
+ </if>
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
+ or VALUE_FLAG = #{valueFlag}
|
|
|
+ </if>
|
|
|
+ <if test="createManNo != null and createManNo != ''">
|
|
|
+ or CREATE_MAN_NO = #{createManNo}
|
|
|
+ </if>
|
|
|
+ <if test="createManName != null and createManName != ''">
|
|
|
+ or CREATE_MAN_NAME = #{createManName}
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.steerinfo.meterwork.meterworkcarmetertime.model.MeterWorkCarMeterTime">
|
|
|
+ insert into METER_WORK_CAR_METER_TIME (ACTUAL_FIRST_NO, START_TIME, METER_START_TIME,
|
|
|
+ METER_END_TIME, END_TIME, TOTAL_NUM,
|
|
|
+ UP_NUM, METER_NUM, DOWN_NUM,
|
|
|
+ VALUE_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME,
|
|
|
+ CREATE_TIME)
|
|
|
+ values (#{actualFirstNo,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{meterStartTime,jdbcType=TIMESTAMP},
|
|
|
+ #{meterEndTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{totalNum,jdbcType=DECIMAL},
|
|
|
+ #{upNum,jdbcType=DECIMAL}, #{meterNum,jdbcType=DECIMAL}, #{downNum,jdbcType=DECIMAL},
|
|
|
+ #{valueFlag,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR},
|
|
|
+ #{createTime,jdbcType=TIMESTAMP})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkcarmetertime.model.MeterWorkCarMeterTime">
|
|
|
+ insert into METER_WORK_CAR_METER_TIME
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="actualFirstNo != null">
|
|
|
+ ACTUAL_FIRST_NO,
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null">
|
|
|
+ START_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="meterStartTime != null">
|
|
|
+ METER_START_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="meterEndTime != null">
|
|
|
+ METER_END_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="endTime != null">
|
|
|
+ END_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="totalNum != null">
|
|
|
+ TOTAL_NUM,
|
|
|
+ </if>
|
|
|
+ <if test="upNum != null">
|
|
|
+ UP_NUM,
|
|
|
+ </if>
|
|
|
+ <if test="meterNum != null">
|
|
|
+ METER_NUM,
|
|
|
+ </if>
|
|
|
+ <if test="downNum != null">
|
|
|
+ DOWN_NUM,
|
|
|
+ </if>
|
|
|
+ <if test="valueFlag != null">
|
|
|
+ VALUE_FLAG,
|
|
|
+ </if>
|
|
|
+ <if test="createManNo != null">
|
|
|
+ CREATE_MAN_NO,
|
|
|
+ </if>
|
|
|
+ <if test="createManName != null">
|
|
|
+ CREATE_MAN_NAME,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ CREATE_TIME,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="actualFirstNo != null">
|
|
|
+ #{actualFirstNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null">
|
|
|
+ #{startTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="meterStartTime != null">
|
|
|
+ #{meterStartTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="meterEndTime != null">
|
|
|
+ #{meterEndTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="endTime != null">
|
|
|
+ #{endTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="totalNum != null">
|
|
|
+ #{totalNum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="upNum != null">
|
|
|
+ #{upNum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="meterNum != null">
|
|
|
+ #{meterNum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="downNum != null">
|
|
|
+ #{downNum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="valueFlag != null">
|
|
|
+ #{valueFlag,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createManNo != null">
|
|
|
+ #{createManNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createManName != null">
|
|
|
+ #{createManName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkcarmetertime.model.MeterWorkCarMeterTime">
|
|
|
+ update METER_WORK_CAR_METER_TIME
|
|
|
+ set START_TIME = #{startTime,jdbcType=TIMESTAMP},
|
|
|
+ METER_START_TIME = #{meterStartTime,jdbcType=TIMESTAMP},
|
|
|
+ METER_END_TIME = #{meterEndTime,jdbcType=TIMESTAMP},
|
|
|
+ END_TIME = #{endTime,jdbcType=TIMESTAMP},
|
|
|
+ TOTAL_NUM = #{totalNum,jdbcType=DECIMAL},
|
|
|
+ UP_NUM = #{upNum,jdbcType=DECIMAL},
|
|
|
+ METER_NUM = #{meterNum,jdbcType=DECIMAL},
|
|
|
+ DOWN_NUM = #{downNum,jdbcType=DECIMAL},
|
|
|
+ VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
|
|
|
+ CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
+ CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}
|
|
|
+ where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkcarmetertime.model.MeterWorkCarMeterTime">
|
|
|
+ update METER_WORK_CAR_METER_TIME
|
|
|
+ <set>
|
|
|
+ <if test="startTime != null">
|
|
|
+ START_TIME = #{startTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="meterStartTime != null">
|
|
|
+ METER_START_TIME = #{meterStartTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="meterEndTime != null">
|
|
|
+ METER_END_TIME = #{meterEndTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="endTime != null">
|
|
|
+ END_TIME = #{endTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="totalNum != null">
|
|
|
+ TOTAL_NUM = #{totalNum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="upNum != null">
|
|
|
+ UP_NUM = #{upNum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="meterNum != null">
|
|
|
+ METER_NUM = #{meterNum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="downNum != null">
|
|
|
+ DOWN_NUM = #{downNum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="valueFlag != null">
|
|
|
+ VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createManNo != null">
|
|
|
+ CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createManName != null">
|
|
|
+ CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ <include refid="select"/>
|
|
|
+ where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
|
|
|
+ </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 METER_WORK_CAR_METER_TIME
|
|
|
+ (ACTUAL_FIRST_NO,
|
|
|
+ START_TIME, METER_START_TIME,
|
|
|
+ METER_END_TIME, END_TIME, TOTAL_NUM,
|
|
|
+ UP_NUM, METER_NUM, DOWN_NUM,
|
|
|
+ VALUE_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME,
|
|
|
+ CREATE_TIME)
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
+ select
|
|
|
+ #{item.actualFirstNo,jdbcType=VARCHAR},
|
|
|
+ #{item.startTime,jdbcType=TIMESTAMP}, #{item.meterStartTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.meterEndTime,jdbcType=TIMESTAMP}, #{item.endTime,jdbcType=TIMESTAMP}, #{item.totalNum,jdbcType=DECIMAL},
|
|
|
+ #{item.upNum,jdbcType=DECIMAL}, #{item.meterNum,jdbcType=DECIMAL}, #{item.downNum,jdbcType=DECIMAL},
|
|
|
+ #{item.valueFlag,jdbcType=VARCHAR}, #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR},
|
|
|
+ #{item.createTime,jdbcType=TIMESTAMP} from dual
|
|
|
+ </foreach> )
|
|
|
+ </insert>
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
+ update METER_WORK_CAR_METER_TIME
|
|
|
+ set
|
|
|
+ ACTUAL_FIRST_NO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.actualFirstNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,START_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.startTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,METER_START_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterStartTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,METER_END_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterEndTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,END_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.endTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,TOTAL_NUM=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.totalNum,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,UP_NUM=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.upNum,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,METER_NUM=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterNum,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,DOWN_NUM=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.downNum,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,VALUE_FLAG=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CREATE_MAN_NO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CREATE_MAN_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CREATE_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
|
|
|
+ when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ where ACTUAL_FIRST_NO in
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
+ #{item.actualFirstNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
+ delete from METER_WORK_CAR_METER_TIME
|
|
|
+ where ACTUAL_FIRST_NO in
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
+
|
|
|
+</mapper>
|