|
@@ -21,8 +21,7 @@
|
21
|
21
|
us.user_name
|
22
|
22
|
FROM
|
23
|
23
|
tp_ticket p
|
24
|
|
- LEFT JOIN ta_user AS us ON p.create_user=us.id
|
25
|
|
- LEFT JOIN tp_user AS u ON p.tp_user_id = u.id
|
|
24
|
+ LEFT JOIN ta_user AS us ON p.create_user=us.user_id
|
26
|
25
|
<where>
|
27
|
26
|
<if test="ticket.id != null and ticket.id !=''">
|
28
|
27
|
and p.id like concat('%',#{ticket.id,jdbcType=INTEGER},'%')
|
|
@@ -34,13 +33,13 @@
|
34
|
33
|
and p.ticket_title like concat('%',#{ticket.ticketTitle,jdbcType=VARCHAR},'%')
|
35
|
34
|
</if>
|
36
|
35
|
<if test="userName != null and userName !=''">
|
37
|
|
- and us.user_name like concat('%',#{ userName,jdbcType=VARCHAR},'%')
|
|
36
|
+ and AS.user_name like concat('%',#{ userName,jdbcType=VARCHAR},'%')
|
38
|
37
|
</if>
|
39
|
38
|
<if test="ticket.status != null and ticket.status !=''">
|
40
|
39
|
and p.status=#{ticket.status,jdbcType=INTEGER}
|
41
|
40
|
</if>
|
42
|
41
|
<if test="updateUserNmae != null and updateUserNmae !=''">
|
43
|
|
- and u.user_name like concat('%',#{ updateUserNmae,jdbcType=VARCHAR},'%')
|
|
42
|
+ and us.user_name like concat('%',#{ updateUserNmae,jdbcType=VARCHAR},'%')
|
44
|
43
|
</if>
|
45
|
44
|
and p.org_id=#{orgId,jdbcType=INTEGER}
|
46
|
45
|
</where>
|