|
@@ -0,0 +1,776 @@
|
|
|
|
|
+<?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.baseinfo.meterbasevehiclerangeconfig.mapper.MeterBaseVehicleRangeConfigMapper">
|
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.steerinfo.baseinfo.meterbasevehiclerangeconfig.model.MeterBaseVehicleRangeConfig">
|
|
|
|
|
+ <id column="VEHICLE_RANGE_ID" jdbcType="VARCHAR" property="vehicleRangeId" />
|
|
|
|
|
+ <result column="RAILWAY_NO" jdbcType="VARCHAR" property="railwayNo" />
|
|
|
|
|
+ <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
|
|
|
|
|
+ <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
|
|
|
|
|
+ <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
|
|
|
|
|
+ <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
|
|
|
|
|
+ <result column="RECEIVING_UINT_NO" jdbcType="VARCHAR" property="receivingUintNo" />
|
|
|
|
|
+ <result column="RECEIVING_UINT_NAME" jdbcType="VARCHAR" property="receivingUintName" />
|
|
|
|
|
+ <result column="BASE_SPOT_NO" jdbcType="VARCHAR" property="baseSpotNo" />
|
|
|
|
|
+ <result column="BASE_SPOT_NAME" jdbcType="VARCHAR" property="baseSpotName" />
|
|
|
|
|
+ <result column="CARRIGE_NO" jdbcType="VARCHAR" property="carrigeNo" />
|
|
|
|
|
+ <result column="LOAD_WEIGHT" jdbcType="DECIMAL" property="loadWeight" />
|
|
|
|
|
+ <result column="GROSS_WEIGHT_UPPER" jdbcType="DECIMAL" property="grossWeightUpper" />
|
|
|
|
|
+ <result column="GROSS_WEIGHT_LOWER" jdbcType="DECIMAL" property="grossWeightLower" />
|
|
|
|
|
+ <result column="NET_WEIGHT_UPPER" jdbcType="DECIMAL" property="netWeightUpper" />
|
|
|
|
|
+ <result column="NET_WEIGHT_LOWER" jdbcType="DECIMAL" property="netWeightLower" />
|
|
|
|
|
+ <result column="RAILWAY_TYPE_NO" jdbcType="VARCHAR" property="railwayTypeNo" />
|
|
|
|
|
+ <result column="RAILWAY_TYPE_NAME" jdbcType="VARCHAR" property="railwayTypeName" />
|
|
|
|
|
+ <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" />
|
|
|
|
|
+ <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
|
|
|
|
|
+ <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
|
|
|
|
|
+ <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
+ <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
|
|
|
|
|
+ </resultMap>
|
|
|
|
|
+ <sql id="columns">
|
|
|
|
|
+ VEHICLE_RANGE_ID, RAILWAY_NO, MATTER_NO, MATTER_NAME, FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME,
|
|
|
|
|
+ RECEIVING_UINT_NO, RECEIVING_UINT_NAME, BASE_SPOT_NO, BASE_SPOT_NAME, CARRIGE_NO,
|
|
|
|
|
+ LOAD_WEIGHT, GROSS_WEIGHT_UPPER, GROSS_WEIGHT_LOWER, NET_WEIGHT_UPPER, NET_WEIGHT_LOWER,
|
|
|
|
|
+ RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
|
|
+ UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, VALUE_FLAG
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="columns_alias">
|
|
|
|
|
+ t.VEHICLE_RANGE_ID, t.RAILWAY_NO, t.MATTER_NO, t.MATTER_NAME, t.FORWARDING_UNIT_NO,
|
|
|
|
|
+ t.FORWARDING_UNIT_NAME, t.RECEIVING_UINT_NO, t.RECEIVING_UINT_NAME, t.BASE_SPOT_NO,
|
|
|
|
|
+ t.BASE_SPOT_NAME, t.CARRIGE_NO, t.LOAD_WEIGHT, t.GROSS_WEIGHT_UPPER, t.GROSS_WEIGHT_LOWER,
|
|
|
|
|
+ t.NET_WEIGHT_UPPER, t.NET_WEIGHT_LOWER, t.RAILWAY_TYPE_NO, t.RAILWAY_TYPE_NAME, t.CREATE_MAN_NO,
|
|
|
|
|
+ t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME,
|
|
|
|
|
+ t.VALUE_FLAG
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="select">
|
|
|
|
|
+ SELECT <include refid="columns"/> FROM METER_BASE_VEHICLE_RANGE_CONFIG
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="select_alias">
|
|
|
|
|
+ SELECT <include refid="columns_alias"/> FROM METER_BASE_VEHICLE_RANGE_CONFIG t
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="where">
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="vehicleRangeId != null and vehicleRangeId != ''">
|
|
|
|
|
+ and VEHICLE_RANGE_ID = #{vehicleRangeId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayNo != null and railwayNo != ''">
|
|
|
|
|
+ and RAILWAY_NO = #{railwayNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null and matterNo != ''">
|
|
|
|
|
+ and MATTER_NO = #{matterNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null and matterName != ''">
|
|
|
|
|
+ and MATTER_NAME = #{matterName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NO = #{forwardingUnitNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NAME = #{forwardingUnitName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintNo != null and receivingUintNo != ''">
|
|
|
|
|
+ and RECEIVING_UINT_NO = #{receivingUintNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintName != null and receivingUintName != ''">
|
|
|
|
|
+ and RECEIVING_UINT_NAME = #{receivingUintName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ and BASE_SPOT_NO = #{baseSpotNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME = #{baseSpotName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carrigeNo != null and carrigeNo != ''">
|
|
|
|
|
+ and CARRIGE_NO = #{carrigeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="loadWeight != null">
|
|
|
|
|
+ and LOAD_WEIGHT = #{loadWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightUpper != null">
|
|
|
|
|
+ and GROSS_WEIGHT_UPPER = #{grossWeightUpper}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightLower != null">
|
|
|
|
|
+ and GROSS_WEIGHT_LOWER = #{grossWeightLower}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightUpper != null">
|
|
|
|
|
+ and NET_WEIGHT_UPPER = #{netWeightUpper}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightLower != null">
|
|
|
|
|
+ and NET_WEIGHT_LOWER = #{netWeightLower}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeNo != null and railwayTypeNo != ''">
|
|
|
|
|
+ and RAILWAY_TYPE_NO = #{railwayTypeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeName != null and railwayTypeName != ''">
|
|
|
|
|
+ and RAILWAY_TYPE_NAME = #{railwayTypeName}
|
|
|
|
|
+ </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>
|
|
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
+ and UPDATE_MAN_NO = #{updateManNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
+ and UPDATE_MAN_NAME = #{updateManName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
|
|
+ and VALUE_FLAG = #{valueFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="whereLike">
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="vehicleRangeId != null and vehicleRangeId != ''">
|
|
|
|
|
+ and VEHICLE_RANGE_ID LIKE '%${vehicleRangeId}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayNo != null and railwayNo != ''">
|
|
|
|
|
+ and RAILWAY_NO LIKE '%${railwayNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null and matterNo != ''">
|
|
|
|
|
+ and MATTER_NO LIKE '%${matterNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null and matterName != ''">
|
|
|
|
|
+ and MATTER_NAME LIKE '%${matterName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintNo != null and receivingUintNo != ''">
|
|
|
|
|
+ and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintName != null and receivingUintName != ''">
|
|
|
|
|
+ and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ and BASE_SPOT_NO LIKE '%${baseSpotNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME LIKE '%${baseSpotName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carrigeNo != null and carrigeNo != ''">
|
|
|
|
|
+ and CARRIGE_NO LIKE '%${carrigeNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="loadWeight != null">
|
|
|
|
|
+ and LOAD_WEIGHT = #{loadWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightUpper != null">
|
|
|
|
|
+ and GROSS_WEIGHT_UPPER = #{grossWeightUpper}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightLower != null">
|
|
|
|
|
+ and GROSS_WEIGHT_LOWER = #{grossWeightLower}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightUpper != null">
|
|
|
|
|
+ and NET_WEIGHT_UPPER = #{netWeightUpper}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightLower != null">
|
|
|
|
|
+ and NET_WEIGHT_LOWER = #{netWeightLower}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeNo != null and railwayTypeNo != ''">
|
|
|
|
|
+ and RAILWAY_TYPE_NO LIKE '%${railwayTypeNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeName != null and railwayTypeName != ''">
|
|
|
|
|
+ and RAILWAY_TYPE_NAME LIKE '%${railwayTypeName}%'
|
|
|
|
|
+ </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>
|
|
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
+ and UPDATE_MAN_NO LIKE '%${updateManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
+ and UPDATE_MAN_NAME LIKE '%${updateManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
|
|
+ and VALUE_FLAG LIKE '%${valueFlag}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
|
+ delete from METER_BASE_VEHICLE_RANGE_CONFIG
|
|
|
|
|
+ where VEHICLE_RANGE_ID = #{vehicleRangeId,jdbcType=VARCHAR}
|
|
|
|
|
+ </delete>
|
|
|
|
|
+ <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
|
|
+ delete from METER_BASE_VEHICLE_RANGE_CONFIG
|
|
|
|
|
+ where 1!=1
|
|
|
|
|
+ <if test="railwayNo != null and railwayNo != ''">
|
|
|
|
|
+ or RAILWAY_NO = #{railwayNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null and matterNo != ''">
|
|
|
|
|
+ or MATTER_NO = #{matterNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null and matterName != ''">
|
|
|
|
|
+ or MATTER_NAME = #{matterName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
|
|
|
|
|
+ or FORWARDING_UNIT_NO = #{forwardingUnitNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
+ or FORWARDING_UNIT_NAME = #{forwardingUnitName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintNo != null and receivingUintNo != ''">
|
|
|
|
|
+ or RECEIVING_UINT_NO = #{receivingUintNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintName != null and receivingUintName != ''">
|
|
|
|
|
+ or RECEIVING_UINT_NAME = #{receivingUintName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ or BASE_SPOT_NO = #{baseSpotNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
+ or BASE_SPOT_NAME = #{baseSpotName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carrigeNo != null and carrigeNo != ''">
|
|
|
|
|
+ or CARRIGE_NO = #{carrigeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="loadWeight != null">
|
|
|
|
|
+ or LOAD_WEIGHT = #{loadWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightUpper != null">
|
|
|
|
|
+ or GROSS_WEIGHT_UPPER = #{grossWeightUpper}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightLower != null">
|
|
|
|
|
+ or GROSS_WEIGHT_LOWER = #{grossWeightLower}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightUpper != null">
|
|
|
|
|
+ or NET_WEIGHT_UPPER = #{netWeightUpper}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightLower != null">
|
|
|
|
|
+ or NET_WEIGHT_LOWER = #{netWeightLower}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeNo != null and railwayTypeNo != ''">
|
|
|
|
|
+ or RAILWAY_TYPE_NO = #{railwayTypeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeName != null and railwayTypeName != ''">
|
|
|
|
|
+ or RAILWAY_TYPE_NAME = #{railwayTypeName}
|
|
|
|
|
+ </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="valueFlag != null and valueFlag != ''">
|
|
|
|
|
+ or VALUE_FLAG = #{valueFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </delete>
|
|
|
|
|
+ <insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasevehiclerangeconfig.model.MeterBaseVehicleRangeConfig">
|
|
|
|
|
+ insert into METER_BASE_VEHICLE_RANGE_CONFIG (VEHICLE_RANGE_ID, RAILWAY_NO, MATTER_NO,
|
|
|
|
|
+ MATTER_NAME, FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME,
|
|
|
|
|
+ RECEIVING_UINT_NO, RECEIVING_UINT_NAME, BASE_SPOT_NO,
|
|
|
|
|
+ BASE_SPOT_NAME, CARRIGE_NO, LOAD_WEIGHT,
|
|
|
|
|
+ GROSS_WEIGHT_UPPER, GROSS_WEIGHT_LOWER, NET_WEIGHT_UPPER,
|
|
|
|
|
+ NET_WEIGHT_LOWER, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME,
|
|
|
|
|
+ CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
|
|
+ UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
|
|
+ VALUE_FLAG)
|
|
|
|
|
+ values (#{vehicleRangeId,jdbcType=VARCHAR}, #{railwayNo,jdbcType=VARCHAR}, #{matterNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{matterName,jdbcType=VARCHAR}, #{forwardingUnitNo,jdbcType=VARCHAR}, #{forwardingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{receivingUintNo,jdbcType=VARCHAR}, #{receivingUintName,jdbcType=VARCHAR}, #{baseSpotNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{baseSpotName,jdbcType=VARCHAR}, #{carrigeNo,jdbcType=VARCHAR}, #{loadWeight,jdbcType=DECIMAL},
|
|
|
|
|
+ #{grossWeightUpper,jdbcType=DECIMAL}, #{grossWeightLower,jdbcType=DECIMAL}, #{netWeightUpper,jdbcType=DECIMAL},
|
|
|
|
|
+ #{netWeightLower,jdbcType=DECIMAL}, #{railwayTypeNo,jdbcType=VARCHAR}, #{railwayTypeName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{valueFlag,jdbcType=VARCHAR})
|
|
|
|
|
+ </insert>
|
|
|
|
|
+ <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasevehiclerangeconfig.model.MeterBaseVehicleRangeConfig">
|
|
|
|
|
+ insert into METER_BASE_VEHICLE_RANGE_CONFIG
|
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="vehicleRangeId != null">
|
|
|
|
|
+ VEHICLE_RANGE_ID,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayNo != null">
|
|
|
|
|
+ RAILWAY_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null">
|
|
|
|
|
+ MATTER_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null">
|
|
|
|
|
+ MATTER_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null">
|
|
|
|
|
+ FORWARDING_UNIT_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null">
|
|
|
|
|
+ FORWARDING_UNIT_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintNo != null">
|
|
|
|
|
+ RECEIVING_UINT_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintName != null">
|
|
|
|
|
+ RECEIVING_UINT_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null">
|
|
|
|
|
+ BASE_SPOT_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null">
|
|
|
|
|
+ BASE_SPOT_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carrigeNo != null">
|
|
|
|
|
+ CARRIGE_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="loadWeight != null">
|
|
|
|
|
+ LOAD_WEIGHT,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightUpper != null">
|
|
|
|
|
+ GROSS_WEIGHT_UPPER,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightLower != null">
|
|
|
|
|
+ GROSS_WEIGHT_LOWER,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightUpper != null">
|
|
|
|
|
+ NET_WEIGHT_UPPER,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightLower != null">
|
|
|
|
|
+ NET_WEIGHT_LOWER,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeNo != null">
|
|
|
|
|
+ RAILWAY_TYPE_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeName != null">
|
|
|
|
|
+ RAILWAY_TYPE_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManNo != null">
|
|
|
|
|
+ CREATE_MAN_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManName != null">
|
|
|
|
|
+ CREATE_MAN_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
|
+ CREATE_TIME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ UPDATE_MAN_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null">
|
|
|
|
|
+ UPDATE_MAN_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ UPDATE_TIME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null">
|
|
|
|
|
+ VALUE_FLAG,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="vehicleRangeId != null">
|
|
|
|
|
+ #{vehicleRangeId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayNo != null">
|
|
|
|
|
+ #{railwayNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null">
|
|
|
|
|
+ #{matterNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null">
|
|
|
|
|
+ #{matterName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null">
|
|
|
|
|
+ #{forwardingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null">
|
|
|
|
|
+ #{forwardingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintNo != null">
|
|
|
|
|
+ #{receivingUintNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintName != null">
|
|
|
|
|
+ #{receivingUintName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null">
|
|
|
|
|
+ #{baseSpotNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null">
|
|
|
|
|
+ #{baseSpotName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carrigeNo != null">
|
|
|
|
|
+ #{carrigeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="loadWeight != null">
|
|
|
|
|
+ #{loadWeight,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightUpper != null">
|
|
|
|
|
+ #{grossWeightUpper,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightLower != null">
|
|
|
|
|
+ #{grossWeightLower,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightUpper != null">
|
|
|
|
|
+ #{netWeightUpper,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightLower != null">
|
|
|
|
|
+ #{netWeightLower,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeNo != null">
|
|
|
|
|
+ #{railwayTypeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeName != null">
|
|
|
|
|
+ #{railwayTypeName,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>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ #{updateManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null">
|
|
|
|
|
+ #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null">
|
|
|
|
|
+ #{valueFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ </insert>
|
|
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasevehiclerangeconfig.model.MeterBaseVehicleRangeConfig">
|
|
|
|
|
+ update METER_BASE_VEHICLE_RANGE_CONFIG
|
|
|
|
|
+ set RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
|
|
|
|
|
+ MATTER_NO = #{matterNo,jdbcType=VARCHAR},
|
|
|
|
|
+ MATTER_NAME = #{matterName,jdbcType=VARCHAR},
|
|
|
|
|
+ FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
|
|
|
|
|
+ RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
|
|
|
|
|
+ CARRIGE_NO = #{carrigeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ LOAD_WEIGHT = #{loadWeight,jdbcType=DECIMAL},
|
|
|
|
|
+ GROSS_WEIGHT_UPPER = #{grossWeightUpper,jdbcType=DECIMAL},
|
|
|
|
|
+ GROSS_WEIGHT_LOWER = #{grossWeightLower,jdbcType=DECIMAL},
|
|
|
|
|
+ NET_WEIGHT_UPPER = #{netWeightUpper,jdbcType=DECIMAL},
|
|
|
|
|
+ NET_WEIGHT_LOWER = #{netWeightLower,jdbcType=DECIMAL},
|
|
|
|
|
+ RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ RAILWAY_TYPE_NAME = #{railwayTypeName,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},
|
|
|
|
|
+ VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR}
|
|
|
|
|
+ where VEHICLE_RANGE_ID = #{vehicleRangeId,jdbcType=VARCHAR}
|
|
|
|
|
+ </update>
|
|
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasevehiclerangeconfig.model.MeterBaseVehicleRangeConfig">
|
|
|
|
|
+ update METER_BASE_VEHICLE_RANGE_CONFIG
|
|
|
|
|
+ <set>
|
|
|
|
|
+ <if test="railwayNo != null">
|
|
|
|
|
+ RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null">
|
|
|
|
|
+ MATTER_NO = #{matterNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null">
|
|
|
|
|
+ MATTER_NAME = #{matterName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null">
|
|
|
|
|
+ FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null">
|
|
|
|
|
+ FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintNo != null">
|
|
|
|
|
+ RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintName != null">
|
|
|
|
|
+ RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null">
|
|
|
|
|
+ BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null">
|
|
|
|
|
+ BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carrigeNo != null">
|
|
|
|
|
+ CARRIGE_NO = #{carrigeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="loadWeight != null">
|
|
|
|
|
+ LOAD_WEIGHT = #{loadWeight,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightUpper != null">
|
|
|
|
|
+ GROSS_WEIGHT_UPPER = #{grossWeightUpper,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeightLower != null">
|
|
|
|
|
+ GROSS_WEIGHT_LOWER = #{grossWeightLower,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightUpper != null">
|
|
|
|
|
+ NET_WEIGHT_UPPER = #{netWeightUpper,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeightLower != null">
|
|
|
|
|
+ NET_WEIGHT_LOWER = #{netWeightLower,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeNo != null">
|
|
|
|
|
+ RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeName != null">
|
|
|
|
|
+ RAILWAY_TYPE_NAME = #{railwayTypeName,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>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null">
|
|
|
|
|
+ UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null">
|
|
|
|
|
+ VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </set>
|
|
|
|
|
+ where VEHICLE_RANGE_ID = #{vehicleRangeId,jdbcType=VARCHAR}
|
|
|
|
|
+ </update>
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
+ <include refid="select"/>
|
|
|
|
|
+ where VEHICLE_RANGE_ID = #{vehicleRangeId,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_BASE_VEHICLE_RANGE_CONFIG
|
|
|
|
|
+ (VEHICLE_RANGE_ID,
|
|
|
|
|
+ RAILWAY_NO, MATTER_NO, MATTER_NAME,
|
|
|
|
|
+ FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME,
|
|
|
|
|
+ RECEIVING_UINT_NO, RECEIVING_UINT_NAME,
|
|
|
|
|
+ BASE_SPOT_NO, BASE_SPOT_NAME, CARRIGE_NO,
|
|
|
|
|
+ LOAD_WEIGHT, GROSS_WEIGHT_UPPER,
|
|
|
|
|
+ GROSS_WEIGHT_LOWER, NET_WEIGHT_UPPER,
|
|
|
|
|
+ NET_WEIGHT_LOWER, RAILWAY_TYPE_NO,
|
|
|
|
|
+ RAILWAY_TYPE_NAME, CREATE_MAN_NO,
|
|
|
|
|
+ CREATE_MAN_NAME, CREATE_TIME,
|
|
|
|
|
+ UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
|
|
+ VALUE_FLAG)
|
|
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
|
+ select
|
|
|
|
|
+ #{item.vehicleRangeId,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.railwayNo,jdbcType=VARCHAR}, #{item.matterNo,jdbcType=VARCHAR}, #{item.matterName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.forwardingUnitNo,jdbcType=VARCHAR}, #{item.forwardingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.receivingUintNo,jdbcType=VARCHAR}, #{item.receivingUintName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.baseSpotNo,jdbcType=VARCHAR}, #{item.baseSpotName,jdbcType=VARCHAR}, #{item.carrigeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.loadWeight,jdbcType=DECIMAL}, #{item.grossWeightUpper,jdbcType=DECIMAL},
|
|
|
|
|
+ #{item.grossWeightLower,jdbcType=DECIMAL}, #{item.netWeightUpper,jdbcType=DECIMAL},
|
|
|
|
|
+ #{item.netWeightLower,jdbcType=DECIMAL}, #{item.railwayTypeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.railwayTypeName,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.valueFlag,jdbcType=VARCHAR} from dual
|
|
|
|
|
+ </foreach> )
|
|
|
|
|
+ </insert>
|
|
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
|
|
+ update METER_BASE_VEHICLE_RANGE_CONFIG
|
|
|
|
|
+ set
|
|
|
|
|
+ VEHICLE_RANGE_ID=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.vehicleRangeId,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,RAILWAY_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.railwayNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,MATTER_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.matterNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,MATTER_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.matterName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,FORWARDING_UNIT_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,FORWARDING_UNIT_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,RECEIVING_UINT_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,RECEIVING_UINT_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.baseSpotNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.baseSpotName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CARRIGE_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.carrigeNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,LOAD_WEIGHT=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.loadWeight,jdbcType=DECIMAL}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,GROSS_WEIGHT_UPPER=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.grossWeightUpper,jdbcType=DECIMAL}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,GROSS_WEIGHT_LOWER=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.grossWeightLower,jdbcType=DECIMAL}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,NET_WEIGHT_UPPER=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.netWeightUpper,jdbcType=DECIMAL}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,NET_WEIGHT_LOWER=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.netWeightLower,jdbcType=DECIMAL}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,RAILWAY_TYPE_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.railwayTypeNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,RAILWAY_TYPE_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.railwayTypeName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CREATE_MAN_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CREATE_MAN_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CREATE_TIME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_MAN_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_MAN_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_TIME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,VALUE_FLAG=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case VEHICLE_RANGE_ID" close="end">
|
|
|
|
|
+ when #{item.vehicleRangeId,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ where VEHICLE_RANGE_ID in
|
|
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
|
+ #{item.vehicleRangeId,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </update>
|
|
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
|
|
+ delete from METER_BASE_VEHICLE_RANGE_CONFIG
|
|
|
|
|
+ where VEHICLE_RANGE_ID in
|
|
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
+ #{id}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </delete>
|
|
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
|
+ <select id="likeByDesc" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="railwayNo != null and railwayNo != ''">
|
|
|
|
|
+ and RAILWAY_NO LIKE '%${railwayNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null and matterNo != ''">
|
|
|
|
|
+ and MATTER_NO LIKE '%${matterNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null and matterName != ''">
|
|
|
|
|
+ and MATTER_NAME LIKE '%${matterName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintNo != null and receivingUintNo != ''">
|
|
|
|
|
+ and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintName != null and receivingUintName != ''">
|
|
|
|
|
+ and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ and BASE_SPOT_NO LIKE '%${baseSpotNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME LIKE '%${baseSpotName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carrigeNo != null and carrigeNo != ''">
|
|
|
|
|
+ and CARRIGE_NO LIKE '%${carrigeNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="loadWeight != null">
|
|
|
|
|
+ and LOAD_WEIGHT = #{loadWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeNo != null and railwayTypeNo != ''">
|
|
|
|
|
+ and RAILWAY_TYPE_NO LIKE '%${railwayTypeNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeName != null and railwayTypeName != ''">
|
|
|
|
|
+ and RAILWAY_TYPE_NAME LIKE '%${railwayTypeName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ order by BASE_SPOT_NAME,create_time desc
|
|
|
|
|
+ </select>
|
|
|
|
|
+</mapper>
|