|
@@ -15,23 +15,23 @@
|
15
|
15
|
FROM
|
16
|
16
|
tp_transaction tr
|
17
|
17
|
LEFT JOIN tp_transaction_reply re ON tr.id = re.transaction_id
|
|
18
|
+ <if test="status == 1 ">
|
|
19
|
+ LEFT JOIN tp_user u ON re.reply_ta_user_id = u.ta_user_id
|
|
20
|
+ </if>
|
18
|
21
|
WHERE
|
19
|
22
|
tr.id = #{id}
|
20
|
|
- <if test="status != null and status !=''and status == 0 ">
|
21
|
|
- AND re.reply_ta_user_id = #{taUserId}
|
|
23
|
+ <if test="status == 1 ">
|
|
24
|
+ AND re.reply_ta_user_id = u.ta_user_id
|
22
|
25
|
</if>
|
23
|
|
- <if test="status != null and status !=''and status == 1 ">
|
24
|
|
- AND re.release_identity = 0
|
25
|
|
- AND re.reply_ta_user_id = #{userID}
|
|
26
|
+ <if test="status == 0 ">
|
|
27
|
+ AND re.reply_ta_user_id = #{taUserId,jdbcType=INTEGER}
|
26
|
28
|
</if>
|
27
|
|
-
|
28
|
|
- <if test="status != null and status !=''and status == 2 ">
|
29
|
|
- AND re.release_identity = 0
|
30
|
|
- AND re.ta_user_id = #{userID}
|
|
29
|
+ <if test="status == 2 ">
|
|
30
|
+ AND re.release_identity = 1
|
31
|
31
|
</if>
|
32
|
32
|
|
33
|
|
- <if test="status != null and status !=''and status == 3 ">
|
34
|
|
- AND re.ta_user_id = tr.create_user
|
|
33
|
+ <if test="status == 3 ">
|
|
34
|
+ AND re.ta_user_id = #{taUserId,jdbcType=INTEGER}
|
35
|
35
|
</if>
|
36
|
36
|
|
37
|
37
|
<if test="taUserName != null and taUserName !=''">
|