|
@@ -1699,6 +1699,9 @@
|
|
|
RP.PERSONNEL_ID "value",
|
|
RP.PERSONNEL_ID "value",
|
|
|
RP.PERSONNEL_NAME "label",
|
|
RP.PERSONNEL_NAME "label",
|
|
|
RP.PERSONNEL_NAME "text",
|
|
RP.PERSONNEL_NAME "text",
|
|
|
|
|
+ <if test="driverCapacityId!=null and driverCapacityId!=''">
|
|
|
|
|
+ RCD.group_number "groupNumber",
|
|
|
|
|
+ </if>
|
|
|
'personnelName' "prop"
|
|
'personnelName' "prop"
|
|
|
<if test="capacityId!=null and capacityId!=''">
|
|
<if test="capacityId!=null and capacityId!=''">
|
|
|
,NVL(T ."countNumber",0) "countNumber"
|
|
,NVL(T ."countNumber",0) "countNumber"
|
|
@@ -1718,7 +1721,13 @@
|
|
|
GROUP BY DRIVER_ID
|
|
GROUP BY DRIVER_ID
|
|
|
) T ON T."driverId" = RP .PERSONNEL_ID
|
|
) T ON T."driverId" = RP .PERSONNEL_ID
|
|
|
</if>
|
|
</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
|
|
WHERE RP.DELETED != -1
|
|
|
|
|
+ <if test="driverCapacityId!=null and driverCapacityId!=''">
|
|
|
|
|
+ and RCD.capacity_id = #{driverCapacityId}
|
|
|
|
|
+ </if>
|
|
|
<if test="isNC!=null">
|
|
<if test="isNC!=null">
|
|
|
AND RP.SOURCE_ID IS NOT NULL
|
|
AND RP.SOURCE_ID IS NOT NULL
|
|
|
</if>
|
|
</if>
|
|
@@ -1766,6 +1775,9 @@
|
|
|
RP.PERSONNEL_ID "value",
|
|
RP.PERSONNEL_ID "value",
|
|
|
RP.PERSONNEL_NAME "label",
|
|
RP.PERSONNEL_NAME "label",
|
|
|
RP.PERSONNEL_NAME "text",
|
|
RP.PERSONNEL_NAME "text",
|
|
|
|
|
+ <if test="driverCapacityId!=null and driverCapacityId!=''">
|
|
|
|
|
+ RCD.group_number "groupNumber",
|
|
|
|
|
+ </if>
|
|
|
'personnelName' "prop"
|
|
'personnelName' "prop"
|
|
|
<if test="capacityId!=null and capacityId!=''">
|
|
<if test="capacityId!=null and capacityId!=''">
|
|
|
,NVL(T ."countNumber",0) "countNumber"
|
|
,NVL(T ."countNumber",0) "countNumber"
|
|
@@ -1784,6 +1796,9 @@
|
|
|
GROUP BY DRIVER_ID
|
|
GROUP BY DRIVER_ID
|
|
|
) T ON T."driverId" = RP .PERSONNEL_ID
|
|
) T ON T."driverId" = RP .PERSONNEL_ID
|
|
|
</if>
|
|
</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
|
|
WHERE RP.PERSONNEL_ID in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|