|
@@ -233,6 +233,15 @@
|
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
|
AND tpi.org_id = #{orgId}::uuid
|
|
AND tpi.org_id = #{orgId}::uuid
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="orgName != null and orgName != ''">
|
|
|
|
|
+ AND tmo.org_name LIKE concat('%',my_ex.likequery(#{orgName}),'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="supName != null and supName != ''">
|
|
|
|
|
+ AND tmp.sup_name LIKE concat('%',my_ex.likequery(#{supName}),'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="staffName != null and staffName != ''">
|
|
|
|
|
+ AND tms.staff_name LIKE concat('%',my_ex.likequery(#{staffName}),'%')
|
|
|
|
|
+ </if>
|
|
|
<if test="staffId != null and staffId != ''">
|
|
<if test="staffId != null and staffId != ''">
|
|
|
AND tpi.staff_id = #{staffId}::uuid
|
|
AND tpi.staff_id = #{staffId}::uuid
|
|
|
</if>
|
|
</if>
|