张延森 3 年前
父节点
当前提交
507e723267
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/main/resources/mapper/TaPersonMapper.xml

+ 2
- 2
src/main/resources/mapper/TaPersonMapper.xml 查看文件

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