|
|
@@ -311,7 +311,9 @@
|
|
|
OPERATION_POINT_NAME "OPERATION_POINT_NAME",
|
|
|
OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "label",
|
|
|
OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "text",
|
|
|
- OPERATION_POINT_CODE "code"
|
|
|
+ OPERATION_POINT_CODE "code",
|
|
|
+ REMARK "remark",
|
|
|
+ alternate_fields3 "f3"
|
|
|
from RMS_OPERATION_POINT
|
|
|
<where>
|
|
|
DELETED = 0
|
|
|
@@ -332,7 +334,7 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
order by alternate_fields3,LENGTH(OPERATION_POINT_NAME)
|
|
|
- FETCH NEXT 10 ROWS ONLY
|
|
|
+ FETCH NEXT 50 ROWS ONLY
|
|
|
)
|
|
|
<if test="id!=null and id.size>0">
|
|
|
UNION select
|
|
|
@@ -341,14 +343,16 @@
|
|
|
OPERATION_POINT_NAME "OPERATION_POINT_NAME",
|
|
|
OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "label",
|
|
|
OPERATION_POINT_CODE || '-' || OPERATION_POINT_NAME "text",
|
|
|
- OPERATION_POINT_CODE "code"
|
|
|
+ OPERATION_POINT_CODE "code",
|
|
|
+ REMARK "remark",
|
|
|
+ alternate_fields3 "f3"
|
|
|
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") desc
|
|
|
+ ) order by "f3", LENGTH("OPERATION_POINT_NAME") desc
|
|
|
</select>
|
|
|
|
|
|
<select id="getPersonnelByLike" resultType="java.util.Map">
|
|
|
@@ -1238,6 +1242,9 @@
|
|
|
#{item.卸车日期} "unloadTime",
|
|
|
#{item.车号} "capacityId",
|
|
|
#{item.通知单号} "requireNumber",
|
|
|
+ #{item.皮重} "tareWeight",
|
|
|
+ #{item.毛重} "grossWeight",
|
|
|
+ #{item.净重} "netWeight",
|
|
|
CASE
|
|
|
WHEN TWR .NET_WEIGHT > 0 THEN TWR .NET_WEIGHT
|
|
|
ELSE TLR .ACTUAL_TONNAGE
|
|
|
@@ -1826,4 +1833,11 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="getMaxSerialNumber" resultType="java.lang.String">
|
|
|
+ select 'XX' || nvl(to_number(substr(max(t.serial_number), 3)) + 1,
|
|
|
+ to_char(sysdate, 'yyyyMMdd') || '001')
|
|
|
+ from ams_trans_requirement t
|
|
|
+ where substr(t.serial_number, 1, 10) = 'XX' || to_char(sysdate, 'yyyyMMdd')
|
|
|
+ </select>
|
|
|
</mapper>
|