张延森 3 anos atrás
pai
commit
507e723267
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      src/main/resources/mapper/TaPersonMapper.xml

+ 2
- 2
src/main/resources/mapper/TaPersonMapper.xml Ver arquivo

@@ -9,7 +9,7 @@
9 9
             t.department,
10 10
             t.post,
11 11
             t.user_id as userId,
12
-            t.tel AS phone,
12
+            IFNULL(u.phone, t.phone) AS phone,
13 13
             t.avatarurl AS avatar,
14 14
             t.photo,
15 15
             u.description as description,
@@ -144,7 +144,7 @@ FROM
144 144
         t.department,
145 145
         t.post,
146 146
         t.user_id as userId,
147
-        t.tel AS phone,
147
+        IFNULL(u.phone, t.phone) AS phone,
148 148
         t.avatarurl AS avatar,
149 149
         t.photo,
150 150
         u.description as description