胡轶钦 5 years ago
parent
commit
93bba38d2f
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/main/resources/mapper/TaMainUsherRecordMapper.xml

+ 4
- 2
src/main/resources/mapper/TaMainUsherRecordMapper.xml View File

57
         SELECT
57
         SELECT
58
         t.*,
58
         t.*,
59
         b.label AS sourceName,
59
         b.label AS sourceName,
60
-        c.person_name as appointmentName,
60
+        e.username as appointmentName,
61
         d.label as visitorNum
61
         d.label as visitorNum
62
         FROM
62
         FROM
63
         ta_main_usher_record t
63
         ta_main_usher_record t
64
         LEFT JOIN sys_dict b ON t.customer_source = b.id
64
         LEFT JOIN sys_dict b ON t.customer_source = b.id
65
         LEFT JOIN ta_visitor_appointment c ON t.appointment_id = c.appointment_id
65
         LEFT JOIN ta_visitor_appointment c ON t.appointment_id = c.appointment_id
66
+        LEFT JOIN sys_user e on e.user_id = c.create_user
66
         LEFT JOIN sys_dict d ON d.id = t.person_num
67
         LEFT JOIN sys_dict d ON d.id = t.person_num
67
         <where>
68
         <where>
68
             t.status = 1
69
             t.status = 1
98
         SELECT
99
         SELECT
99
         t.*,
100
         t.*,
100
         b.label AS sourceName,
101
         b.label AS sourceName,
101
-        c.person_name as appointmentName,
102
+        e.username as appointmentName,
102
         d.label as visitorNum
103
         d.label as visitorNum
103
         FROM
104
         FROM
104
         ta_main_usher_record t
105
         ta_main_usher_record t
105
         LEFT JOIN sys_dict b ON t.customer_source = b.id
106
         LEFT JOIN sys_dict b ON t.customer_source = b.id
106
         LEFT JOIN ta_visitor_appointment c ON t.appointment_id = c.appointment_id
107
         LEFT JOIN ta_visitor_appointment c ON t.appointment_id = c.appointment_id
108
+        LEFT JOIN sys_user e on e.user_id = c.create_user
107
         LEFT JOIN sys_dict d ON d.id = t.person_num
109
         LEFT JOIN sys_dict d ON d.id = t.person_num
108
         <where>
110
         <where>
109
             t.status = 1
111
             t.status = 1