|
@@ -162,8 +162,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
)
|
|
)
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="companyType != null and companyType == '业务单位'">
|
|
|
|
|
- <include refid="com.steerinfo.dil.mapper.CommonMapper.rootCompanyFilter"></include>
|
|
|
|
|
|
|
+ <if test="companyType != null and companyType == '业务单位' and isListed == null">
|
|
|
<include refid="com.steerinfo.dil.mapper.CommonMapper.filterCompanyData"></include>
|
|
<include refid="com.steerinfo.dil.mapper.CommonMapper.filterCompanyData"></include>
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
@@ -294,10 +293,12 @@
|
|
|
FETCH NEXT 10 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 "id",
|
|
OPERATION_POINT_ID "id",
|
|
|
OPERATION_POINT_ID "value",
|
|
OPERATION_POINT_ID "value",
|
|
|
|
|
+ OPERATION_POINT_NAME "OPERATION_POINT_NAME",
|
|
|
OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "label",
|
|
OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "label",
|
|
|
OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "text"
|
|
OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "text"
|
|
|
from RMS_OPERATION_POINT
|
|
from RMS_OPERATION_POINT
|
|
@@ -319,21 +320,23 @@
|
|
|
AND ALTERNATE_FIELDS1 = #{sourceFlag}
|
|
AND ALTERNATE_FIELDS1 = #{sourceFlag}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
- order by LENGTH(OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME)
|
|
|
|
|
|
|
+ order by LENGTH(OPERATION_POINT_NAME)
|
|
|
FETCH NEXT 10 ROWS ONLY
|
|
FETCH NEXT 10 ROWS ONLY
|
|
|
- )
|
|
|
|
|
- <if test="id!=null and id.size>0">
|
|
|
|
|
- UNION select
|
|
|
|
|
- OPERATION_POINT_ID "id",
|
|
|
|
|
- OPERATION_POINT_ID "value",
|
|
|
|
|
- OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "label",
|
|
|
|
|
- OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "text"
|
|
|
|
|
- from RMS_OPERATION_POINT
|
|
|
|
|
- where OPERATION_POINT_ID in
|
|
|
|
|
- <foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
|
|
- #{item}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+ )
|
|
|
|
|
+ <if test="id!=null and id.size>0">
|
|
|
|
|
+ UNION select
|
|
|
|
|
+ OPERATION_POINT_ID "id",
|
|
|
|
|
+ OPERATION_POINT_ID "value",
|
|
|
|
|
+ OPERATION_POINT_NAME "OPERATION_POINT_NAME",
|
|
|
|
|
+ OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "label",
|
|
|
|
|
+ OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "text"
|
|
|
|
|
+ from RMS_OPERATION_POINT
|
|
|
|
|
+ where OPERATION_POINT_ID in
|
|
|
|
|
+ <foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
|
|
+ ) order by LENGTH("OPERATION_POINT_NAME")
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getPersonnelByLike" resultType="java.util.Map">
|
|
<select id="getPersonnelByLike" resultType="java.util.Map">
|
|
@@ -448,6 +451,11 @@
|
|
|
RCA .CAPACITY_ID "capacityId",
|
|
RCA .CAPACITY_ID "capacityId",
|
|
|
RCA .CAPACITY_ID "id",
|
|
RCA .CAPACITY_ID "id",
|
|
|
RCA .CAPACITY_ID "value",
|
|
RCA .CAPACITY_ID "value",
|
|
|
|
|
+ RCA .CAPACITY_LICENCE_NUMBER "capacityLicenceNumber",
|
|
|
|
|
+ RCA. CAPACITY_OPERATE_NUMBER "capacityOperateNumber",
|
|
|
|
|
+ RCA. CAPACITY_AXIS_NUMBER "capacityAxisNumber",
|
|
|
|
|
+ RCA.CAPACITY_WEIGHT_MAIN "capacityWeightMain",
|
|
|
|
|
+ RCA.CAPACITY_WEIGHT_TRAILER "capacityWeightTrailer",
|
|
|
CASE WHEN RC.COMPANY_TYPE = '业务单位'
|
|
CASE WHEN RC.COMPANY_TYPE = '业务单位'
|
|
|
THEN RC.COMPANY_ID
|
|
THEN RC.COMPANY_ID
|
|
|
else -1
|
|
else -1
|
|
@@ -544,8 +552,6 @@
|
|
|
<if test="!((driverId!=null and driverId!='') or (driverId2!=null and driverId2!=''))">
|
|
<if test="!((driverId!=null and driverId!='') or (driverId2!=null and driverId2!=''))">
|
|
|
order by RCA.CAPACITY_ID desc
|
|
order by RCA.CAPACITY_ID desc
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
- FETCH NEXT 10 ROWS ONLY
|
|
|
|
|
)
|
|
)
|
|
|
<if test="id!=null and id.size>0">
|
|
<if test="id!=null and id.size>0">
|
|
|
UNION
|
|
UNION
|
|
@@ -626,6 +632,7 @@
|
|
|
<if test="(driverId!=null and driverId!='') or (driverId2!=null and driverId2!='')">
|
|
<if test="(driverId!=null and driverId!='') or (driverId2!=null and driverId2!='')">
|
|
|
ORDER BY "countNumber" DESC
|
|
ORDER BY "countNumber" DESC
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getCapacityByLikeSc" resultType="java.util.Map">
|
|
<select id="getCapacityByLikeSc" resultType="java.util.Map">
|
|
@@ -695,7 +702,6 @@
|
|
|
<if test="(driverId!=null and driverId!='') or (driverId2!=null and driverId2!='')">
|
|
<if test="(driverId!=null and driverId!='') or (driverId2!=null and driverId2!='')">
|
|
|
ORDER BY "countNumber" DESC
|
|
ORDER BY "countNumber" DESC
|
|
|
</if>
|
|
</if>
|
|
|
- FETCH NEXT 10 ROWS ONLY
|
|
|
|
|
)
|
|
)
|
|
|
<if test="id!=null and id.size>0">
|
|
<if test="id!=null and id.size>0">
|
|
|
UNION
|
|
UNION
|
|
@@ -747,6 +753,7 @@
|
|
|
<if test="(driverId!=null and driverId!='') or (driverId2!=null and driverId2!='')">
|
|
<if test="(driverId!=null and driverId!='') or (driverId2!=null and driverId2!='')">
|
|
|
ORDER BY "countNumber" DESC
|
|
ORDER BY "countNumber" DESC
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getrmsrmsjobinfosBylike" resultType="java.util.Map">
|
|
<select id="getrmsrmsjobinfosBylike" resultType="java.util.Map">
|
|
@@ -1647,4 +1654,18 @@
|
|
|
ORDER BY "countNumber" DESC
|
|
ORDER BY "countNumber" DESC
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="getConfigByName" resultType="java.util.Map">
|
|
|
|
|
+ SELECT CONFIG_ID "configId",
|
|
|
|
|
+ CONFIG_NAME "configName",
|
|
|
|
|
+ CONFIG_VALUE_STRING "valueString",
|
|
|
|
|
+ CONFIG_VALUE_NUMBER "valueNumber",
|
|
|
|
|
+ CONFIG_VALUE_DATE "valueDate",
|
|
|
|
|
+ CONFIG_DESCRIPTION "configDescription",
|
|
|
|
|
+ DELETED "deleted"
|
|
|
|
|
+ FROM DIL_CONFIG
|
|
|
|
|
+ WHERE DELETED!=1
|
|
|
|
|
+ AND CONFIG_NAME= #{configName}
|
|
|
|
|
+ FETCH NEXT 1 ROWS ONLY
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|