|
@@ -57,11 +57,13 @@ WHERE
|
57
|
57
|
SELECT
|
58
|
58
|
t.*,
|
59
|
59
|
b.label AS sourceName,
|
60
|
|
- c.person_name as appointmentName
|
|
60
|
+ c.person_name as appointmentName,
|
|
61
|
+ d.label as visitorNum
|
61
|
62
|
FROM
|
62
|
63
|
ta_main_usher_record t
|
63
|
64
|
LEFT JOIN sys_dict b ON t.customer_source = b.id
|
64
|
65
|
LEFT JOIN ta_visitor_appointment c ON t.appointment_id = c.appointment_id
|
|
66
|
+ LEFT JOIN sys_dict d ON d.id = t.person_num
|
65
|
67
|
<where>
|
66
|
68
|
t.status = 1
|
67
|
69
|
<if test="personName !=null and personName != ''">
|
|
@@ -96,11 +98,13 @@ WHERE
|
96
|
98
|
SELECT
|
97
|
99
|
t.*,
|
98
|
100
|
b.label AS sourceName,
|
99
|
|
- c.person_name as appointmentName
|
|
101
|
+ c.person_name as appointmentName,
|
|
102
|
+ d.label as visitorNum
|
100
|
103
|
FROM
|
101
|
104
|
ta_main_usher_record t
|
102
|
105
|
LEFT JOIN sys_dict b ON t.customer_source = b.id
|
103
|
106
|
LEFT JOIN ta_visitor_appointment c ON t.appointment_id = c.appointment_id
|
|
107
|
+ LEFT JOIN sys_dict d ON d.id = t.person_num
|
104
|
108
|
<where>
|
105
|
109
|
t.status = 1
|
106
|
110
|
<if test="personName !=null and personName != ''">
|