|
@@ -25,20 +25,21 @@
|
|
<result column="CAPACITY_CORLOR" jdbcType="VARCHAR" property="capacityCorlor" />
|
|
<result column="CAPACITY_CORLOR" jdbcType="VARCHAR" property="capacityCorlor" />
|
|
<result column="CAPACITY_VIP" jdbcType="VARCHAR" property="capacityVip" />
|
|
<result column="CAPACITY_VIP" jdbcType="VARCHAR" property="capacityVip" />
|
|
<result column="DELETED" jdbcType="DECIMAL" property="deleted" />
|
|
<result column="DELETED" jdbcType="DECIMAL" property="deleted" />
|
|
|
|
+ <result column="CAPACITY_SSO_ID" jdbcType="VARCHAR" property="capacitySsoId" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
CAPACITY_ID, CAPACITY_NUMBER, CAPACITY_MAX_LOAD, CAPACITY_TYPE_ID, CAPACITY_STATUS,
|
|
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,
|
|
CARRIER_ID, CAPACITY_ENERGY_ID, CAPACITY_LEN_VAL, CAPACITY_WID_VAL, CAPACITY_HIG_VAL,
|
|
CAPACITY_OIL_ID, CAPACITY_FUEL_CONSUMPTION, CAPACITY_OWNERIS, CAPACITY_BLACKLIST,
|
|
CAPACITY_OIL_ID, CAPACITY_FUEL_CONSUMPTION, CAPACITY_OWNERIS, CAPACITY_BLACKLIST,
|
|
MEMO, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
MEMO, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
- CAPACITY_CORLOR, CAPACITY_VIP, DELETED
|
|
|
|
|
|
+ CAPACITY_CORLOR, CAPACITY_VIP, DELETED, CAPACITY_SSO_ID
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
t.CAPACITY_ID, t.CAPACITY_NUMBER, t.CAPACITY_MAX_LOAD, t.CAPACITY_TYPE_ID, t.CAPACITY_STATUS,
|
|
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.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.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.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
|
|
|
|
|
|
+ t.CAPACITY_CORLOR, t.CAPACITY_VIP, t.DELETED, t.CAPACITY_SSO_ID
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
SELECT <include refid="columns" /> FROM RMS_CAPACITY
|
|
SELECT <include refid="columns" /> FROM RMS_CAPACITY
|
|
@@ -60,7 +61,7 @@
|
|
<if test="capacityTypeId != null">
|
|
<if test="capacityTypeId != null">
|
|
and CAPACITY_TYPE_ID = #{capacityTypeId}
|
|
and CAPACITY_TYPE_ID = #{capacityTypeId}
|
|
</if>
|
|
</if>
|
|
- <if test="capacityStatus != null and capacityStatus != ''">
|
|
|
|
|
|
+ <if test="capacityStatus != null">
|
|
and CAPACITY_STATUS = #{capacityStatus}
|
|
and CAPACITY_STATUS = #{capacityStatus}
|
|
</if>
|
|
</if>
|
|
<if test="carrierId != null">
|
|
<if test="carrierId != null">
|
|
@@ -117,6 +118,9 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
and DELETED = #{deleted}
|
|
and DELETED = #{deleted}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="capacitySsoId != null and capacitySsoId != ''">
|
|
|
|
+ and CAPACITY_SSO_ID = #{capacitySsoId}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -133,8 +137,8 @@
|
|
<if test="capacityTypeId != null">
|
|
<if test="capacityTypeId != null">
|
|
and CAPACITY_TYPE_ID = #{capacityTypeId}
|
|
and CAPACITY_TYPE_ID = #{capacityTypeId}
|
|
</if>
|
|
</if>
|
|
- <if test="capacityStatus != null and capacityStatus != ''">
|
|
|
|
- and CAPACITY_STATUS LIKE '%${capacityStatus}%'
|
|
|
|
|
|
+ <if test="capacityStatus != null">
|
|
|
|
+ and CAPACITY_STATUS = #{capacityStatus}
|
|
</if>
|
|
</if>
|
|
<if test="carrierId != null">
|
|
<if test="carrierId != null">
|
|
and CARRIER_ID = #{carrierId}
|
|
and CARRIER_ID = #{carrierId}
|
|
@@ -190,9 +194,12 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
and DELETED = #{deleted}
|
|
and DELETED = #{deleted}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="capacitySsoId != null and capacitySsoId != ''">
|
|
|
|
+ and CAPACITY_SSO_ID LIKE '%${capacitySsoId}%'
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
delete from RMS_CAPACITY
|
|
delete from RMS_CAPACITY
|
|
where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
|
|
where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
|
|
</delete>
|
|
</delete>
|
|
@@ -208,7 +215,7 @@
|
|
<if test="capacityTypeId != null">
|
|
<if test="capacityTypeId != null">
|
|
or CAPACITY_TYPE_ID = #{capacityTypeId}
|
|
or CAPACITY_TYPE_ID = #{capacityTypeId}
|
|
</if>
|
|
</if>
|
|
- <if test="capacityStatus != null and capacityStatus != ''">
|
|
|
|
|
|
+ <if test="capacityStatus != null">
|
|
or CAPACITY_STATUS = #{capacityStatus}
|
|
or CAPACITY_STATUS = #{capacityStatus}
|
|
</if>
|
|
</if>
|
|
<if test="carrierId != null">
|
|
<if test="carrierId != null">
|
|
@@ -265,6 +272,9 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
or DELETED = #{deleted}
|
|
or DELETED = #{deleted}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="capacitySsoId != null and capacitySsoId != ''">
|
|
|
|
+ or CAPACITY_SSO_ID = #{capacitySsoId}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.RmsCapacity">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.RmsCapacity">
|
|
insert into RMS_CAPACITY (CAPACITY_ID, CAPACITY_NUMBER, CAPACITY_MAX_LOAD,
|
|
insert into RMS_CAPACITY (CAPACITY_ID, CAPACITY_NUMBER, CAPACITY_MAX_LOAD,
|
|
@@ -274,15 +284,17 @@
|
|
CAPACITY_OWNERIS, CAPACITY_BLACKLIST, MEMO,
|
|
CAPACITY_OWNERIS, CAPACITY_BLACKLIST, MEMO,
|
|
INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK, CAPACITY_CORLOR,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK, CAPACITY_CORLOR,
|
|
- CAPACITY_VIP, DELETED)
|
|
|
|
|
|
+ CAPACITY_VIP, DELETED, CAPACITY_SSO_ID
|
|
|
|
+ )
|
|
values (#{capacityId,jdbcType=DECIMAL}, #{capacityNumber,jdbcType=VARCHAR}, #{capacityMaxLoad,jdbcType=DECIMAL},
|
|
values (#{capacityId,jdbcType=DECIMAL}, #{capacityNumber,jdbcType=VARCHAR}, #{capacityMaxLoad,jdbcType=DECIMAL},
|
|
- #{capacityTypeId,jdbcType=DECIMAL}, #{capacityStatus,jdbcType=DECIMAL}, #{carrierId,jdbcType=DECIMAL},
|
|
|
|
|
|
+ #{capacityTypeId,jdbcType=DECIMAL}, #{capacityStatus,jdbcType=DECIMAL}, #{carrierId,jdbcType=DECIMAL},
|
|
#{capacityEnergyId,jdbcType=VARCHAR}, #{capacityLenVal,jdbcType=DECIMAL}, #{capacityWidVal,jdbcType=DECIMAL},
|
|
#{capacityEnergyId,jdbcType=VARCHAR}, #{capacityLenVal,jdbcType=DECIMAL}, #{capacityWidVal,jdbcType=DECIMAL},
|
|
#{capacityHigVal,jdbcType=DECIMAL}, #{capacityOilId,jdbcType=DECIMAL}, #{capacityFuelConsumption,jdbcType=VARCHAR},
|
|
#{capacityHigVal,jdbcType=DECIMAL}, #{capacityOilId,jdbcType=DECIMAL}, #{capacityFuelConsumption,jdbcType=VARCHAR},
|
|
#{capacityOwneris,jdbcType=VARCHAR}, #{capacityBlacklist,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
|
|
#{capacityOwneris,jdbcType=VARCHAR}, #{capacityBlacklist,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
|
|
#{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
#{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{capacityCorlor,jdbcType=VARCHAR},
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{capacityCorlor,jdbcType=VARCHAR},
|
|
- #{capacityVip,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL})
|
|
|
|
|
|
+ #{capacityVip,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{capacitySsoId,jdbcType=VARCHAR}
|
|
|
|
+ )
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsCapacity">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsCapacity">
|
|
insert into RMS_CAPACITY
|
|
insert into RMS_CAPACITY
|
|
@@ -356,6 +368,9 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
DELETED,
|
|
DELETED,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="capacitySsoId != null">
|
|
|
|
+ CAPACITY_SSO_ID,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="capacityId != null">
|
|
<if test="capacityId != null">
|
|
@@ -427,6 +442,9 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
#{deleted,jdbcType=DECIMAL},
|
|
#{deleted,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="capacitySsoId != null">
|
|
|
|
+ #{capacitySsoId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsCapacity">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsCapacity">
|
|
@@ -452,7 +470,8 @@
|
|
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
CAPACITY_CORLOR = #{capacityCorlor,jdbcType=VARCHAR},
|
|
CAPACITY_CORLOR = #{capacityCorlor,jdbcType=VARCHAR},
|
|
CAPACITY_VIP = #{capacityVip,jdbcType=VARCHAR},
|
|
CAPACITY_VIP = #{capacityVip,jdbcType=VARCHAR},
|
|
- DELETED = #{deleted,jdbcType=DECIMAL}
|
|
|
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
|
+ CAPACITY_SSO_ID = #{capacitySsoId,jdbcType=VARCHAR}
|
|
where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
|
|
where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsCapacity">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsCapacity">
|
|
@@ -524,10 +543,13 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="capacitySsoId != null">
|
|
|
|
+ CAPACITY_SSO_ID = #{capacitySsoId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
|
|
where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
<include refid="select" />
|
|
<include refid="select" />
|
|
where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
|
|
where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
|
|
</select>
|
|
</select>
|
|
@@ -552,12 +574,12 @@
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
CAPACITY_CORLOR, CAPACITY_VIP,
|
|
CAPACITY_CORLOR, CAPACITY_VIP,
|
|
- DELETED)
|
|
|
|
|
|
+ DELETED, CAPACITY_SSO_ID)
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.capacityId,jdbcType=DECIMAL},
|
|
#{item.capacityId,jdbcType=DECIMAL},
|
|
#{item.capacityNumber,jdbcType=VARCHAR}, #{item.capacityMaxLoad,jdbcType=DECIMAL},
|
|
#{item.capacityNumber,jdbcType=VARCHAR}, #{item.capacityMaxLoad,jdbcType=DECIMAL},
|
|
- #{item.capacityTypeId,jdbcType=DECIMAL}, #{item.capacityStatus,jdbcType=DECIMAL},
|
|
|
|
|
|
+ #{item.capacityTypeId,jdbcType=DECIMAL}, #{item.capacityStatus,jdbcType=DECIMAL},
|
|
#{item.carrierId,jdbcType=DECIMAL}, #{item.capacityEnergyId,jdbcType=VARCHAR},
|
|
#{item.carrierId,jdbcType=DECIMAL}, #{item.capacityEnergyId,jdbcType=VARCHAR},
|
|
#{item.capacityLenVal,jdbcType=DECIMAL}, #{item.capacityWidVal,jdbcType=DECIMAL},
|
|
#{item.capacityLenVal,jdbcType=DECIMAL}, #{item.capacityWidVal,jdbcType=DECIMAL},
|
|
#{item.capacityHigVal,jdbcType=DECIMAL}, #{item.capacityOilId,jdbcType=DECIMAL},
|
|
#{item.capacityHigVal,jdbcType=DECIMAL}, #{item.capacityOilId,jdbcType=DECIMAL},
|
|
@@ -566,7 +588,7 @@
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.capacityCorlor,jdbcType=VARCHAR}, #{item.capacityVip,jdbcType=VARCHAR},
|
|
#{item.capacityCorlor,jdbcType=VARCHAR}, #{item.capacityVip,jdbcType=VARCHAR},
|
|
- #{item.deleted,jdbcType=DECIMAL} from dual
|
|
|
|
|
|
+ #{item.deleted,jdbcType=DECIMAL}, #{item.capacitySsoId,jdbcType=VARCHAR} from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -664,6 +686,10 @@
|
|
<foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
|
|
<foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
|
|
when #{item.capacityId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
when #{item.capacityId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,CAPACITY_SSO_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
|
|
|
|
+ when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacitySsoId,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
where CAPACITY_ID in
|
|
where CAPACITY_ID in
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
#{item.capacityId,jdbcType=DECIMAL}
|
|
#{item.capacityId,jdbcType=DECIMAL}
|
|
@@ -754,7 +780,7 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
- <include refid="orderBy"></include>
|
|
|
|
|
|
+ <include refid="orderBy"></include>
|
|
</select>
|
|
</select>
|
|
<sql id="orderBy">
|
|
<sql id="orderBy">
|
|
<if test="orderField!=null and orderField !=''">
|
|
<if test="orderField!=null and orderField !=''">
|
|
@@ -764,42 +790,42 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</sql>
|
|
</sql>
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
<select id="getCapacityById" resultType="java.util.LinkedHashMap" >
|
|
<select id="getCapacityById" resultType="java.util.LinkedHashMap" >
|
|
- SELECT
|
|
|
|
- RC.CAPACITY_ID AS "capacityId",
|
|
|
|
- RC.CAPACITY_TYPE_ID AS "capacityTypeId",
|
|
|
|
- RC.CAPACITY_NUMBER AS "capacityNumber",
|
|
|
|
- RC.CAPACITY_CORLOR AS "capacityCorlor",
|
|
|
|
- RC.CAPACITY_OWNERIS AS "capacityOwneris",
|
|
|
|
- RC.CAPACITY_VIP AS "capacityVip",
|
|
|
|
- RC.CAPACITY_BLACKLIST AS "capacityBlacklist",
|
|
|
|
- RC.CARRIER_ID AS "carrierId"
|
|
|
|
- FROM RMS_CAPACITY RC
|
|
|
|
- WHERE RC.CAPACITY_ID=#{id}
|
|
|
|
|
|
+ SELECT
|
|
|
|
+ RC.CAPACITY_ID AS "capacityId",
|
|
|
|
+ RC.CAPACITY_TYPE_ID AS "capacityTypeId",
|
|
|
|
+ RC.CAPACITY_NUMBER AS "capacityNumber",
|
|
|
|
+ RC.CAPACITY_CORLOR AS "capacityCorlor",
|
|
|
|
+ RC.CAPACITY_OWNERIS AS "capacityOwneris",
|
|
|
|
+ RC.CAPACITY_VIP AS "capacityVip",
|
|
|
|
+ RC.CAPACITY_BLACKLIST AS "capacityBlacklist",
|
|
|
|
+ RC.CARRIER_ID AS "carrierId"
|
|
|
|
+ FROM RMS_CAPACITY RC
|
|
|
|
+ WHERE RC.CAPACITY_ID=#{id}
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getCapacityTypeId" resultType="java.util.LinkedHashMap">
|
|
<select id="getCapacityTypeId" resultType="java.util.LinkedHashMap">
|
|
SELECT
|
|
SELECT
|
|
- RCT.CAPACITY_TYPE_ID AS "id",
|
|
|
|
- RCT.CAPACITY_TYPE_ID AS "value",
|
|
|
|
- RCT.CAPACITY_TYPE_NAME AS "label"
|
|
|
|
- FROM RMS_CAPACITY_TYPE RCT
|
|
|
|
|
|
+ RCT.CAPACITY_TYPE_ID AS "id",
|
|
|
|
+ RCT.CAPACITY_TYPE_ID AS "value",
|
|
|
|
+ RCT.CAPACITY_TYPE_NAME AS "label"
|
|
|
|
+ FROM RMS_CAPACITY_TYPE RCT
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getCarrierId" resultType="java.util.LinkedHashMap">
|
|
<select id="getCarrierId" resultType="java.util.LinkedHashMap">
|
|
SELECT
|
|
SELECT
|
|
- RC.CARRIER_ID AS "id",
|
|
|
|
- RC.CARRIER_ID AS "value",
|
|
|
|
- RC.CARRIER_NAME AS "label"
|
|
|
|
|
|
+ RC.CARRIER_ID AS "id",
|
|
|
|
+ RC.CARRIER_ID AS "value",
|
|
|
|
+ RC.CARRIER_NAME AS "label"
|
|
FROM RMS_CARRIER RC
|
|
FROM RMS_CARRIER RC
|
|
WHERE RC.DELETED!=1
|
|
WHERE RC.DELETED!=1
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectBycapacityNumber" parameterType="java.lang.String" resultType="int">
|
|
<select id="selectBycapacityNumber" parameterType="java.lang.String" resultType="int">
|
|
select count(*) from RMS_CAPACITY RC where RC.CAPACITY_NUMBER=#{number}
|
|
select count(*) from RMS_CAPACITY RC where RC.CAPACITY_NUMBER=#{number}
|
|
- and RC.DELETED=0
|
|
|
|
|
|
+ and RC.DELETED=0
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|