|
|
@@ -552,6 +552,7 @@
|
|
|
<if test="!((driverId!=null and driverId!='') or (driverId2!=null and driverId2!=''))">
|
|
|
order by RCA.CAPACITY_ID desc
|
|
|
</if>
|
|
|
+ FETCH NEXT 10 ROWS ONLY
|
|
|
)
|
|
|
<if test="id!=null and id.size>0">
|
|
|
UNION
|
|
|
@@ -559,6 +560,11 @@
|
|
|
RCA .CAPACITY_ID "capacityId",
|
|
|
RCA .CAPACITY_ID "id",
|
|
|
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 = '业务单位'
|
|
|
THEN RC.COMPANY_ID
|
|
|
else -1
|
|
|
@@ -587,7 +593,10 @@
|
|
|
then RCA.CAPACITY_NUMBER
|
|
|
else RCA.REMARK1
|
|
|
end "remark1",
|
|
|
- RCA.CAPACITY_NUMBER "capacityNumber",
|
|
|
+ CASE WHEN RCA.REMARK1 is null
|
|
|
+ then RCA.CAPACITY_NUMBER
|
|
|
+ else RCA.REMARK1
|
|
|
+ end "capacityNumber",
|
|
|
(case
|
|
|
when oto.capacity_id is null then '空闲'
|
|
|
when oto.deleted != '2' and oto.capacity_id is not null then '已派'
|
|
|
@@ -632,7 +641,6 @@
|
|
|
<if test="(driverId!=null and driverId!='') or (driverId2!=null and driverId2!='')">
|
|
|
ORDER BY "countNumber" DESC
|
|
|
</if>
|
|
|
- FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
|
|
|
|
<select id="getCapacityByLikeSc" resultType="java.util.Map">
|