|
@@ -12,28 +12,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 查询所有的汽车衡 -->
|
|
<!-- 查询所有的汽车衡 -->
|
|
|
- <select id="getAllCalculateMes" resultType="java.util.Map">
|
|
|
|
|
- select RTC.TRUCK_CALCULATE_ID "id",
|
|
|
|
|
- RTC.TRUCK_CALCULATE_ID "value",
|
|
|
|
|
- RTC.TRUCK_CALCULATE_NUMBER "label",
|
|
|
|
|
- RTC.TRUCK_CALCULATE_NUMBER "text"
|
|
|
|
|
- from RMS_TRUCK_CALCULATE RTC
|
|
|
|
|
- </select>
|
|
|
|
|
-
|
|
|
|
|
- <select id="getAllGatepost" resultType="java.util.Map">
|
|
|
|
|
- select GATEPOST_ID "id",
|
|
|
|
|
- GATEPOST_ID "value",
|
|
|
|
|
- GATEPOST_NAME "label",
|
|
|
|
|
- GATEPOST_NAME "text"
|
|
|
|
|
- from RMS_GATEPOST
|
|
|
|
|
- </select>
|
|
|
|
|
- <select id="getAllWareHouse" resultType="java.util.Map">
|
|
|
|
|
- select WAREHOUSE_ID "id",
|
|
|
|
|
- WAREHOUSE_ID "value",
|
|
|
|
|
- WAREHOUSE_NAME "label",
|
|
|
|
|
- WAREHOUSE_NAME "text"
|
|
|
|
|
- from RMS_WAREHOUSE
|
|
|
|
|
- </select>
|
|
|
|
|
<select id="getColumnNoRoutList" resultType="java.lang.String" parameterType="map">
|
|
<select id="getColumnNoRoutList" resultType="java.lang.String" parameterType="map">
|
|
|
select DTCR.COLUMN_NAME from DIL_TABLE_COLUMN_ROLE DTCR
|
|
select DTCR.COLUMN_NAME from DIL_TABLE_COLUMN_ROLE DTCR
|
|
|
left join DIL_ROLE_ORGCODE_TABLE DROT
|
|
left join DIL_ROLE_ORGCODE_TABLE DROT
|
|
@@ -131,17 +109,18 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getMaterialTypeByLike" resultType="java.util.Map">
|
|
<select id="getMaterialTypeByLike" resultType="java.util.Map">
|
|
|
select * from(
|
|
select * from(
|
|
|
select
|
|
select
|
|
|
MATERIAL_TYPE_ID "materialTypeId",
|
|
MATERIAL_TYPE_ID "materialTypeId",
|
|
|
- MATERIAL_TYPE_NAME "materialTypeName",
|
|
|
|
|
|
|
+ MATERIAL_TYPE_NAME "materialTypeName",
|
|
|
MATERIAL_TYPE_ID "id",
|
|
MATERIAL_TYPE_ID "id",
|
|
|
MATERIAL_TYPE_ID "value",
|
|
MATERIAL_TYPE_ID "value",
|
|
|
MATERIAL_TYPE_NAME "label",
|
|
MATERIAL_TYPE_NAME "label",
|
|
|
- MATERIAL_TYPE_NAME "text"
|
|
|
|
|
|
|
+ MATERIAL_TYPE_NAME "text",
|
|
|
|
|
+ REMARK "remark"
|
|
|
from RMS_MATERIAL_TYPE
|
|
from RMS_MATERIAL_TYPE
|
|
|
where DELETED = 0
|
|
where DELETED = 0
|
|
|
)
|
|
)
|
|
@@ -149,6 +128,9 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="remark!=null and remark!=''">
|
|
|
|
|
+ AND REGEXP_LIKE("remark", #{remark})
|
|
|
|
|
+ </if>
|
|
|
<if test="id!=null and id.size>0 and !(index!=null and index!='')">
|
|
<if test="id!=null and id.size>0 and !(index!=null and index!='')">
|
|
|
AND "id" in
|
|
AND "id" in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
@@ -156,7 +138,7 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getEmissionStandardByLike" resultType="java.util.Map">
|
|
<select id="getEmissionStandardByLike" resultType="java.util.Map">
|
|
|
select * from (
|
|
select * from (
|
|
@@ -181,9 +163,10 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getOperationPointByLike" resultType="java.util.Map">
|
|
<select id="getOperationPointByLike" resultType="java.util.Map">
|
|
|
|
|
+ SELECT * FROM (
|
|
|
select * from (
|
|
select * from (
|
|
|
select
|
|
select
|
|
|
OPERATION_POINT_ID "operationPointId",
|
|
OPERATION_POINT_ID "operationPointId",
|
|
@@ -203,14 +186,24 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and id.size>0 and !(index!=null and index!='')">
|
|
|
|
|
- AND "id" in
|
|
|
|
|
- <foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
|
|
- #{item}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </if>
|
|
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
|
|
+ )
|
|
|
|
|
+ <if test="id!=null and id.size>0">
|
|
|
|
|
+ UNION select
|
|
|
|
|
+ OPERATION_POINT_ID "operationPointId",
|
|
|
|
|
+ OPERATION_POINT_NAME "operationPointName",
|
|
|
|
|
+ OPERATION_POINT_TYPE "operationPointType",
|
|
|
|
|
+ OPERATION_POINT_ID "id",
|
|
|
|
|
+ OPERATION_POINT_ID "value",
|
|
|
|
|
+ OPERATION_POINT_NAME "label",
|
|
|
|
|
+ OPERATION_POINT_NAME "text"
|
|
|
|
|
+ from RMS_OPERATION_POINT
|
|
|
|
|
+ where OPERATION_POINT_ID in
|
|
|
|
|
+ <foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getPersonnelByLike" resultType="java.util.Map">
|
|
<select id="getPersonnelByLike" resultType="java.util.Map">
|
|
|
select * from (
|
|
select * from (
|
|
@@ -240,7 +233,7 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getCapacityByLike" resultType="java.util.Map">
|
|
<select id="getCapacityByLike" resultType="java.util.Map">
|
|
|
select * from (
|
|
select * from (
|
|
@@ -276,7 +269,7 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getrmsrmsjobinfosBylike" resultType="java.util.Map">
|
|
<select id="getrmsrmsjobinfosBylike" resultType="java.util.Map">
|
|
|
select * from(
|
|
select * from(
|
|
@@ -301,7 +294,7 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getTransRangeByLike" resultType="java.util.Map">
|
|
<select id="getTransRangeByLike" resultType="java.util.Map">
|
|
|
select * from(
|
|
select * from(
|
|
@@ -311,7 +304,9 @@
|
|
|
RC.TRANS_RANGE_ID "id",
|
|
RC.TRANS_RANGE_ID "id",
|
|
|
RC.TRANS_RANGE_ID "value",
|
|
RC.TRANS_RANGE_ID "value",
|
|
|
RC.TRANS_RANGE_NAME "label",
|
|
RC.TRANS_RANGE_NAME "label",
|
|
|
- RC.TRANS_RANGE_NAME "text"
|
|
|
|
|
|
|
+ RC.TRANS_RANGE_NAME "text",
|
|
|
|
|
+ rc.START_POINT_ID "shippingPointId",
|
|
|
|
|
+ rc.END_POINT_ID "receivingPointId"
|
|
|
from RMS_TRANS_RANGE RC
|
|
from RMS_TRANS_RANGE RC
|
|
|
where DELETED = 0
|
|
where DELETED = 0
|
|
|
)
|
|
)
|
|
@@ -326,7 +321,7 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getCategoryCodeByLike" resultType="java.util.Map">
|
|
<select id="getCategoryCodeByLike" resultType="java.util.Map">
|
|
|
select * from(
|
|
select * from(
|
|
@@ -344,39 +339,62 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and !(index!=null and index!='')">
|
|
|
|
|
|
|
+ <if test="id!=null and id.size>0 and !(index!=null and index!='')">
|
|
|
AND "id" in
|
|
AND "id" in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getCapacityTypeByLike" resultType="java.util.Map">
|
|
<select id="getCapacityTypeByLike" resultType="java.util.Map">
|
|
|
- select * from(
|
|
|
|
|
|
|
+ select DISTINCT * from(
|
|
|
select
|
|
select
|
|
|
- RC.CAPACITY_TYPE_ID "capacityTypeId",
|
|
|
|
|
- RC.CAPACITY_TYPE_NAME "capacityTypeName",
|
|
|
|
|
- RC.CAPACITY_TYPE_ID "id",
|
|
|
|
|
- RC.CAPACITY_TYPE_ID "value",
|
|
|
|
|
- RC.CAPACITY_TYPE_NAME "label",
|
|
|
|
|
- RC.CAPACITY_TYPE_NAME "text"
|
|
|
|
|
- from RMS_CAPACITY_TYPE RC
|
|
|
|
|
- where DELETED = 0
|
|
|
|
|
|
|
+ RCT.CAPACITY_TYPE_ID "capacityTypeId",
|
|
|
|
|
+ RCT.CAPACITY_TYPE_NAME "capacityTypeName",
|
|
|
|
|
+ RCT.CAPACITY_TYPE_ID "id",
|
|
|
|
|
+ RCT.CAPACITY_TYPE_ID "value",
|
|
|
|
|
+ RCT.CAPACITY_TYPE_NAME "label",
|
|
|
|
|
+ RCT.CAPACITY_TYPE_NAME "text"
|
|
|
|
|
+ RCT .CAPACITY_MAX_LOAD "capacityMaxLoad",
|
|
|
|
|
+ '[' || listagg (RCFT .FUEL_TYPE_ID, ',') WITHIN GROUP (ORDER BY RCT .CAPACITY_TYPE_ID) || ']' "fuelTypeIds",
|
|
|
|
|
+ listagg (RFT .FUEL_TYPE_NAME, '/') WITHIN GROUP (ORDER BY RCT .CAPACITY_TYPE_ID) "fuelTypes"
|
|
|
|
|
+ from RMS_CAPACITY_TYPE RCT
|
|
|
|
|
+ LEFT JOIN RMS_CAPACITY_FUEL_TYPE RCFT ON RCFT.CAPACITY_TYPE_ID = RCT .CAPACITY_TYPE_ID
|
|
|
|
|
+ LEFT JOIN RMS_FUEL_TYPE RFT ON RFT .FUEL_TYPE_ID = RCFT.FUEL_TYPE_ID
|
|
|
|
|
+ where RCT.DELETED=0
|
|
|
|
|
+ GROUP BY RCT .CAPACITY_TYPE_ID,RCT.CAPACITY_TYPE_NAME,RCT .CAPACITY_MAX_LOAD
|
|
|
|
|
+
|
|
|
|
|
+ <if test="id!=null and id.size>0 and !(index!=null and index!='')">
|
|
|
|
|
+ UNION
|
|
|
|
|
+ select
|
|
|
|
|
+ RCT.CAPACITY_TYPE_ID "capacityTypeId",
|
|
|
|
|
+ RCT.CAPACITY_TYPE_NAME "capacityTypeName",
|
|
|
|
|
+ RCT.CAPACITY_TYPE_ID "id",
|
|
|
|
|
+ RCT.CAPACITY_TYPE_ID "value",
|
|
|
|
|
+ RCT.CAPACITY_TYPE_NAME "label",
|
|
|
|
|
+ RCT.CAPACITY_TYPE_NAME "text"
|
|
|
|
|
+ RCT .CAPACITY_MAX_LOAD "capacityMaxLoad",
|
|
|
|
|
+ '[' || listagg (RCFT .FUEL_TYPE_ID, ',') WITHIN GROUP (ORDER BY RCT .CAPACITY_TYPE_ID) || ']' "fuelTypeIds",
|
|
|
|
|
+ listagg (RFT .FUEL_TYPE_NAME, '/') WITHIN GROUP (ORDER BY RCT .CAPACITY_TYPE_ID) "fuelTypes"
|
|
|
|
|
+ from RMS_CAPACITY_TYPE RCT
|
|
|
|
|
+ LEFT JOIN RMS_CAPACITY_FUEL_TYPE RCFT ON RCFT.CAPACITY_TYPE_ID = RCT .CAPACITY_TYPE_ID
|
|
|
|
|
+ LEFT JOIN RMS_FUEL_TYPE RFT ON RFT .FUEL_TYPE_ID = RCFT.FUEL_TYPE_ID
|
|
|
|
|
+ where RCT.DELETED=0
|
|
|
|
|
+ GROUP BY RCT .CAPACITY_TYPE_ID,RCT.CAPACITY_TYPE_NAME,RCT .CAPACITY_MAX_LOAD
|
|
|
|
|
+ WHERE "id" in
|
|
|
|
|
+ <foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
)
|
|
)
|
|
|
<where>
|
|
<where>
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and !(index!=null and index!='')">
|
|
|
|
|
- AND "id" in
|
|
|
|
|
- <foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
|
|
- #{item}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </if>
|
|
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getLineByLike" resultType="java.util.Map">
|
|
<select id="getLineByLike" resultType="java.util.Map">
|
|
@@ -388,7 +406,8 @@
|
|
|
RL.LINE_ID "value",
|
|
RL.LINE_ID "value",
|
|
|
RL.LINE_NAME "label",
|
|
RL.LINE_NAME "label",
|
|
|
RL.LINE_NAME "text",
|
|
RL.LINE_NAME "text",
|
|
|
- NVL(RL_TEMP."points",'无') "points"
|
|
|
|
|
|
|
+ NVL(RL_TEMP."points",'无') "points",
|
|
|
|
|
+ RL.LINE_TYPE "lineType"
|
|
|
from RMS_LINE RL
|
|
from RMS_LINE RL
|
|
|
LEFT JOIN
|
|
LEFT JOIN
|
|
|
(
|
|
(
|
|
@@ -409,14 +428,17 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label" || "points", #{index})
|
|
AND REGEXP_LIKE("label" || "points", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and !(index!=null and index!='')">
|
|
|
|
|
|
|
+ <if test="lineType!=null and lineType!=''">
|
|
|
|
|
+ AND REGEXP_LIKE("lineType" , #{lineType})
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="id!=null and id.size>0 and !(index!=null and index!='')">
|
|
|
AND "id" in
|
|
AND "id" in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getMaterialByLike" resultType="java.util.Map">
|
|
<select id="getMaterialByLike" resultType="java.util.Map">
|
|
|
select * from(
|
|
select * from(
|
|
@@ -434,14 +456,14 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and !(index!=null and index!='')">
|
|
|
|
|
|
|
+ <if test="id!=null and id.size>0 and !(index!=null and index!='')">
|
|
|
AND "id" in
|
|
AND "id" in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="countTrainLoad" resultType="java.lang.Integer">
|
|
<select id="countTrainLoad" resultType="java.lang.Integer">
|
|
|
SELECT COUNT(*)
|
|
SELECT COUNT(*)
|
|
@@ -491,14 +513,14 @@
|
|
|
<if test="materialTypeName!=null and materialTypeName!=''">
|
|
<if test="materialTypeName!=null and materialTypeName!=''">
|
|
|
AND REGEXP_LIKE("materialTypeName", #{materialTypeName})
|
|
AND REGEXP_LIKE("materialTypeName", #{materialTypeName})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and !(index!=null and index!='')">
|
|
|
|
|
|
|
+ <if test="id!=null and id.size > 0 and !(index!=null and index!='')">
|
|
|
AND "id" in
|
|
AND "id" in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- FETCH NEXT 100 ROWS ONLY
|
|
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="findTrainWeight" resultType="java.util.Map">
|
|
<select id="findTrainWeight" resultType="java.util.Map">
|
|
|
<foreach collection="list" item="item" separator=" UNION " >
|
|
<foreach collection="list" item="item" separator=" UNION " >
|
|
@@ -552,5 +574,66 @@
|
|
|
or rp2.PERSONNEL_JOB_NUMBER = #{jobNumber})
|
|
or rp2.PERSONNEL_JOB_NUMBER = #{jobNumber})
|
|
|
and oto.deleted = 5
|
|
and oto.deleted = 5
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+ <select id="getFuelTypeByLike" resultType="java.util.Map">
|
|
|
|
|
+ select * from(
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ FUEL_TYPE_ID "fuelTypeId",
|
|
|
|
|
+ FUEL_TYPE_NAME "fuelTypeName",
|
|
|
|
|
+ FUEL_TYPE_ID "id",
|
|
|
|
|
+ FUEL_TYPE_ID "value",
|
|
|
|
|
+ FUEL_TYPE_NAME "text",
|
|
|
|
|
+ FUEL_TYPE_NAME "label"
|
|
|
|
|
+ FROM RMS_FUEL_TYPE
|
|
|
|
|
+ WHERE DELETED = 0
|
|
|
|
|
+ <if test="id!=null and id.size > 0 and !(index!=null and index!='')">
|
|
|
|
|
+ UNION
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ FUEL_TYPE_ID "fuelTypeId",
|
|
|
|
|
+ FUEL_TYPE_NAME "fuelTypeName",
|
|
|
|
|
+ FUEL_TYPE_ID "id",
|
|
|
|
|
+ FUEL_TYPE_ID "value",
|
|
|
|
|
+ FUEL_TYPE_NAME "text",
|
|
|
|
|
+ FUEL_TYPE_NAME "label"
|
|
|
|
|
+ FROM RMS_FUEL_TYPE
|
|
|
|
|
+ WHERE FUEL_TYPE_ID in
|
|
|
|
|
+ <foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
|
|
+ )
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="index!=null and index!=''">
|
|
|
|
|
+ AND REGEXP_LIKE("label", #{index})
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <select id="getDemandRulesCode" resultType="java.util.Map">
|
|
|
|
|
+ SELECT * FROM (
|
|
|
|
|
+ SELECT RDB.BILLING_TYPE "billingType",
|
|
|
|
|
+ RDB.BUSINESS_TYPE "businessType",
|
|
|
|
|
+ rdb.LINE_ID "lineId",
|
|
|
|
|
+ RDB.CAPACITY_TYPE_ID "capacityTypeId",
|
|
|
|
|
+ RDB.MATERIAL_TYPE_ID "operationsNameId",
|
|
|
|
|
+ RDB.TRANS_RANGE_ID "operationRange",
|
|
|
|
|
+ rdb.COMPANY_ID "businessCompanyId",
|
|
|
|
|
+ RDB.RULES_ID "value",
|
|
|
|
|
+ RDB.RULES_CODE "label",
|
|
|
|
|
+ ROP.OPERATION_POINT_ID "shippingPointId",
|
|
|
|
|
+ ROP2.OPERATION_POINT_ID "receivingPointId"
|
|
|
|
|
+ FROM RMS_DEMAND_RULES RDB
|
|
|
|
|
+ LEFT JOIN RMS_TRANS_RANGE RTR
|
|
|
|
|
+ ON RTR.TRANS_RANGE_ID = RDB.TRANS_RANGE_ID
|
|
|
|
|
+ LEFT JOIN RMS_OPERATION_POINT ROP
|
|
|
|
|
+ ON ROP.OPERATION_POINT_ID = RTR.START_POINT_ID
|
|
|
|
|
+ LEFT JOIN RMS_OPERATION_POINT ROP2
|
|
|
|
|
+ ON ROP2.OPERATION_POINT_ID = RTR.END_POINT_ID
|
|
|
|
|
+ )
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="index!=null and index!=''">
|
|
|
|
|
+ AND REGEXP_LIKE("label", #{index})
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </select>
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|