|
@@ -80,8 +80,16 @@
|
|
|
<if test="bo.onlySearchCurrentDriver != null and bo.onlySearchCurrentDriver == true">
|
|
<if test="bo.onlySearchCurrentDriver != null and bo.onlySearchCurrentDriver == true">
|
|
|
and oas.accountId = #{bo.uid}
|
|
and oas.accountId = #{bo.uid}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="bo.operatorId != null">
|
|
|
|
|
- and dorarm.operatorId = #{bo.operatorId}
|
|
|
|
|
|
|
+ <choose>
|
|
|
|
|
+ <when test="bo.operatorId != null">
|
|
|
|
|
+ and dorarm.operatorId = #{bo.operatorId}
|
|
|
|
|
+ </when>
|
|
|
|
|
+ <otherwise>
|
|
|
|
|
+ and dorarm.operatorId = #{bo.adminOperatorId}
|
|
|
|
|
+ </otherwise>
|
|
|
|
|
+ </choose>
|
|
|
|
|
+ <if test="bo.warehouseId != null and bo.warehouseId > 0">
|
|
|
|
|
+ and dorarm.warehouseId = #{bo.warehouseId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="bo.areaStaffIds != null and bo.areaStaffIds.size > 0">
|
|
<if test="bo.areaStaffIds != null and bo.areaStaffIds.size > 0">
|
|
|
<foreach item="item" index="index" collection="bo.areaStaffIds" open="and dorarm.areaStaffId in ("
|
|
<foreach item="item" index="index" collection="bo.areaStaffIds" open="and dorarm.areaStaffId in ("
|