|
@@ -83,7 +83,6 @@
|
|
|
WHERE DL.VERSION_ID = 11
|
|
WHERE DL.VERSION_ID = 11
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<!-- 边输边查公司 -->
|
|
<!-- 边输边查公司 -->
|
|
|
<select id="getCompanyMesByLike" resultType="java.util.Map">
|
|
<select id="getCompanyMesByLike" resultType="java.util.Map">
|
|
|
select * from(
|
|
select * from(
|
|
@@ -93,6 +92,7 @@
|
|
|
RC.COMPANY_ID "id",
|
|
RC.COMPANY_ID "id",
|
|
|
RC.COMPANY_ID "key",
|
|
RC.COMPANY_ID "key",
|
|
|
RC.COMPANY_ID "value",
|
|
RC.COMPANY_ID "value",
|
|
|
|
|
+ RC.COMPANY_ID "carrierId",
|
|
|
<if test="companyType==null">
|
|
<if test="companyType==null">
|
|
|
RC.COMPANY_TYPE || '-' ||
|
|
RC.COMPANY_TYPE || '-' ||
|
|
|
</if>
|
|
</if>
|
|
@@ -150,38 +150,6 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE(RC.COMPANY_NAME, #{index})
|
|
AND REGEXP_LIKE(RC.COMPANY_NAME, #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="roleCodes.contains('shippingCompany') and dilCompanyList != null and dilCompanyList.size > 0">
|
|
|
|
|
- or RC.COMPANY_ID in
|
|
|
|
|
- <foreach collection="dilCompanyList" item="item" open="(" close=")" separator=",">
|
|
|
|
|
- <if test="companyType == '发货单位'">
|
|
|
|
|
- #{item.companyId}
|
|
|
|
|
- </if>
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="roleCodes.contains('recevingCompany') and dilCompanyList != null and dilCompanyList.size > 0">
|
|
|
|
|
- or RC.COMPANY_ID in
|
|
|
|
|
- <foreach collection="dilCompanyList" item="item" open="(" close=")" separator=",">
|
|
|
|
|
- <if test="companyType == '收货单位'">
|
|
|
|
|
- #{item.companyId}
|
|
|
|
|
- </if>
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="roleCodes.contains('carrierCompany') and dilCompanyList != null and dilCompanyList.size > 0">
|
|
|
|
|
- or RC.COMPANY_ID in
|
|
|
|
|
- <foreach collection="dilCompanyList" item="item" open="(" close=")" separator=",">
|
|
|
|
|
- <if test="companyType == '承运单位'">
|
|
|
|
|
- #{item.companyId}
|
|
|
|
|
- </if>
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="roleCodes.contains('businessCompany') and dilCompanyList != null and dilCompanyList.size > 0">
|
|
|
|
|
- or RC.COMPANY_ID in
|
|
|
|
|
- <foreach collection="dilCompanyList" item="item" open="(" close=")" separator=",">
|
|
|
|
|
- <if test="companyType == '业务单位'">
|
|
|
|
|
- #{item.companyId}
|
|
|
|
|
- </if>
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </if>
|
|
|
|
|
</where>
|
|
</where>
|
|
|
<if test="noRow == null">
|
|
<if test="noRow == null">
|
|
|
order by LENGTH(company_name)
|
|
order by LENGTH(company_name)
|
|
@@ -196,6 +164,7 @@
|
|
|
RC.COMPANY_ID "id",
|
|
RC.COMPANY_ID "id",
|
|
|
RC.COMPANY_ID "key",
|
|
RC.COMPANY_ID "key",
|
|
|
RC.COMPANY_ID "value",
|
|
RC.COMPANY_ID "value",
|
|
|
|
|
+ RC.COMPANY_ID "carrierId",
|
|
|
<if test="companyType==null">
|
|
<if test="companyType==null">
|
|
|
RC.COMPANY_TYPE || '-' ||
|
|
RC.COMPANY_TYPE || '-' ||
|
|
|
</if>
|
|
</if>
|
|
@@ -264,11 +233,14 @@
|
|
|
<if test="id!=null and id.size>0">
|
|
<if test="id!=null and id.size>0">
|
|
|
UNION
|
|
UNION
|
|
|
select
|
|
select
|
|
|
|
|
+ MATERIAL_TYPE_ID "operationsNameId",
|
|
|
|
|
+ MATERIAL_TYPE_NAME "operationsName",
|
|
|
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"
|
|
|
|
|
|
|
+ REMARK "remark",
|
|
|
|
|
+ 'operationsName' "prop"
|
|
|
from RMS_MATERIAL_TYPE
|
|
from RMS_MATERIAL_TYPE
|
|
|
where MATERIAL_TYPE_ID in
|
|
where MATERIAL_TYPE_ID in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
@@ -557,6 +529,13 @@
|
|
|
<if test="capacityTypeId!=null and capacityTypeId!=''">
|
|
<if test="capacityTypeId!=null and capacityTypeId!=''">
|
|
|
AND RCT.CAPACITY_TYPE_ID = #{capacityTypeId}
|
|
AND RCT.CAPACITY_TYPE_ID = #{capacityTypeId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="capacityTypeNameList != null and capacityTypeNameList.size > 0">
|
|
|
|
|
+ and
|
|
|
|
|
+ RCT.CAPACITY_TYPE_NAME in
|
|
|
|
|
+ <foreach collection="capacityTypeNameList" index="index" item="item" separator="," close=")" open="(">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
GROUP BY RCT .CAPACITY_TYPE_ID,RCT.CAPACITY_TYPE_NAME,RCT .CAPACITY_MAX_LOAD
|
|
GROUP BY RCT .CAPACITY_TYPE_ID,RCT.CAPACITY_TYPE_NAME,RCT .CAPACITY_MAX_LOAD
|
|
|
FETCH NEXT 10 ROWS ONLY
|
|
FETCH NEXT 10 ROWS ONLY
|
|
@@ -581,6 +560,13 @@
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
+ <if test="capacityTypeNameList != null and capacityTypeNameList.size > 0">
|
|
|
|
|
+ and
|
|
|
|
|
+ RCT.CAPACITY_TYPE_NAME in
|
|
|
|
|
+ <foreach collection="capacityTypeNameList" index="index" item="item" separator="," close=")" open="(">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
GROUP BY RCT .CAPACITY_TYPE_ID,RCT.CAPACITY_TYPE_NAME,RCT .CAPACITY_MAX_LOAD
|
|
GROUP BY RCT .CAPACITY_TYPE_ID,RCT.CAPACITY_TYPE_NAME,RCT .CAPACITY_MAX_LOAD
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
@@ -637,7 +623,8 @@
|
|
|
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"
|
|
|
|
|
|
|
+ RL.LINE_TYPE "lineType",
|
|
|
|
|
+ 'lineName' "prop"
|
|
|
from RMS_LINE RL
|
|
from RMS_LINE RL
|
|
|
LEFT JOIN
|
|
LEFT JOIN
|
|
|
(
|
|
(
|
|
@@ -897,11 +884,6 @@
|
|
|
ON ROP.OPERATION_POINT_ID = RTR.START_POINT_ID
|
|
ON ROP.OPERATION_POINT_ID = RTR.START_POINT_ID
|
|
|
LEFT JOIN RMS_OPERATION_POINT ROP2
|
|
LEFT JOIN RMS_OPERATION_POINT ROP2
|
|
|
ON ROP2.OPERATION_POINT_ID = RTR.END_POINT_ID
|
|
ON ROP2.OPERATION_POINT_ID = RTR.END_POINT_ID
|
|
|
- <where>
|
|
|
|
|
- <include refid="companyFilter" >
|
|
|
|
|
- <property name="prop" value="rdb.COMPANY_ID"/>
|
|
|
|
|
- </include>
|
|
|
|
|
- </where>
|
|
|
|
|
)
|
|
)
|
|
|
<where>
|
|
<where>
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
@@ -910,6 +892,7 @@
|
|
|
<if test="businessCompanyId!=null and businessCompanyId!=''">
|
|
<if test="businessCompanyId!=null and businessCompanyId!=''">
|
|
|
AND REGEXP_LIKE("businessCompanyId", #{businessCompanyId})
|
|
AND REGEXP_LIKE("businessCompanyId", #{businessCompanyId})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <include refid="com.steerinfo.dil.mapper.CommonMapper.filterCompanyData"></include>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getIdCardCode" resultType="java.lang.String">
|
|
<select id="getIdCardCode" resultType="java.lang.String">
|