|
@@ -61,6 +61,7 @@
|
61
|
61
|
LEFT JOIN toa_form tf ON tf.process_id=tp.id AND tf.is_deleted=0
|
62
|
62
|
LEFT JOIN form_setting fs ON fs.form_id=tf.id AND fs.is_deleted=0
|
63
|
63
|
LEFT JOIN process_node_extend pne ON pne.node_id = approver.task_node_key AND pne.is_deleted=0
|
|
64
|
+ LEFT JOIN sp_user su ON tb.sender = su.id
|
64
|
65
|
WHERE tb.is_deleted = 0 AND tb.status != 0
|
65
|
66
|
<if test="query != null">
|
66
|
67
|
<if test="query.rangeTime != null and query.rangeTime != ''">
|
|
@@ -72,6 +73,9 @@
|
72
|
73
|
<if test="query.sender > 0 ">
|
73
|
74
|
AND tb.sender = #{query.sender}
|
74
|
75
|
</if>
|
|
76
|
+ <if test="query.senderName != null and query.senderName != ''">
|
|
77
|
+ AND su.username like CONCAT('%',#{query.senderName},'%')
|
|
78
|
+ </if>
|
75
|
79
|
<if test="query.code != null and query.code != ''">
|
76
|
80
|
AND tb.code LIKE #{query.codeLike}
|
77
|
81
|
</if>
|
|
@@ -97,6 +101,7 @@
|
97
|
101
|
brr.is_deleted = 0
|
98
|
102
|
LEFT JOIN toa_form tf ON tf.process_id=tp.id AND tf.is_deleted=0
|
99
|
103
|
LEFT JOIN form_setting fs ON fs.form_id=tf.id AND fs.is_deleted=0
|
|
104
|
+ LEFT JOIN sp_user su ON tb.sender = su.id
|
100
|
105
|
WHERE tb.is_deleted = 0 AND tb.status in
|
101
|
106
|
<foreach collection="statusList" item="status" separator="," open="(" close=")">
|
102
|
107
|
#{status}
|
|
@@ -111,6 +116,9 @@
|
111
|
116
|
<if test="query.sender > 0 ">
|
112
|
117
|
AND tb.sender = #{query.sender}
|
113
|
118
|
</if>
|
|
119
|
+ <if test="query.senderName != null and query.senderName != ''">
|
|
120
|
+ AND su.username like CONCAT('%',#{query.senderName},'%')
|
|
121
|
+ </if>
|
114
|
122
|
<if test="query.code != null and query.code != ''">
|
115
|
123
|
AND tb.code like #{query.codeLike}
|
116
|
124
|
</if>
|