weiximei преди 6 години
родител
ревизия
9dc3e09d11

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/FaceServicelimpl.java Целия файл

@@ -176,7 +176,7 @@ public class FaceServicelimpl implements FaceServiceI {
176 176
      */
177 177
     public ResponseBean getTaFaceParentId(Integer userId,Integer otherUserID){
178 178
        ResponseBean  responseBean= new ResponseBean();
179
-        TaUser user = taUserMapper.selectTaFaceParentId(userId,otherUserID);
179
+         TaUser user = taUserMapper.selectTaFaceParentId(userId,otherUserID);
180 180
         if (null == user){
181 181
             responseBean.addError("您输入的家属或租户ID有误");
182 182
             return responseBean;

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TaUserMapper.xml Целия файл

@@ -313,9 +313,9 @@
313 313
     select
314 314
     <include refid="Base_Column_List" />
315 315
     from ta_user
316
-    where id = #{otherUserID,jdbcType=INTEGER}
316
+    where id = #{id,jdbcType=INTEGER}
317 317
     <if test="otherUserID != null" >
318
-     and parent_id = #{id}
318
+     and parent_id = #{otherUserID}
319 319
     </if>
320 320
 
321 321
   </select>