Browse Source

修复bug

魏熙美 5 years ago
parent
commit
b20cf07a79

+ 4
- 3
src/main/resources/mapper/TaPersonMapper.xml View File

27
 
27
 
28
     <select id="selectBuildingConsultants" resultType="java.util.HashMap">
28
     <select id="selectBuildingConsultants" resultType="java.util.HashMap">
29
         SELECT
29
         SELECT
30
-            u.user_id AS id,
30
+            t.person_id AS id,
31
             u.user_name,
31
             u.user_name,
32
             u.org_name,
32
             u.org_name,
33
             u.department,
33
             u.department,
131
         t.post,
131
         t.post,
132
         t.tel AS phone,
132
         t.tel AS phone,
133
         t.avatarurl AS avatar,
133
         t.avatarurl AS avatar,
134
-        t.photo
134
+        t.photo,
135
+        u.description as description
135
         FROM
136
         FROM
136
-        ta_person t
137
+        ta_person t left join ta_user u on t.user_id = u.user_id
137
         WHERE
138
         WHERE
138
         t.person_type = #{personType}
139
         t.person_type = #{personType}
139
         AND t.status = #{status}
140
         AND t.status = #{status}

+ 1
- 1
src/main/resources/mapper/TaRecommendCustomerMapper.xml View File

83
             left join ta_channel_person tcp on a.person_id = tcp.person_id
83
             left join ta_channel_person tcp on a.person_id = tcp.person_id
84
             left join ta_channel tc on tc.channel_id = tcp.channel_id
84
             left join ta_channel tc on tc.channel_id = tcp.channel_id
85
         <where>
85
         <where>
86
-            a.person_type = 'estate agent'
86
+            a.person_type in ('estate agent', 'channel agent')
87
             and a.status >0
87
             and a.status >0
88
             <if test="name != null and name !=''">
88
             <if test="name != null and name !=''">
89
                 and a.nickname = #{name}
89
                 and a.nickname = #{name}