|
@@ -123,6 +123,12 @@
|
|
|
<if test="companyType!=null and companyType!=''">
|
|
<if test="companyType!=null and companyType!=''">
|
|
|
AND RC.COMPANY_TYPE = #{companyType}
|
|
AND RC.COMPANY_TYPE = #{companyType}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="companyId!=null and companyId!=''">
|
|
|
|
|
+ AND RC.COMPANY_ID = #{companyId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carrierId!=null and carrierId!=''">
|
|
|
|
|
+ AND RC.COMPANY_ID = #{carrierId}
|
|
|
|
|
+ </if>
|
|
|
<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>
|
|
@@ -196,6 +202,15 @@
|
|
|
<if test="remark!=null and remark!=''">
|
|
<if test="remark!=null and remark!=''">
|
|
|
AND REGEXP_LIKE("remark", #{remark})
|
|
AND REGEXP_LIKE("remark", #{remark})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="materialTypeId!=null and materialTypeId!=''">
|
|
|
|
|
+ AND REGEXP_LIKE("materialTypeId", #{materialTypeId})
|
|
|
|
|
+ </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 10 ROWS ONLY
|
|
FETCH NEXT 10 ROWS ONLY
|
|
|
)
|
|
)
|
|
@@ -280,11 +295,12 @@
|
|
|
PERSONNEL_ID "personnelId",
|
|
PERSONNEL_ID "personnelId",
|
|
|
PERSONNEL_NAME "personnelName",
|
|
PERSONNEL_NAME "personnelName",
|
|
|
PERSONNEL_POST "personnelPost",
|
|
PERSONNEL_POST "personnelPost",
|
|
|
|
|
+ PERSONNEL_PHONE "personnelPhone",
|
|
|
PERSONNEL_ID "id",
|
|
PERSONNEL_ID "id",
|
|
|
PERSONNEL_ID "value",
|
|
PERSONNEL_ID "value",
|
|
|
PERSONNEL_NAME "label",
|
|
PERSONNEL_NAME "label",
|
|
|
- PERSONNEL_NAME "text"
|
|
|
|
|
-
|
|
|
|
|
|
|
+ PERSONNEL_NAME "text",
|
|
|
|
|
+ 'personnelName' "prop"
|
|
|
from RMS_PERSONNEL
|
|
from RMS_PERSONNEL
|
|
|
where DELETED = 0
|
|
where DELETED = 0
|
|
|
)
|
|
)
|
|
@@ -292,6 +308,9 @@
|
|
|
<if test="personnelPost!=null and personnelPost!=''">
|
|
<if test="personnelPost!=null and personnelPost!=''">
|
|
|
AND "personnelPost" = #{personnelPost}
|
|
AND "personnelPost" = #{personnelPost}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="personnelId!=null and personnelId!=''">
|
|
|
|
|
+ AND REGEXP_LIKE("personnelId", #{personnelId})
|
|
|
|
|
+ </if>
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
@@ -322,7 +341,9 @@
|
|
|
RCA .CAPACITY_ID "id",
|
|
RCA .CAPACITY_ID "id",
|
|
|
RCA .CAPACITY_ID "value",
|
|
RCA .CAPACITY_ID "value",
|
|
|
RCA .CAPACITY_NUMBER "label",
|
|
RCA .CAPACITY_NUMBER "label",
|
|
|
- RCA .CAPACITY_NUMBER "text"
|
|
|
|
|
|
|
+ RCA .CAPACITY_NUMBER "text",
|
|
|
|
|
+ RCA.CAPACITY_NUMBER "capacityNumber",
|
|
|
|
|
+ 'capacityNumber' "prop"
|
|
|
FROM RMS_CAPACITY RCA
|
|
FROM RMS_CAPACITY RCA
|
|
|
LEFT JOIN RMS_CAPACITY_CARRIER RCC ON RCA .CAPACITY_ID = RCC .CAPACITY_ID
|
|
LEFT JOIN RMS_CAPACITY_CARRIER RCC ON RCA .CAPACITY_ID = RCC .CAPACITY_ID
|
|
|
LEFT JOIN RMS_COMPANY RC ON RC .COMPANY_ID = RCC .COMPANY_ID
|
|
LEFT JOIN RMS_COMPANY RC ON RC .COMPANY_ID = RCC .COMPANY_ID
|
|
@@ -340,6 +361,15 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE(RCA .CAPACITY_NUMBER, #{index})
|
|
AND REGEXP_LIKE(RCA .CAPACITY_NUMBER, #{index})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="capacityId!=null and capacityId!=''">
|
|
|
|
|
+ AND REGEXP_LIKE(RCA .CAPACITY_ID, #{capacityId})
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="id!=null and id.size>0 and !(index!=null and index!='')">
|
|
|
|
|
+ AND RCA .CAPACITY_ID in
|
|
|
|
|
+ <foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
FETCH NEXT 10 ROWS ONLY
|
|
FETCH NEXT 10 ROWS ONLY
|
|
|
)
|
|
)
|
|
|
<if test="id!=null and id.size>0">
|
|
<if test="id!=null and id.size>0">
|
|
@@ -403,6 +433,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="transrangeId!=null and transrangeId!=''">
|
|
|
|
|
+ AND REGEXP_LIKE("transrangeId", #{transrangeId})
|
|
|
|
|
+ </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="," >
|
|
@@ -457,6 +490,9 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE(RCT.CAPACITY_TYPE_NAME, #{index})
|
|
AND REGEXP_LIKE(RCT.CAPACITY_TYPE_NAME, #{index})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="capacityTypeId!=null and capacityTypeId!=''">
|
|
|
|
|
+ AND REGEXP_LIKE(RCT.CAPACITY_TYPE_ID, #{capacityTypeId})
|
|
|
|
|
+ </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
|
|
@@ -515,6 +551,9 @@
|
|
|
<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="lineId!=null and lineId!=''">
|
|
|
|
|
+ AND REGEXP_LIKE("lineId" , #{lineId})
|
|
|
|
|
+ </if>
|
|
|
<if test="lineType!=null and lineType!=''">
|
|
<if test="lineType!=null and lineType!=''">
|
|
|
AND REGEXP_LIKE("lineType" , #{lineType})
|
|
AND REGEXP_LIKE("lineType" , #{lineType})
|
|
|
</if>
|
|
</if>
|