|
@@ -311,21 +311,27 @@
|
311
|
311
|
|
312
|
312
|
<select id="selectTaFaceParentId" parameterType="java.lang.Integer" resultMap="BaseResultMap" >
|
313
|
313
|
select
|
314
|
|
- <include refid="Base_Column_List" />
|
|
314
|
+ <include refid="Base_Column_List" />
|
315
|
315
|
from ta_user
|
316
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
316
|
+ where 1=1
|
317
|
317
|
<if test="otherUserID != null" >
|
318
|
|
- and parent_id = #{otherUserID}
|
|
318
|
+ and id = #{otherUserID,jdbcType=INTEGER}
|
319
|
319
|
</if>
|
320
|
|
-
|
|
320
|
+ <if test="id != null" >
|
|
321
|
+ and parent_id = #{id}
|
|
322
|
+ </if>
|
|
323
|
+ limit 1
|
321
|
324
|
</select>
|
322
|
325
|
|
323
|
|
- <select id="getByLoginName" parameterType="com.community.huiju.model.TaUser" resultMap="BaseResultMap" >
|
|
326
|
+ <select id="getByLoginName" parameterType="java.lang.Integer" resultMap="BaseResultMap" >
|
324
|
327
|
select
|
325
|
328
|
<include refid="Base_Column_List" />
|
326
|
329
|
from ta_user
|
327
|
330
|
where community_id = #{communityId,jdbcType=INTEGER}
|
328
|
|
- and login_name = #{phone ,jdbcType=VARCHAR}
|
|
331
|
+ <if test="otherUserID != null" >
|
|
332
|
+ and login_name = #{phone}
|
|
333
|
+ </if>
|
|
334
|
+
|
329
|
335
|
</select>
|
330
|
336
|
|
331
|
337
|
</mapper>
|