HUJIANGUO 3 anos atrás
pai
commit
0a9940f391

+ 683 - 0
src/main/resources/com/steerinfo/dil/mapper/RmsCapacityMapper.xml

@@ -0,0 +1,683 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.steerinfo.dil.mapper.RmsCapacityMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsCapacity">
+    <id column="CAPACITY_ID" jdbcType="DECIMAL" property="capacityId" />
+    <result column="CAPACITY_NUMBER" jdbcType="VARCHAR" property="capacityNumber" />
+    <result column="CAPACITY_MAX_LOAD" jdbcType="DECIMAL" property="capacityMaxLoad" />
+    <result column="CAPACITY_TYPE_ID" jdbcType="DECIMAL" property="capacityTypeId" />
+    <result column="CAPACITY_STATUS" jdbcType="DECIMAL" property="capacityStatus" />
+    <result column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId" />
+    <result column="CAPACITY_ENERGY_ID" jdbcType="VARCHAR" property="capacityEnergyId" />
+    <result column="CAPACITY_LEN_VAL" jdbcType="DECIMAL" property="capacityLenVal" />
+    <result column="CAPACITY_WID_VAL" jdbcType="DECIMAL" property="capacityWidVal" />
+    <result column="CAPACITY_HIG_VAL" jdbcType="DECIMAL" property="capacityHigVal" />
+    <result column="CAPACITY_OIL_ID" jdbcType="DECIMAL" property="capacityOilId" />
+    <result column="CAPACITY_FUEL_CONSUMPTION" jdbcType="VARCHAR" property="capacityFuelConsumption" />
+    <result column="CAPACITY_OWNERIS" jdbcType="DECIMAL" property="capacityOwneris" />
+    <result column="CAPACITY_BLACKLIST" jdbcType="DECIMAL" property="capacityBlacklist" />
+    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
+    <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
+    <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
+    <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
+    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
+    <result column="CAPACITY_CORLOR" jdbcType="VARCHAR" property="capacityCorlor" />
+    <result column="CAPACITY_VIP" jdbcType="VARCHAR" property="capacityVip" />
+    <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
+  </resultMap>
+  <sql id="columns">
+    CAPACITY_ID, CAPACITY_NUMBER, CAPACITY_MAX_LOAD, CAPACITY_TYPE_ID, CAPACITY_STATUS, 
+    CARRIER_ID, CAPACITY_ENERGY_ID, CAPACITY_LEN_VAL, CAPACITY_WID_VAL, CAPACITY_HIG_VAL, 
+    CAPACITY_OIL_ID, CAPACITY_FUEL_CONSUMPTION, CAPACITY_OWNERIS, CAPACITY_BLACKLIST, 
+    MEMO, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, 
+    CAPACITY_CORLOR, CAPACITY_VIP, DELETED
+  </sql>
+  <sql id="columns_alias">
+    t.CAPACITY_ID, t.CAPACITY_NUMBER, t.CAPACITY_MAX_LOAD, t.CAPACITY_TYPE_ID, t.CAPACITY_STATUS, 
+    t.CARRIER_ID, t.CAPACITY_ENERGY_ID, t.CAPACITY_LEN_VAL, t.CAPACITY_WID_VAL, t.CAPACITY_HIG_VAL, 
+    t.CAPACITY_OIL_ID, t.CAPACITY_FUEL_CONSUMPTION, t.CAPACITY_OWNERIS, t.CAPACITY_BLACKLIST, 
+    t.MEMO, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, 
+    t.CAPACITY_CORLOR, t.CAPACITY_VIP, t.DELETED
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns" /> FROM RMS_CAPACITY
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias" /> FROM RMS_CAPACITY t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="capacityId != null">
+        and CAPACITY_ID = #{capacityId}
+      </if>
+      <if test="capacityNumber != null and capacityNumber != ''">
+        and CAPACITY_NUMBER = #{capacityNumber}
+      </if>
+      <if test="capacityMaxLoad != null">
+        and CAPACITY_MAX_LOAD = #{capacityMaxLoad}
+      </if>
+      <if test="capacityTypeId != null">
+        and CAPACITY_TYPE_ID = #{capacityTypeId}
+      </if>
+      <if test="capacityStatus != null">
+        and CAPACITY_STATUS = #{capacityStatus}
+      </if>
+      <if test="carrierId != null">
+        and CARRIER_ID = #{carrierId}
+      </if>
+      <if test="capacityEnergyId != null and capacityEnergyId != ''">
+        and CAPACITY_ENERGY_ID = #{capacityEnergyId}
+      </if>
+      <if test="capacityLenVal != null">
+        and CAPACITY_LEN_VAL = #{capacityLenVal}
+      </if>
+      <if test="capacityWidVal != null">
+        and CAPACITY_WID_VAL = #{capacityWidVal}
+      </if>
+      <if test="capacityHigVal != null">
+        and CAPACITY_HIG_VAL = #{capacityHigVal}
+      </if>
+      <if test="capacityOilId != null">
+        and CAPACITY_OIL_ID = #{capacityOilId}
+      </if>
+      <if test="capacityFuelConsumption != null and capacityFuelConsumption != ''">
+        and CAPACITY_FUEL_CONSUMPTION = #{capacityFuelConsumption}
+      </if>
+      <if test="capacityOwneris != null">
+        and CAPACITY_OWNERIS = #{capacityOwneris}
+      </if>
+      <if test="capacityBlacklist != null">
+        and CAPACITY_BLACKLIST = #{capacityBlacklist}
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO = #{memo}
+      </if>
+      <if test="insertUsername != null and insertUsername != ''">
+        and INSERT_USERNAME = #{insertUsername}
+      </if>
+      <if test="insertTime != null">
+        and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
+      </if>
+      <if test="updateUsername != null and updateUsername != ''">
+        and UPDATE_USERNAME = #{updateUsername}
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
+        and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
+      </if>
+      <if test="capacityCorlor != null and capacityCorlor != ''">
+        and CAPACITY_CORLOR = #{capacityCorlor}
+      </if>
+      <if test="capacityVip != null and capacityVip != ''">
+        and CAPACITY_VIP = #{capacityVip}
+      </if>
+      <if test="deleted != null">
+        and DELETED = #{deleted}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="capacityId != null">
+        and CAPACITY_ID = #{capacityId}
+      </if>
+      <if test="capacityNumber != null and capacityNumber != ''">
+        and CAPACITY_NUMBER LIKE '%${capacityNumber}%'
+      </if>
+      <if test="capacityMaxLoad != null">
+        and CAPACITY_MAX_LOAD = #{capacityMaxLoad}
+      </if>
+      <if test="capacityTypeId != null">
+        and CAPACITY_TYPE_ID = #{capacityTypeId}
+      </if>
+      <if test="capacityStatus != null">
+        and CAPACITY_STATUS = #{capacityStatus}
+      </if>
+      <if test="carrierId != null">
+        and CARRIER_ID = #{carrierId}
+      </if>
+      <if test="capacityEnergyId != null and capacityEnergyId != ''">
+        and CAPACITY_ENERGY_ID LIKE '%${capacityEnergyId}%'
+      </if>
+      <if test="capacityLenVal != null">
+        and CAPACITY_LEN_VAL = #{capacityLenVal}
+      </if>
+      <if test="capacityWidVal != null">
+        and CAPACITY_WID_VAL = #{capacityWidVal}
+      </if>
+      <if test="capacityHigVal != null">
+        and CAPACITY_HIG_VAL = #{capacityHigVal}
+      </if>
+      <if test="capacityOilId != null">
+        and CAPACITY_OIL_ID = #{capacityOilId}
+      </if>
+      <if test="capacityFuelConsumption != null and capacityFuelConsumption != ''">
+        and CAPACITY_FUEL_CONSUMPTION LIKE '%${capacityFuelConsumption}%'
+      </if>
+      <if test="capacityOwneris != null">
+        and CAPACITY_OWNERIS = #{capacityOwneris}
+      </if>
+      <if test="capacityBlacklist != null">
+        and CAPACITY_BLACKLIST = #{capacityBlacklist}
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO LIKE '%${memo}%'
+      </if>
+      <if test="insertUsername != null and insertUsername != ''">
+        and INSERT_USERNAME LIKE '%${insertUsername}%'
+      </if>
+      <if test="insertTime != null">
+        and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
+      </if>
+      <if test="updateUsername != null and updateUsername != ''">
+        and UPDATE_USERNAME LIKE '%${updateUsername}%'
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
+        and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
+      </if>
+      <if test="capacityCorlor != null and capacityCorlor != ''">
+        and CAPACITY_CORLOR LIKE '%${capacityCorlor}%'
+      </if>
+      <if test="capacityVip != null and capacityVip != ''">
+        and CAPACITY_VIP LIKE '%${capacityVip}%'
+      </if>
+      <if test="deleted != null">
+        and DELETED = #{deleted}
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
+    delete from RMS_CAPACITY
+    where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from RMS_CAPACITY
+    where 1!=1 
+      <if test="capacityNumber != null and capacityNumber != ''">
+        or CAPACITY_NUMBER = #{capacityNumber}
+      </if>
+      <if test="capacityMaxLoad != null">
+        or CAPACITY_MAX_LOAD = #{capacityMaxLoad}
+      </if>
+      <if test="capacityTypeId != null">
+        or CAPACITY_TYPE_ID = #{capacityTypeId}
+      </if>
+      <if test="capacityStatus != null">
+        or CAPACITY_STATUS = #{capacityStatus}
+      </if>
+      <if test="carrierId != null">
+        or CARRIER_ID = #{carrierId}
+      </if>
+      <if test="capacityEnergyId != null and capacityEnergyId != ''">
+        or CAPACITY_ENERGY_ID = #{capacityEnergyId}
+      </if>
+      <if test="capacityLenVal != null">
+        or CAPACITY_LEN_VAL = #{capacityLenVal}
+      </if>
+      <if test="capacityWidVal != null">
+        or CAPACITY_WID_VAL = #{capacityWidVal}
+      </if>
+      <if test="capacityHigVal != null">
+        or CAPACITY_HIG_VAL = #{capacityHigVal}
+      </if>
+      <if test="capacityOilId != null">
+        or CAPACITY_OIL_ID = #{capacityOilId}
+      </if>
+      <if test="capacityFuelConsumption != null and capacityFuelConsumption != ''">
+        or CAPACITY_FUEL_CONSUMPTION = #{capacityFuelConsumption}
+      </if>
+      <if test="capacityOwneris != null">
+        or CAPACITY_OWNERIS = #{capacityOwneris}
+      </if>
+      <if test="capacityBlacklist != null">
+        or CAPACITY_BLACKLIST = #{capacityBlacklist}
+      </if>
+      <if test="memo != null and memo != ''">
+        or MEMO = #{memo}
+      </if>
+      <if test="insertUsername != null and insertUsername != ''">
+        or INSERT_USERNAME = #{insertUsername}
+      </if>
+      <if test="insertTime != null">
+        or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
+      </if>
+      <if test="updateUsername != null and updateUsername != ''">
+        or UPDATE_USERNAME = #{updateUsername}
+      </if>
+      <if test="updateTime != null">
+        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
+      </if>
+      <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
+        or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
+      </if>
+      <if test="capacityCorlor != null and capacityCorlor != ''">
+        or CAPACITY_CORLOR = #{capacityCorlor}
+      </if>
+      <if test="capacityVip != null and capacityVip != ''">
+        or CAPACITY_VIP = #{capacityVip}
+      </if>
+      <if test="deleted != null">
+        or DELETED = #{deleted}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.dil.model.RmsCapacity">
+    insert into RMS_CAPACITY (CAPACITY_ID, CAPACITY_NUMBER, CAPACITY_MAX_LOAD, 
+      CAPACITY_TYPE_ID, CAPACITY_STATUS, CARRIER_ID, 
+      CAPACITY_ENERGY_ID, CAPACITY_LEN_VAL, CAPACITY_WID_VAL, 
+      CAPACITY_HIG_VAL, CAPACITY_OIL_ID, CAPACITY_FUEL_CONSUMPTION, 
+      CAPACITY_OWNERIS, CAPACITY_BLACKLIST, MEMO, 
+      INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, 
+      UPDATE_TIME, INSERT_UPDATE_REMARK, CAPACITY_CORLOR, 
+      CAPACITY_VIP, DELETED)
+    values (#{capacityId,jdbcType=DECIMAL}, #{capacityNumber,jdbcType=VARCHAR}, #{capacityMaxLoad,jdbcType=DECIMAL}, 
+      #{capacityTypeId,jdbcType=DECIMAL}, #{capacityStatus,jdbcType=DECIMAL}, #{carrierId,jdbcType=DECIMAL}, 
+      #{capacityEnergyId,jdbcType=VARCHAR}, #{capacityLenVal,jdbcType=DECIMAL}, #{capacityWidVal,jdbcType=DECIMAL}, 
+      #{capacityHigVal,jdbcType=DECIMAL}, #{capacityOilId,jdbcType=DECIMAL}, #{capacityFuelConsumption,jdbcType=VARCHAR}, 
+      #{capacityOwneris,jdbcType=DECIMAL}, #{capacityBlacklist,jdbcType=DECIMAL}, #{memo,jdbcType=VARCHAR}, 
+      #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{capacityCorlor,jdbcType=VARCHAR}, 
+      #{capacityVip,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsCapacity">
+    insert into RMS_CAPACITY
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="capacityId != null">
+        CAPACITY_ID,
+      </if>
+      <if test="capacityNumber != null">
+        CAPACITY_NUMBER,
+      </if>
+      <if test="capacityMaxLoad != null">
+        CAPACITY_MAX_LOAD,
+      </if>
+      <if test="capacityTypeId != null">
+        CAPACITY_TYPE_ID,
+      </if>
+      <if test="capacityStatus != null">
+        CAPACITY_STATUS,
+      </if>
+      <if test="carrierId != null">
+        CARRIER_ID,
+      </if>
+      <if test="capacityEnergyId != null">
+        CAPACITY_ENERGY_ID,
+      </if>
+      <if test="capacityLenVal != null">
+        CAPACITY_LEN_VAL,
+      </if>
+      <if test="capacityWidVal != null">
+        CAPACITY_WID_VAL,
+      </if>
+      <if test="capacityHigVal != null">
+        CAPACITY_HIG_VAL,
+      </if>
+      <if test="capacityOilId != null">
+        CAPACITY_OIL_ID,
+      </if>
+      <if test="capacityFuelConsumption != null">
+        CAPACITY_FUEL_CONSUMPTION,
+      </if>
+      <if test="capacityOwneris != null">
+        CAPACITY_OWNERIS,
+      </if>
+      <if test="capacityBlacklist != null">
+        CAPACITY_BLACKLIST,
+      </if>
+      <if test="memo != null">
+        MEMO,
+      </if>
+      <if test="insertUsername != null">
+        INSERT_USERNAME,
+      </if>
+      <if test="insertTime != null">
+        INSERT_TIME,
+      </if>
+      <if test="updateUsername != null">
+        UPDATE_USERNAME,
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME,
+      </if>
+      <if test="insertUpdateRemark != null">
+        INSERT_UPDATE_REMARK,
+      </if>
+      <if test="capacityCorlor != null">
+        CAPACITY_CORLOR,
+      </if>
+      <if test="capacityVip != null">
+        CAPACITY_VIP,
+      </if>
+      <if test="deleted != null">
+        DELETED,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="capacityId != null">
+        #{capacityId,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityNumber != null">
+        #{capacityNumber,jdbcType=VARCHAR},
+      </if>
+      <if test="capacityMaxLoad != null">
+        #{capacityMaxLoad,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityTypeId != null">
+        #{capacityTypeId,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityStatus != null">
+        #{capacityStatus,jdbcType=DECIMAL},
+      </if>
+      <if test="carrierId != null">
+        #{carrierId,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityEnergyId != null">
+        #{capacityEnergyId,jdbcType=VARCHAR},
+      </if>
+      <if test="capacityLenVal != null">
+        #{capacityLenVal,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityWidVal != null">
+        #{capacityWidVal,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityHigVal != null">
+        #{capacityHigVal,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityOilId != null">
+        #{capacityOilId,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityFuelConsumption != null">
+        #{capacityFuelConsumption,jdbcType=VARCHAR},
+      </if>
+      <if test="capacityOwneris != null">
+        #{capacityOwneris,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityBlacklist != null">
+        #{capacityBlacklist,jdbcType=DECIMAL},
+      </if>
+      <if test="memo != null">
+        #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="insertUsername != null">
+        #{insertUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="insertTime != null">
+        #{insertTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateUsername != null">
+        #{updateUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="insertUpdateRemark != null">
+        #{insertUpdateRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="capacityCorlor != null">
+        #{capacityCorlor,jdbcType=VARCHAR},
+      </if>
+      <if test="capacityVip != null">
+        #{capacityVip,jdbcType=VARCHAR},
+      </if>
+      <if test="deleted != null">
+        #{deleted,jdbcType=DECIMAL},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsCapacity">
+    update RMS_CAPACITY
+    set CAPACITY_NUMBER = #{capacityNumber,jdbcType=VARCHAR},
+      CAPACITY_MAX_LOAD = #{capacityMaxLoad,jdbcType=DECIMAL},
+      CAPACITY_TYPE_ID = #{capacityTypeId,jdbcType=DECIMAL},
+      CAPACITY_STATUS = #{capacityStatus,jdbcType=DECIMAL},
+      CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
+      CAPACITY_ENERGY_ID = #{capacityEnergyId,jdbcType=VARCHAR},
+      CAPACITY_LEN_VAL = #{capacityLenVal,jdbcType=DECIMAL},
+      CAPACITY_WID_VAL = #{capacityWidVal,jdbcType=DECIMAL},
+      CAPACITY_HIG_VAL = #{capacityHigVal,jdbcType=DECIMAL},
+      CAPACITY_OIL_ID = #{capacityOilId,jdbcType=DECIMAL},
+      CAPACITY_FUEL_CONSUMPTION = #{capacityFuelConsumption,jdbcType=VARCHAR},
+      CAPACITY_OWNERIS = #{capacityOwneris,jdbcType=DECIMAL},
+      CAPACITY_BLACKLIST = #{capacityBlacklist,jdbcType=DECIMAL},
+      MEMO = #{memo,jdbcType=VARCHAR},
+      INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
+      INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
+      UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
+      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
+      CAPACITY_CORLOR = #{capacityCorlor,jdbcType=VARCHAR},
+      CAPACITY_VIP = #{capacityVip,jdbcType=VARCHAR},
+      DELETED = #{deleted,jdbcType=DECIMAL}
+    where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsCapacity">
+    update RMS_CAPACITY
+    <set>
+      <if test="capacityNumber != null">
+        CAPACITY_NUMBER = #{capacityNumber,jdbcType=VARCHAR},
+      </if>
+      <if test="capacityMaxLoad != null">
+        CAPACITY_MAX_LOAD = #{capacityMaxLoad,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityTypeId != null">
+        CAPACITY_TYPE_ID = #{capacityTypeId,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityStatus != null">
+        CAPACITY_STATUS = #{capacityStatus,jdbcType=DECIMAL},
+      </if>
+      <if test="carrierId != null">
+        CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityEnergyId != null">
+        CAPACITY_ENERGY_ID = #{capacityEnergyId,jdbcType=VARCHAR},
+      </if>
+      <if test="capacityLenVal != null">
+        CAPACITY_LEN_VAL = #{capacityLenVal,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityWidVal != null">
+        CAPACITY_WID_VAL = #{capacityWidVal,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityHigVal != null">
+        CAPACITY_HIG_VAL = #{capacityHigVal,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityOilId != null">
+        CAPACITY_OIL_ID = #{capacityOilId,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityFuelConsumption != null">
+        CAPACITY_FUEL_CONSUMPTION = #{capacityFuelConsumption,jdbcType=VARCHAR},
+      </if>
+      <if test="capacityOwneris != null">
+        CAPACITY_OWNERIS = #{capacityOwneris,jdbcType=DECIMAL},
+      </if>
+      <if test="capacityBlacklist != null">
+        CAPACITY_BLACKLIST = #{capacityBlacklist,jdbcType=DECIMAL},
+      </if>
+      <if test="memo != null">
+        MEMO = #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="insertUsername != null">
+        INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="insertTime != null">
+        INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateUsername != null">
+        UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="insertUpdateRemark != null">
+        INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="capacityCorlor != null">
+        CAPACITY_CORLOR = #{capacityCorlor,jdbcType=VARCHAR},
+      </if>
+      <if test="capacityVip != null">
+        CAPACITY_VIP = #{capacityVip,jdbcType=VARCHAR},
+      </if>
+      <if test="deleted != null">
+        DELETED = #{deleted,jdbcType=DECIMAL},
+      </if>
+    </set>
+    where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
+    <include refid="select" />
+    where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
+  </select>
+  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select" />
+    <include refid="where" />
+  </select>
+  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select" />
+    <include refid="whereLike" />
+  </select>
+  <insert id="batchInsert" parameterType="java.util.List">
+    insert into RMS_CAPACITY 
+      (CAPACITY_ID, 
+      CAPACITY_NUMBER, CAPACITY_MAX_LOAD, 
+      CAPACITY_TYPE_ID, CAPACITY_STATUS, 
+      CARRIER_ID, CAPACITY_ENERGY_ID, 
+      CAPACITY_LEN_VAL, CAPACITY_WID_VAL, 
+      CAPACITY_HIG_VAL, CAPACITY_OIL_ID, 
+      CAPACITY_FUEL_CONSUMPTION, CAPACITY_OWNERIS, 
+      CAPACITY_BLACKLIST, MEMO, INSERT_USERNAME, 
+      INSERT_TIME, UPDATE_USERNAME, 
+      UPDATE_TIME, INSERT_UPDATE_REMARK, 
+      CAPACITY_CORLOR, CAPACITY_VIP, 
+      DELETED)
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.capacityId,jdbcType=DECIMAL}, 
+      #{item.capacityNumber,jdbcType=VARCHAR}, #{item.capacityMaxLoad,jdbcType=DECIMAL}, 
+      #{item.capacityTypeId,jdbcType=DECIMAL}, #{item.capacityStatus,jdbcType=DECIMAL}, 
+      #{item.carrierId,jdbcType=DECIMAL}, #{item.capacityEnergyId,jdbcType=VARCHAR}, 
+      #{item.capacityLenVal,jdbcType=DECIMAL}, #{item.capacityWidVal,jdbcType=DECIMAL}, 
+      #{item.capacityHigVal,jdbcType=DECIMAL}, #{item.capacityOilId,jdbcType=DECIMAL}, 
+      #{item.capacityFuelConsumption,jdbcType=VARCHAR}, #{item.capacityOwneris,jdbcType=DECIMAL}, 
+      #{item.capacityBlacklist,jdbcType=DECIMAL}, #{item.memo,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR}, 
+      #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR}, 
+      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}, 
+      #{item.capacityCorlor,jdbcType=VARCHAR}, #{item.capacityVip,jdbcType=VARCHAR}, 
+      #{item.deleted,jdbcType=DECIMAL} from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update RMS_CAPACITY
+     set
+       CAPACITY_ID=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityId,jdbcType=DECIMAL}
+       </foreach>
+       ,CAPACITY_NUMBER=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityNumber,jdbcType=VARCHAR}
+       </foreach>
+       ,CAPACITY_MAX_LOAD=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityMaxLoad,jdbcType=DECIMAL}
+       </foreach>
+       ,CAPACITY_TYPE_ID=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityTypeId,jdbcType=DECIMAL}
+       </foreach>
+       ,CAPACITY_STATUS=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityStatus,jdbcType=DECIMAL}
+       </foreach>
+       ,CARRIER_ID=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
+       </foreach>
+       ,CAPACITY_ENERGY_ID=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityEnergyId,jdbcType=VARCHAR}
+       </foreach>
+       ,CAPACITY_LEN_VAL=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityLenVal,jdbcType=DECIMAL}
+       </foreach>
+       ,CAPACITY_WID_VAL=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityWidVal,jdbcType=DECIMAL}
+       </foreach>
+       ,CAPACITY_HIG_VAL=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityHigVal,jdbcType=DECIMAL}
+       </foreach>
+       ,CAPACITY_OIL_ID=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityOilId,jdbcType=DECIMAL}
+       </foreach>
+       ,CAPACITY_FUEL_CONSUMPTION=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityFuelConsumption,jdbcType=VARCHAR}
+       </foreach>
+       ,CAPACITY_OWNERIS=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityOwneris,jdbcType=DECIMAL}
+       </foreach>
+       ,CAPACITY_BLACKLIST=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityBlacklist,jdbcType=DECIMAL}
+       </foreach>
+       ,MEMO=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.memo,jdbcType=VARCHAR}
+       </foreach>
+       ,INSERT_USERNAME=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,INSERT_TIME=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPDATE_USERNAME=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,INSERT_UPDATE_REMARK=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
+       </foreach>
+       ,CAPACITY_CORLOR=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityCorlor,jdbcType=VARCHAR}
+       </foreach>
+       ,CAPACITY_VIP=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityVip,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETED=
+       <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
+          when #{item.capacityId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
+       </foreach>
+     where CAPACITY_ID in 
+     <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
+    #{item.capacityId,jdbcType=DECIMAL}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from RMS_CAPACITY
+    where CAPACITY_ID in 
+    <foreach close=")" collection="list" item="id" open="(" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  
+  
+</mapper>