dingxin il y a 6 ans
Parent
révision
aa3bd54f0a

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaUserMapper.java Voir le fichier

@@ -63,5 +63,5 @@ public interface TaUserMapper {
63 63
      * @param phone
64 64
      * @return
65 65
      */
66
-    TaUser getByLoginName(@Param("id")Integer communityId, @Param("id")String phone);
66
+    TaUser getByLoginName(@Param("communityId")Integer communityId, @Param("phone")String phone);
67 67
 }

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TaUserMapper.xml Voir le fichier

@@ -328,8 +328,8 @@
328 328
     <include refid="Base_Column_List" />
329 329
     from ta_user
330 330
     where community_id = #{communityId,jdbcType=INTEGER}
331
-    <if test="otherUserId != null" >
332
-      and login_name = #{phone}
331
+    <if test="phone != null" >
332
+      and login_name = #{phone,jdbcType=INTEGER}
333 333
     </if>
334 334
 
335 335
   </select>