|
|
@@ -1693,6 +1693,9 @@
|
|
|
RP.PERSONNEL_ID "value",
|
|
|
RP.PERSONNEL_NAME "label",
|
|
|
RP.PERSONNEL_NAME "text",
|
|
|
+ <if test="driverCapacityId!=null and driverCapacityId!=''">
|
|
|
+ RCD.group_number "groupNumber",
|
|
|
+ </if>
|
|
|
'personnelName' "prop"
|
|
|
<if test="capacityId!=null and capacityId!=''">
|
|
|
,NVL(T ."countNumber",0) "countNumber"
|
|
|
@@ -1712,7 +1715,13 @@
|
|
|
GROUP BY DRIVER_ID
|
|
|
) T ON T."driverId" = RP .PERSONNEL_ID
|
|
|
</if>
|
|
|
+ <if test="driverCapacityId!=null and driverCapacityId!=''">
|
|
|
+ LEFT JOIN RMS_CAPACITY_DRIVER RCD on rcd.personnel_id = RP.personnel_id
|
|
|
+ </if>
|
|
|
WHERE RP.DELETED != -1
|
|
|
+ <if test="driverCapacityId!=null and driverCapacityId!=''">
|
|
|
+ and RCD.capacity_id = #{driverCapacityId}
|
|
|
+ </if>
|
|
|
<if test="isNC!=null">
|
|
|
AND RP.SOURCE_ID IS NOT NULL
|
|
|
</if>
|
|
|
@@ -1760,6 +1769,9 @@
|
|
|
RP.PERSONNEL_ID "value",
|
|
|
RP.PERSONNEL_NAME "label",
|
|
|
RP.PERSONNEL_NAME "text",
|
|
|
+ <if test="driverCapacityId!=null and driverCapacityId!=''">
|
|
|
+ RCD.group_number "groupNumber",
|
|
|
+ </if>
|
|
|
'personnelName' "prop"
|
|
|
<if test="capacityId!=null and capacityId!=''">
|
|
|
,NVL(T ."countNumber",0) "countNumber"
|
|
|
@@ -1778,6 +1790,9 @@
|
|
|
GROUP BY DRIVER_ID
|
|
|
) T ON T."driverId" = RP .PERSONNEL_ID
|
|
|
</if>
|
|
|
+ <if test="driverCapacityId!=null and driverCapacityId!=''">
|
|
|
+ LEFT JOIN RMS_CAPACITY_DRIVER RCD on rcd.personnel_id = RP.personnel_id
|
|
|
+ </if>
|
|
|
WHERE RP.PERSONNEL_ID in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|