Przeglądaj źródła

置业顾问列表

魏熙美 5 lat temu
rodzic
commit
62529093bd

+ 1
- 1
src/main/java/com/huiju/estateagents/center/taUser/service/impl/TaUserServiceImpl.java Wyświetl plik

200
 	}
200
 	}
201
 	
201
 	
202
 	@Override
202
 	@Override
203
-	public TaUser addAdminUser(TaUser taUser) throws Exception {
203
+	public TaUser  addAdminUser(TaUser taUser) throws Exception {
204
 		if (StringUtils.isEmpty(taUser.getPhone())) {
204
 		if (StringUtils.isEmpty(taUser.getPhone())) {
205
 			throw new Exception("电话号码不能为空");
205
 			throw new Exception("电话号码不能为空");
206
 		}
206
 		}

+ 3
- 3
src/main/resources/mapper/TaPersonMapper.xml Wyświetl plik

14
             u.description as description
14
             u.description as description
15
         FROM
15
         FROM
16
             ta_person t left join ta_user u on t.user_id = u.user_id
16
             ta_person t left join ta_user u on t.user_id = u.user_id
17
-        LEFT JOIN ta_person_building p ON t.person_id = p.person_id
17
+        LEFT JOIN ta_person_building p ON u.user_id = p.user_id
18
         WHERE
18
         WHERE
19
             t.person_type = #{personType}
19
             t.person_type = #{personType}
20
         AND t.status = #{status}
20
         AND t.status = #{status}
141
         AND t.status = #{status}
141
         AND t.status = #{status}
142
         <if test="personIds != null">
142
         <if test="personIds != null">
143
             and t.person_id in
143
             and t.person_id in
144
-            <foreach collection="personIds" item="personIds" index="index" open="(" close=")" separator=",">
145
-                #{ordersId}
144
+            <foreach collection="personIds" item="item" index="index" open="(" close=")" separator=",">
145
+                #{item}
146
             </foreach>
146
             </foreach>
147
         </if>
147
         </if>
148
         ORDER BY
148
         ORDER BY