|
@@ -131,6 +131,15 @@
|
|
|
or tms.staff_name LIKE concat('%',my_ex.likequery(#{searchText}),'%')
|
|
or tms.staff_name LIKE concat('%',my_ex.likequery(#{searchText}),'%')
|
|
|
)
|
|
)
|
|
|
</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="fromId != null and fromId != ''">
|
|
<if test="fromId != null and fromId != ''">
|
|
|
AND t.from_id = #{fromId}
|
|
AND t.from_id = #{fromId}
|
|
|
</if>
|
|
</if>
|
|
@@ -281,7 +290,7 @@
|
|
|
LEFT JOIN sys.t_data_kind tdktype ON tdktype.kind_code = t.out_type
|
|
LEFT JOIN sys.t_data_kind tdktype ON tdktype.kind_code = t.out_type
|
|
|
left join dkic_b.t_mst_dictionary_data tmd on tmd.data_id = t.out_reason
|
|
left join dkic_b.t_mst_dictionary_data tmd on tmd.data_id = t.out_reason
|
|
|
<include refid="Condition"/>
|
|
<include refid="Condition"/>
|
|
|
- order by t.op_create_time desc
|
|
|
|
|
|
|
+ order by t.make_time desc
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
limit #{end} offset #{start}
|
|
limit #{end} offset #{start}
|
|
|
</if>
|
|
</if>
|