Browse Source

过滤已离职员工数据

syh 4 years ago
parent
commit
8c6134d950
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/cn/com/ctop/okr/mapper/xml/OkrObjectInfoMapper.xml

+ 2 - 2
src/main/java/cn/com/ctop/okr/mapper/xml/OkrObjectInfoMapper.xml

@@ -107,9 +107,9 @@
         select
             objectInfo.*
         from
-            okr_object_info objectInfo
+        wx_user_info user
         left join wx_user_depart_map map on map.open_id = objectInfo.user_id
-        left join wx_user_info user on user.open_id = objectInfo.user_id
+        left join okr_object_info objectInfo on user.open_id = objectInfo.user_id
         where
             map.depart_id in (select depart_id from wx_user_depart_map where open_id = #{openId} and depart_id not in (19,37))
         and