ソースを参照

优化 组织关联错误

java110 6 年 前
親
コミット
e38fdc0efe
共有1 個のファイルを変更した、2 個の追加 と 2 個の削除を含む
  1. 2 2
      java110-db/src/main/resources/mapper/user/OrgServiceDaoImplMapper.xml

+ 2 - 2
java110-db/src/main/resources/mapper/user/OrgServiceDaoImplMapper.xml

@@ -113,7 +113,7 @@
         and t.parent_org_id = uo.org_id
         and t.parent_org_id = uo.org_id
         and uo.status_cd = '0'
         and uo.status_cd = '0'
         <if test="staffId != null and staffId !=''">
         <if test="staffId != null and staffId !=''">
-            and uosr.org_id = uo.org_id
+            and uosr.org_id = t.org_id
             and uosr.staff_id = #{staffId}
             and uosr.staff_id = #{staffId}
             and uosr.status_cd = '0'
             and uosr.status_cd = '0'
         </if>
         </if>
@@ -205,7 +205,7 @@
         and t.parent_org_id = uo.org_id
         and t.parent_org_id = uo.org_id
         and uo.status_cd = '0'
         and uo.status_cd = '0'
         <if test="staffId != null and staffId !=''">
         <if test="staffId != null and staffId !=''">
-            and uosr.org_id = uo.org_id
+            and uosr.org_id = t.org_id
             and uosr.staff_id = #{staffId}
             and uosr.staff_id = #{staffId}
             and uosr.status_cd = '0'
             and uosr.status_cd = '0'
         </if>
         </if>