|
|
@@ -20,23 +20,30 @@
|
|
|
<result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
|
|
|
<result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
|
|
|
<result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
|
|
|
+ <result column="PUNISH_TYPE_NO" jdbcType="VARCHAR" property="punishTypeNo" />
|
|
|
+ <result column="PUNISH_TYPE_NAME" jdbcType="VARCHAR" property="punishTypeName" />
|
|
|
+ <result column="BLACK_LEVEL" jdbcType="VARCHAR" property="blackLevel" />
|
|
|
+ <result column="OPERATION_UNIT" jdbcType="VARCHAR" property="operationUnit" />
|
|
|
+ <result column="CHANGE_MEMO" jdbcType="VARCHAR" property="changeMemo" />
|
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
|
- 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,
|
|
|
- UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME
|
|
|
+ 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,
|
|
|
+ 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
|
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
|
- 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.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.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.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
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
- SELECT <include refid="columns"/> FROM METER_BASE_CAR_BLACELIST
|
|
|
+ SELECT <include refid="columns" /> FROM METER_BASE_CAR_BLACELIST
|
|
|
</sql>
|
|
|
<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 id="where">
|
|
|
<where>
|
|
|
@@ -94,6 +101,21 @@
|
|
|
<if test="deleteTime != null">
|
|
|
and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
|
|
|
</if>
|
|
|
+ <if test="punishTypeNo != null and punishTypeNo != ''">
|
|
|
+ and PUNISH_TYPE_NO = #{punishTypeNo}
|
|
|
+ </if>
|
|
|
+ <if test="punishTypeName != null and punishTypeName != ''">
|
|
|
+ and PUNISH_TYPE_NAME = #{punishTypeName}
|
|
|
+ </if>
|
|
|
+ <if test="blackLevel != null and blackLevel != ''">
|
|
|
+ and BLACK_LEVEL = #{blackLevel}
|
|
|
+ </if>
|
|
|
+ <if test="operationUnit != null and operationUnit != ''">
|
|
|
+ and OPERATION_UNIT = #{operationUnit}
|
|
|
+ </if>
|
|
|
+ <if test="changeMemo != null and changeMemo != ''">
|
|
|
+ and CHANGE_MEMO = #{changeMemo}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
|
@@ -152,6 +174,21 @@
|
|
|
<if test="deleteTime != null">
|
|
|
and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
|
|
|
</if>
|
|
|
+ <if test="punishTypeNo != null and punishTypeNo != ''">
|
|
|
+ and PUNISH_TYPE_NO LIKE '%${punishTypeNo}%'
|
|
|
+ </if>
|
|
|
+ <if test="punishTypeName != null and punishTypeName != ''">
|
|
|
+ and PUNISH_TYPE_NAME LIKE '%${punishTypeName}%'
|
|
|
+ </if>
|
|
|
+ <if test="blackLevel != null and blackLevel != ''">
|
|
|
+ and BLACK_LEVEL LIKE '%${blackLevel}%'
|
|
|
+ </if>
|
|
|
+ <if test="operationUnit != null and operationUnit != ''">
|
|
|
+ and OPERATION_UNIT LIKE '%${operationUnit}%'
|
|
|
+ </if>
|
|
|
+ <if test="changeMemo != null and changeMemo != ''">
|
|
|
+ and CHANGE_MEMO LIKE '%${changeMemo}%'
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
@@ -160,74 +197,91 @@
|
|
|
</delete>
|
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
delete from METER_BASE_CAR_BLACELIST
|
|
|
- where 1!=1
|
|
|
- <if test="carNo != null and carNo != ''">
|
|
|
- or CAR_NO = #{carNo}
|
|
|
- </if>
|
|
|
- <if test="carOwnerName != null and carOwnerName != ''">
|
|
|
- or CAR_OWNER_NAME = #{carOwnerName}
|
|
|
- </if>
|
|
|
- <if test="carDriverName != null and carDriverName != ''">
|
|
|
- or CAR_DRIVER_NAME = #{carDriverName}
|
|
|
- </if>
|
|
|
- <if test="carUnderUnit != null and carUnderUnit != ''">
|
|
|
- or CAR_UNDER_UNIT = #{carUnderUnit}
|
|
|
- </if>
|
|
|
- <if test="punishReason != null and punishReason != ''">
|
|
|
- or PUNISH_REASON = #{punishReason}
|
|
|
- </if>
|
|
|
- <if test="punishResult != null and punishResult != ''">
|
|
|
- or PUNISH_RESULT = #{punishResult}
|
|
|
- </if>
|
|
|
- <if test="valueFlag != null and valueFlag != ''">
|
|
|
- or VALUE_FLAG = #{valueFlag}
|
|
|
- </if>
|
|
|
- <if test="memo != null and memo != ''">
|
|
|
- or MEMO = #{memo}
|
|
|
- </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>
|
|
|
- <if test="updateManNo != null and updateManNo != ''">
|
|
|
- or UPDATE_MAN_NO = #{updateManNo}
|
|
|
- </if>
|
|
|
- <if test="updateManName != null and updateManName != ''">
|
|
|
- or UPDATE_MAN_NAME = #{updateManName}
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
- </if>
|
|
|
- <if test="deleteManNo != null and deleteManNo != ''">
|
|
|
- or DELETE_MAN_NO = #{deleteManNo}
|
|
|
- </if>
|
|
|
- <if test="deleteManName != null and deleteManName != ''">
|
|
|
- or DELETE_MAN_NAME = #{deleteManName}
|
|
|
- </if>
|
|
|
- <if test="deleteTime != null">
|
|
|
- or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
|
|
|
- </if>
|
|
|
+ where 1!=1
|
|
|
+ <if test="carNo != null and carNo != ''">
|
|
|
+ or CAR_NO = #{carNo}
|
|
|
+ </if>
|
|
|
+ <if test="carOwnerName != null and carOwnerName != ''">
|
|
|
+ or CAR_OWNER_NAME = #{carOwnerName}
|
|
|
+ </if>
|
|
|
+ <if test="carDriverName != null and carDriverName != ''">
|
|
|
+ or CAR_DRIVER_NAME = #{carDriverName}
|
|
|
+ </if>
|
|
|
+ <if test="carUnderUnit != null and carUnderUnit != ''">
|
|
|
+ or CAR_UNDER_UNIT = #{carUnderUnit}
|
|
|
+ </if>
|
|
|
+ <if test="punishReason != null and punishReason != ''">
|
|
|
+ or PUNISH_REASON = #{punishReason}
|
|
|
+ </if>
|
|
|
+ <if test="punishResult != null and punishResult != ''">
|
|
|
+ or PUNISH_RESULT = #{punishResult}
|
|
|
+ </if>
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
+ or VALUE_FLAG = #{valueFlag}
|
|
|
+ </if>
|
|
|
+ <if test="memo != null and memo != ''">
|
|
|
+ or MEMO = #{memo}
|
|
|
+ </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>
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
+ or UPDATE_MAN_NO = #{updateManNo}
|
|
|
+ </if>
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
+ or UPDATE_MAN_NAME = #{updateManName}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
+ </if>
|
|
|
+ <if test="deleteManNo != null and deleteManNo != ''">
|
|
|
+ or DELETE_MAN_NO = #{deleteManNo}
|
|
|
+ </if>
|
|
|
+ <if test="deleteManName != null and deleteManName != ''">
|
|
|
+ or DELETE_MAN_NAME = #{deleteManName}
|
|
|
+ </if>
|
|
|
+ <if test="deleteTime != null">
|
|
|
+ or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
|
|
|
+ </if>
|
|
|
+ <if test="punishTypeNo != null and punishTypeNo != ''">
|
|
|
+ or PUNISH_TYPE_NO = #{punishTypeNo}
|
|
|
+ </if>
|
|
|
+ <if test="punishTypeName != null and punishTypeName != ''">
|
|
|
+ or PUNISH_TYPE_NAME = #{punishTypeName}
|
|
|
+ </if>
|
|
|
+ <if test="blackLevel != null and blackLevel != ''">
|
|
|
+ or BLACK_LEVEL = #{blackLevel}
|
|
|
+ </if>
|
|
|
+ <if test="operationUnit != null and operationUnit != ''">
|
|
|
+ or OPERATION_UNIT = #{operationUnit}
|
|
|
+ </if>
|
|
|
+ <if test="changeMemo != null and changeMemo != ''">
|
|
|
+ or CHANGE_MEMO = #{changeMemo}
|
|
|
+ </if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
|
- insert into METER_BASE_CAR_BLACELIST (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, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
- DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME
|
|
|
- )
|
|
|
- values (#{blacelistNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR}, #{carOwnerName,jdbcType=VARCHAR},
|
|
|
- #{carDriverName,jdbcType=VARCHAR}, #{carUnderUnit,jdbcType=VARCHAR}, #{punishReason,jdbcType=VARCHAR},
|
|
|
- #{punishResult,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
|
|
|
- #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP}
|
|
|
- )
|
|
|
+ insert into METER_BASE_CAR_BLACELIST (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, 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)
|
|
|
+ values (#{blacelistNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR}, #{carOwnerName,jdbcType=VARCHAR},
|
|
|
+ #{carDriverName,jdbcType=VARCHAR}, #{carUnderUnit,jdbcType=VARCHAR}, #{punishReason,jdbcType=VARCHAR},
|
|
|
+ #{punishResult,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
|
|
|
+ #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,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})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
|
insert into METER_BASE_CAR_BLACELIST
|
|
|
@@ -286,6 +340,21 @@
|
|
|
<if test="deleteTime != null">
|
|
|
DELETE_TIME,
|
|
|
</if>
|
|
|
+ <if test="punishTypeNo != null">
|
|
|
+ PUNISH_TYPE_NO,
|
|
|
+ </if>
|
|
|
+ <if test="punishTypeName != null">
|
|
|
+ PUNISH_TYPE_NAME,
|
|
|
+ </if>
|
|
|
+ <if test="blackLevel != null">
|
|
|
+ BLACK_LEVEL,
|
|
|
+ </if>
|
|
|
+ <if test="operationUnit != null">
|
|
|
+ OPERATION_UNIT,
|
|
|
+ </if>
|
|
|
+ <if test="changeMemo != null">
|
|
|
+ CHANGE_MEMO,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="blacelistNo != null">
|
|
|
@@ -342,27 +411,47 @@
|
|
|
<if test="deleteTime != null">
|
|
|
#{deleteTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="punishTypeNo != null">
|
|
|
+ #{punishTypeNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="punishTypeName != null">
|
|
|
+ #{punishTypeName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="blackLevel != null">
|
|
|
+ #{blackLevel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="operationUnit != null">
|
|
|
+ #{operationUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="changeMemo != null">
|
|
|
+ #{changeMemo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
|
update METER_BASE_CAR_BLACELIST
|
|
|
set CAR_NO = #{carNo,jdbcType=VARCHAR},
|
|
|
- CAR_OWNER_NAME = #{carOwnerName,jdbcType=VARCHAR},
|
|
|
- CAR_DRIVER_NAME = #{carDriverName,jdbcType=VARCHAR},
|
|
|
- CAR_UNDER_UNIT = #{carUnderUnit,jdbcType=VARCHAR},
|
|
|
- PUNISH_REASON = #{punishReason,jdbcType=VARCHAR},
|
|
|
- PUNISH_RESULT = #{punishResult,jdbcType=VARCHAR},
|
|
|
- VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
|
|
|
- MEMO = #{memo,jdbcType=VARCHAR},
|
|
|
- CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
- CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
- CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
- UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
|
|
|
- DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
|
|
|
- DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP}
|
|
|
+ CAR_OWNER_NAME = #{carOwnerName,jdbcType=VARCHAR},
|
|
|
+ CAR_DRIVER_NAME = #{carDriverName,jdbcType=VARCHAR},
|
|
|
+ CAR_UNDER_UNIT = #{carUnderUnit,jdbcType=VARCHAR},
|
|
|
+ PUNISH_REASON = #{punishReason,jdbcType=VARCHAR},
|
|
|
+ PUNISH_RESULT = #{punishResult,jdbcType=VARCHAR},
|
|
|
+ VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
|
|
|
+ MEMO = #{memo,jdbcType=VARCHAR},
|
|
|
+ CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
+ CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
+ UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
|
|
|
+ DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
|
|
|
+ DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
+ PUNISH_TYPE_NO = #{punishTypeNo,jdbcType=VARCHAR},
|
|
|
+ PUNISH_TYPE_NAME = #{punishTypeName,jdbcType=VARCHAR},
|
|
|
+ BLACK_LEVEL = #{blackLevel,jdbcType=VARCHAR},
|
|
|
+ OPERATION_UNIT = #{operationUnit,jdbcType=VARCHAR},
|
|
|
+ CHANGE_MEMO = #{changeMemo,jdbcType=VARCHAR}
|
|
|
where BLACELIST_NO = #{blacelistNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecarblacelist.model.MeterBaseCarBlacelist">
|
|
|
@@ -419,129 +508,166 @@
|
|
|
<if test="deleteTime != null">
|
|
|
DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="punishTypeNo != null">
|
|
|
+ PUNISH_TYPE_NO = #{punishTypeNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="punishTypeName != null">
|
|
|
+ PUNISH_TYPE_NAME = #{punishTypeName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="blackLevel != null">
|
|
|
+ BLACK_LEVEL = #{blackLevel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="operationUnit != null">
|
|
|
+ OPERATION_UNIT = #{operationUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="changeMemo != null">
|
|
|
+ CHANGE_MEMO = #{changeMemo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where BLACELIST_NO = #{blacelistNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
+ <include refid="select" />
|
|
|
where BLACELIST_NO = #{blacelistNo,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
- <include refid="where"/>
|
|
|
- order by BLACELIST_NO desc
|
|
|
+ <include refid="select" />
|
|
|
+ <include refid="where" />
|
|
|
</select>
|
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
- <include refid="whereLike"/>
|
|
|
- order by BLACELIST_NO desc
|
|
|
+ <include refid="select" />
|
|
|
+ <include refid="whereLike" />
|
|
|
</select>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
- insert into METER_BASE_CAR_BLACELIST
|
|
|
- (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, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
- DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME
|
|
|
- )
|
|
|
- ( <foreach collection="list" item="item" separator="union all">
|
|
|
- select
|
|
|
- #{item.blacelistNo,jdbcType=VARCHAR},
|
|
|
- #{item.carNo,jdbcType=VARCHAR}, #{item.carOwnerName,jdbcType=VARCHAR}, #{item.carDriverName,jdbcType=VARCHAR},
|
|
|
- #{item.carUnderUnit,jdbcType=VARCHAR}, #{item.punishReason,jdbcType=VARCHAR}, #{item.punishResult,jdbcType=VARCHAR},
|
|
|
- #{item.valueFlag,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR}, #{item.createManNo,jdbcType=VARCHAR},
|
|
|
- #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,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}
|
|
|
- from dual
|
|
|
- </foreach> )
|
|
|
+ insert into METER_BASE_CAR_BLACELIST
|
|
|
+ (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, 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
|
|
|
+ )
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
+ select
|
|
|
+ #{item.blacelistNo,jdbcType=VARCHAR},
|
|
|
+ #{item.carNo,jdbcType=VARCHAR}, #{item.carOwnerName,jdbcType=VARCHAR}, #{item.carDriverName,jdbcType=VARCHAR},
|
|
|
+ #{item.carUnderUnit,jdbcType=VARCHAR}, #{item.punishReason,jdbcType=VARCHAR}, #{item.punishResult,jdbcType=VARCHAR},
|
|
|
+ #{item.valueFlag,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR}, #{item.createManNo,jdbcType=VARCHAR},
|
|
|
+ #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,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.punishTypeNo,jdbcType=VARCHAR}, #{item.punishTypeName,jdbcType=VARCHAR},
|
|
|
+ #{item.blackLevel,jdbcType=VARCHAR}, #{item.operationUnit,jdbcType=VARCHAR}, #{item.changeMemo,jdbcType=VARCHAR}
|
|
|
+ from dual
|
|
|
+ </foreach> )
|
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
- update METER_BASE_CAR_BLACELIST
|
|
|
- set
|
|
|
- BLACELIST_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.blacelistNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CAR_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CAR_OWNER_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carOwnerName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CAR_DRIVER_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carDriverName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CAR_UNDER_UNIT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carUnderUnit,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,PUNISH_REASON=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishReason,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,PUNISH_RESULT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishResult,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALUE_FLAG=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,MEMO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CREATE_MAN_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CREATE_MAN_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CREATE_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_MAN_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_MAN_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,DELETE_MAN_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,DELETE_MAN_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,DELETE_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case BLACELIST_NO" close="end">
|
|
|
- when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- where BLACELIST_NO in
|
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
- #{item.blacelistNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
+ update METER_BASE_CAR_BLACELIST
|
|
|
+ set
|
|
|
+ BLACELIST_NO=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.blacelistNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CAR_NO=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CAR_OWNER_NAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carOwnerName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CAR_DRIVER_NAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carDriverName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CAR_UNDER_UNIT=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.carUnderUnit,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,PUNISH_REASON=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishReason,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,PUNISH_RESULT=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishResult,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,VALUE_FLAG=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,MEMO=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CREATE_MAN_NO=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CREATE_MAN_NAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CREATE_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_MAN_NO=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_MAN_NAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,DELETE_MAN_NO=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,DELETE_MAN_NAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,DELETE_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,PUNISH_TYPE_NO=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishTypeNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,PUNISH_TYPE_NAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.punishTypeName,jdbcType=VARCHAR}
|
|
|
+ </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}
|
|
|
+ </foreach>
|
|
|
+ ,OPERATION_UNIT=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.operationUnit,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CHANGE_MEMO=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case BLACELIST_NO" separator=" ">
|
|
|
+ when #{item.blacelistNo,jdbcType=VARCHAR} then #{item.changeMemo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ where BLACELIST_NO in
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
+ #{item.blacelistNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
</update>
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
|
delete from METER_BASE_CAR_BLACELIST
|
|
|
- where BLACELIST_NO in
|
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
+ where BLACELIST_NO in
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|