|
@@ -22,28 +22,29 @@
|
|
|
<result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
|
|
<result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
|
|
|
<result column="PUNISH_TYPE_NO" jdbcType="VARCHAR" property="punishTypeNo" />
|
|
<result column="PUNISH_TYPE_NO" jdbcType="VARCHAR" property="punishTypeNo" />
|
|
|
<result column="PUNISH_TYPE_NAME" jdbcType="VARCHAR" property="punishTypeName" />
|
|
<result column="PUNISH_TYPE_NAME" jdbcType="VARCHAR" property="punishTypeName" />
|
|
|
- <result column="BLACK_LEVEL" jdbcType="VARCHAR" property="blackLevel" />
|
|
|
|
|
|
|
+ <result column="BLACK_LEVEL_NO" jdbcType="VARCHAR" property="blackLevelNo" />
|
|
|
<result column="OPERATION_UNIT" jdbcType="VARCHAR" property="operationUnit" />
|
|
<result column="OPERATION_UNIT" jdbcType="VARCHAR" property="operationUnit" />
|
|
|
<result column="CHANGE_MEMO" jdbcType="VARCHAR" property="changeMemo" />
|
|
<result column="CHANGE_MEMO" jdbcType="VARCHAR" property="changeMemo" />
|
|
|
|
|
+ <result column="BLACK_LEVEL_NAME" jdbcType="VARCHAR" property="blackLevelName" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
|
BLACELIST_NO, CAR_NO, CAR_OWNER_NAME, CAR_DRIVER_NAME, CAR_UNDER_UNIT, PUNISH_REASON,
|
|
BLACELIST_NO, CAR_NO, CAR_OWNER_NAME, CAR_DRIVER_NAME, CAR_UNDER_UNIT, PUNISH_REASON,
|
|
|
PUNISH_RESULT, VALUE_FLAG, MEMO, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO,
|
|
PUNISH_RESULT, VALUE_FLAG, MEMO, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO,
|
|
|
UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, PUNISH_TYPE_NO,
|
|
UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, PUNISH_TYPE_NO,
|
|
|
- PUNISH_TYPE_NAME, BLACK_LEVEL, OPERATION_UNIT, CHANGE_MEMO
|
|
|
|
|
|
|
+ PUNISH_TYPE_NAME, BLACK_LEVEL_NO, OPERATION_UNIT, CHANGE_MEMO, BLACK_LEVEL_NAME
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
|
t.BLACELIST_NO, t.CAR_NO, t.CAR_OWNER_NAME, t.CAR_DRIVER_NAME, t.CAR_UNDER_UNIT,
|
|
t.BLACELIST_NO, t.CAR_NO, t.CAR_OWNER_NAME, t.CAR_DRIVER_NAME, t.CAR_UNDER_UNIT,
|
|
|
t.PUNISH_REASON, t.PUNISH_RESULT, t.VALUE_FLAG, t.MEMO, t.CREATE_MAN_NO, t.CREATE_MAN_NAME,
|
|
t.PUNISH_REASON, t.PUNISH_RESULT, t.VALUE_FLAG, t.MEMO, t.CREATE_MAN_NO, t.CREATE_MAN_NAME,
|
|
|
t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO,
|
|
t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO,
|
|
|
- t.DELETE_MAN_NAME, t.DELETE_TIME, t.PUNISH_TYPE_NO, t.PUNISH_TYPE_NAME, t.BLACK_LEVEL,
|
|
|
|
|
- t.OPERATION_UNIT, t.CHANGE_MEMO
|
|
|
|
|
|
|
+ t.DELETE_MAN_NAME, t.DELETE_TIME, t.PUNISH_TYPE_NO, t.PUNISH_TYPE_NAME, t.BLACK_LEVEL_NO,
|
|
|
|
|
+ t.OPERATION_UNIT, t.CHANGE_MEMO, t.BLACK_LEVEL_NAME
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select">
|
|
<sql id="select">
|
|
|
- SELECT <include refid="columns" /> FROM METER_BASE_CAR_BLACELIST
|
|
|
|
|
|
|
+ SELECT <include refid="columns"/> FROM METER_BASE_CAR_BLACELIST
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
|
- SELECT <include refid="columns_alias" /> FROM METER_BASE_CAR_BLACELIST t
|
|
|
|
|
|
|
+ SELECT <include refid="columns_alias"/> FROM METER_BASE_CAR_BLACELIST t
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="where">
|
|
<sql id="where">
|
|
|
<where>
|
|
<where>
|
|
@@ -107,8 +108,8 @@
|
|
|
<if test="punishTypeName != null and punishTypeName != ''">
|
|
<if test="punishTypeName != null and punishTypeName != ''">
|
|
|
and PUNISH_TYPE_NAME = #{punishTypeName}
|
|
and PUNISH_TYPE_NAME = #{punishTypeName}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="blackLevel != null and blackLevel != ''">
|
|
|
|
|
- and BLACK_LEVEL = #{blackLevel}
|
|
|
|
|
|
|
+ <if test="blackLevelNo != null and blackLevelNo != ''">
|
|
|
|
|
+ and BLACK_LEVEL_NO = #{blackLevelNo}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="operationUnit != null and operationUnit != ''">
|
|
<if test="operationUnit != null and operationUnit != ''">
|
|
|
and OPERATION_UNIT = #{operationUnit}
|
|
and OPERATION_UNIT = #{operationUnit}
|
|
@@ -116,6 +117,9 @@
|
|
|
<if test="changeMemo != null and changeMemo != ''">
|
|
<if test="changeMemo != null and changeMemo != ''">
|
|
|
and CHANGE_MEMO = #{changeMemo}
|
|
and CHANGE_MEMO = #{changeMemo}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="blackLevelName != null and blackLevelName != ''">
|
|
|
|
|
+ and BLACK_LEVEL_NAME = #{blackLevelName}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -180,8 +184,8 @@
|
|
|
<if test="punishTypeName != null and punishTypeName != ''">
|
|
<if test="punishTypeName != null and punishTypeName != ''">
|
|
|
and PUNISH_TYPE_NAME LIKE '%${punishTypeName}%'
|
|
and PUNISH_TYPE_NAME LIKE '%${punishTypeName}%'
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="blackLevel != null and blackLevel != ''">
|
|
|
|
|
- and BLACK_LEVEL LIKE '%${blackLevel}%'
|
|
|
|
|
|
|
+ <if test="blackLevelNo != null and blackLevelNo != ''">
|
|
|
|
|
+ and BLACK_LEVEL_NO LIKE '%${blackLevelNo}%'
|
|
|
</if>
|
|
</if>
|
|
|
<if test="operationUnit != null and operationUnit != ''">
|
|
<if test="operationUnit != null and operationUnit != ''">
|
|
|
and OPERATION_UNIT LIKE '%${operationUnit}%'
|
|
and OPERATION_UNIT LIKE '%${operationUnit}%'
|
|
@@ -189,6 +193,9 @@
|
|
|
<if test="changeMemo != null and changeMemo != ''">
|
|
<if test="changeMemo != null and changeMemo != ''">
|
|
|
and CHANGE_MEMO LIKE '%${changeMemo}%'
|
|
and CHANGE_MEMO LIKE '%${changeMemo}%'
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="blackLevelName != null and blackLevelName != ''">
|
|
|
|
|
+ and BLACK_LEVEL_NAME LIKE '%${blackLevelName}%'
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
@@ -255,8 +262,8 @@
|
|
|
<if test="punishTypeName != null and punishTypeName != ''">
|
|
<if test="punishTypeName != null and punishTypeName != ''">
|
|
|
or PUNISH_TYPE_NAME = #{punishTypeName}
|
|
or PUNISH_TYPE_NAME = #{punishTypeName}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="blackLevel != null and blackLevel != ''">
|
|
|
|
|
- or BLACK_LEVEL = #{blackLevel}
|
|
|
|
|
|
|
+ <if test="blackLevelNo != null and blackLevelNo != ''">
|
|
|
|
|
+ or BLACK_LEVEL_NO = #{blackLevelNo}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="operationUnit != null and operationUnit != ''">
|
|
<if test="operationUnit != null and operationUnit != ''">
|
|
|
or OPERATION_UNIT = #{operationUnit}
|
|
or OPERATION_UNIT = #{operationUnit}
|
|
@@ -264,6 +271,9 @@
|
|
|
<if test="changeMemo != null and changeMemo != ''">
|
|
<if test="changeMemo != null and changeMemo != ''">
|
|
|
or CHANGE_MEMO = #{changeMemo}
|
|
or CHANGE_MEMO = #{changeMemo}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="blackLevelName != null and blackLevelName != ''">
|
|
|
|
|
+ or BLACK_LEVEL_NAME = #{blackLevelName}
|
|
|
|
|
+ </if>
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
<insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
|
insert into METER_BASE_CAR_BLACELIST (BLACELIST_NO, CAR_NO, CAR_OWNER_NAME,
|
|
insert into METER_BASE_CAR_BLACELIST (BLACELIST_NO, CAR_NO, CAR_OWNER_NAME,
|
|
@@ -272,16 +282,18 @@
|
|
|
CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
|
- PUNISH_TYPE_NO, PUNISH_TYPE_NAME, BLACK_LEVEL,
|
|
|
|
|
- OPERATION_UNIT, CHANGE_MEMO)
|
|
|
|
|
|
|
+ PUNISH_TYPE_NO, PUNISH_TYPE_NAME, BLACK_LEVEL_NO,
|
|
|
|
|
+ OPERATION_UNIT, CHANGE_MEMO, BLACK_LEVEL_NAME
|
|
|
|
|
+ )
|
|
|
values (#{blacelistNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR}, #{carOwnerName,jdbcType=VARCHAR},
|
|
values (#{blacelistNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR}, #{carOwnerName,jdbcType=VARCHAR},
|
|
|
#{carDriverName,jdbcType=VARCHAR}, #{carUnderUnit,jdbcType=VARCHAR}, #{punishReason,jdbcType=VARCHAR},
|
|
#{carDriverName,jdbcType=VARCHAR}, #{carUnderUnit,jdbcType=VARCHAR}, #{punishReason,jdbcType=VARCHAR},
|
|
|
#{punishResult,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
|
|
#{punishResult,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
|
|
|
#{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
#{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
#{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
#{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
#{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP},
|
|
#{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
- #{punishTypeNo,jdbcType=VARCHAR}, #{punishTypeName,jdbcType=VARCHAR}, #{blackLevel,jdbcType=VARCHAR},
|
|
|
|
|
- #{operationUnit,jdbcType=VARCHAR}, #{changeMemo,jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ #{punishTypeNo,jdbcType=VARCHAR}, #{punishTypeName,jdbcType=VARCHAR}, #{blackLevelNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{operationUnit,jdbcType=VARCHAR}, #{changeMemo,jdbcType=VARCHAR}, #{blackLevelName,jdbcType=VARCHAR}
|
|
|
|
|
+ )
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
|
insert into METER_BASE_CAR_BLACELIST
|
|
insert into METER_BASE_CAR_BLACELIST
|
|
@@ -346,8 +358,8 @@
|
|
|
<if test="punishTypeName != null">
|
|
<if test="punishTypeName != null">
|
|
|
PUNISH_TYPE_NAME,
|
|
PUNISH_TYPE_NAME,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="blackLevel != null">
|
|
|
|
|
- BLACK_LEVEL,
|
|
|
|
|
|
|
+ <if test="blackLevelNo != null">
|
|
|
|
|
+ BLACK_LEVEL_NO,
|
|
|
</if>
|
|
</if>
|
|
|
<if test="operationUnit != null">
|
|
<if test="operationUnit != null">
|
|
|
OPERATION_UNIT,
|
|
OPERATION_UNIT,
|
|
@@ -355,6 +367,9 @@
|
|
|
<if test="changeMemo != null">
|
|
<if test="changeMemo != null">
|
|
|
CHANGE_MEMO,
|
|
CHANGE_MEMO,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="blackLevelName != null">
|
|
|
|
|
+ BLACK_LEVEL_NAME,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="blacelistNo != null">
|
|
<if test="blacelistNo != null">
|
|
@@ -417,8 +432,8 @@
|
|
|
<if test="punishTypeName != null">
|
|
<if test="punishTypeName != null">
|
|
|
#{punishTypeName,jdbcType=VARCHAR},
|
|
#{punishTypeName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="blackLevel != null">
|
|
|
|
|
- #{blackLevel,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="blackLevelNo != null">
|
|
|
|
|
+ #{blackLevelNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="operationUnit != null">
|
|
<if test="operationUnit != null">
|
|
|
#{operationUnit,jdbcType=VARCHAR},
|
|
#{operationUnit,jdbcType=VARCHAR},
|
|
@@ -426,6 +441,9 @@
|
|
|
<if test="changeMemo != null">
|
|
<if test="changeMemo != null">
|
|
|
#{changeMemo,jdbcType=VARCHAR},
|
|
#{changeMemo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="blackLevelName != null">
|
|
|
|
|
+ #{blackLevelName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
@@ -449,9 +467,10 @@
|
|
|
DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
PUNISH_TYPE_NO = #{punishTypeNo,jdbcType=VARCHAR},
|
|
PUNISH_TYPE_NO = #{punishTypeNo,jdbcType=VARCHAR},
|
|
|
PUNISH_TYPE_NAME = #{punishTypeName,jdbcType=VARCHAR},
|
|
PUNISH_TYPE_NAME = #{punishTypeName,jdbcType=VARCHAR},
|
|
|
- BLACK_LEVEL = #{blackLevel,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ BLACK_LEVEL_NO = #{blackLevelNo,jdbcType=VARCHAR},
|
|
|
OPERATION_UNIT = #{operationUnit,jdbcType=VARCHAR},
|
|
OPERATION_UNIT = #{operationUnit,jdbcType=VARCHAR},
|
|
|
- CHANGE_MEMO = #{changeMemo,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ CHANGE_MEMO = #{changeMemo,jdbcType=VARCHAR},
|
|
|
|
|
+ BLACK_LEVEL_NAME = #{blackLevelName,jdbcType=VARCHAR}
|
|
|
where BLACELIST_NO = #{blacelistNo,jdbcType=VARCHAR}
|
|
where BLACELIST_NO = #{blacelistNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
@@ -514,8 +533,8 @@
|
|
|
<if test="punishTypeName != null">
|
|
<if test="punishTypeName != null">
|
|
|
PUNISH_TYPE_NAME = #{punishTypeName,jdbcType=VARCHAR},
|
|
PUNISH_TYPE_NAME = #{punishTypeName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="blackLevel != null">
|
|
|
|
|
- BLACK_LEVEL = #{blackLevel,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="blackLevelNo != null">
|
|
|
|
|
+ BLACK_LEVEL_NO = #{blackLevelNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="operationUnit != null">
|
|
<if test="operationUnit != null">
|
|
|
OPERATION_UNIT = #{operationUnit,jdbcType=VARCHAR},
|
|
OPERATION_UNIT = #{operationUnit,jdbcType=VARCHAR},
|
|
@@ -523,20 +542,23 @@
|
|
|
<if test="changeMemo != null">
|
|
<if test="changeMemo != null">
|
|
|
CHANGE_MEMO = #{changeMemo,jdbcType=VARCHAR},
|
|
CHANGE_MEMO = #{changeMemo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="blackLevelName != null">
|
|
|
|
|
+ BLACK_LEVEL_NAME = #{blackLevelName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where BLACELIST_NO = #{blacelistNo,jdbcType=VARCHAR}
|
|
where BLACELIST_NO = #{blacelistNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- <include refid="select" />
|
|
|
|
|
|
|
+ <include refid="select"/>
|
|
|
where BLACELIST_NO = #{blacelistNo,jdbcType=VARCHAR}
|
|
where BLACELIST_NO = #{blacelistNo,jdbcType=VARCHAR}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select" />
|
|
|
|
|
- <include refid="where" />
|
|
|
|
|
|
|
+ <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="whereLike" />
|
|
|
|
|
|
|
+ <include refid="select"/>
|
|
|
|
|
+ <include refid="whereLike"/>
|
|
|
</select>
|
|
</select>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
insert into METER_BASE_CAR_BLACELIST
|
|
insert into METER_BASE_CAR_BLACELIST
|
|
@@ -548,8 +570,8 @@
|
|
|
UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
|
PUNISH_TYPE_NO, PUNISH_TYPE_NAME,
|
|
PUNISH_TYPE_NO, PUNISH_TYPE_NAME,
|
|
|
- BLACK_LEVEL, OPERATION_UNIT, CHANGE_MEMO
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ BLACK_LEVEL_NO, OPERATION_UNIT,
|
|
|
|
|
+ CHANGE_MEMO, BLACK_LEVEL_NAME)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
select
|
|
|
#{item.blacelistNo,jdbcType=VARCHAR},
|
|
#{item.blacelistNo,jdbcType=VARCHAR},
|
|
@@ -560,114 +582,118 @@
|
|
|
#{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
#{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
#{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP},
|
|
#{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP},
|
|
|
#{item.punishTypeNo,jdbcType=VARCHAR}, #{item.punishTypeName,jdbcType=VARCHAR},
|
|
#{item.punishTypeNo,jdbcType=VARCHAR}, #{item.punishTypeName,jdbcType=VARCHAR},
|
|
|
- #{item.blackLevel,jdbcType=VARCHAR}, #{item.operationUnit,jdbcType=VARCHAR}, #{item.changeMemo,jdbcType=VARCHAR}
|
|
|
|
|
- from dual
|
|
|
|
|
|
|
+ #{item.blackLevelNo,jdbcType=VARCHAR}, #{item.operationUnit,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.changeMemo,jdbcType=VARCHAR}, #{item.blackLevelName,jdbcType=VARCHAR} from dual
|
|
|
</foreach> )
|
|
</foreach> )
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
update METER_BASE_CAR_BLACELIST
|
|
update METER_BASE_CAR_BLACELIST
|
|
|
set
|
|
set
|
|
|
BLACELIST_NO=
|
|
BLACELIST_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.blacelistNo,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.blacelistNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CAR_NO=
|
|
,CAR_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carNo,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CAR_OWNER_NAME=
|
|
,CAR_OWNER_NAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carOwnerName,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carOwnerName,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CAR_DRIVER_NAME=
|
|
,CAR_DRIVER_NAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carDriverName,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carDriverName,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CAR_UNDER_UNIT=
|
|
,CAR_UNDER_UNIT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carUnderUnit,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carUnderUnit,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,PUNISH_REASON=
|
|
,PUNISH_REASON=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishReason,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishReason,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,PUNISH_RESULT=
|
|
,PUNISH_RESULT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishResult,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishResult,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,VALUE_FLAG=
|
|
,VALUE_FLAG=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,MEMO=
|
|
,MEMO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CREATE_MAN_NO=
|
|
,CREATE_MAN_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CREATE_MAN_NAME=
|
|
,CREATE_MAN_NAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CREATE_TIME=
|
|
,CREATE_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,UPDATE_MAN_NO=
|
|
,UPDATE_MAN_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,UPDATE_MAN_NAME=
|
|
,UPDATE_MAN_NAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,UPDATE_TIME=
|
|
,UPDATE_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,DELETE_MAN_NO=
|
|
,DELETE_MAN_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,DELETE_MAN_NAME=
|
|
,DELETE_MAN_NAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,DELETE_TIME=
|
|
,DELETE_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,PUNISH_TYPE_NO=
|
|
,PUNISH_TYPE_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishTypeNo,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishTypeNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,PUNISH_TYPE_NAME=
|
|
,PUNISH_TYPE_NAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishTypeName,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishTypeName,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
- ,BLACK_LEVEL=
|
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.blackLevel,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ ,BLACK_LEVEL_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.blackLevelNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,OPERATION_UNIT=
|
|
,OPERATION_UNIT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.operationUnit,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.operationUnit,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CHANGE_MEMO=
|
|
,CHANGE_MEMO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.changeMemo,jdbcType=VARCHAR}
|
|
when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.changeMemo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
+ ,BLACK_LEVEL_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.blackLevelName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
where BLACELIST_NO in
|
|
where BLACELIST_NO in
|
|
|
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
|
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
#{item.blacelistNo,jdbcType=VARCHAR}
|
|
#{item.blacelistNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</update>
|
|
</update>
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
|
delete from METER_BASE_CAR_BLACELIST
|
|
delete from METER_BASE_CAR_BLACELIST
|
|
|
where BLACELIST_NO in
|
|
where BLACELIST_NO in
|
|
|
- <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
|
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
#{id}
|
|
#{id}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</delete>
|
|
</delete>
|