Преглед изворни кода

人名搜索不搜索删除的人员

lixing пре 4 година
родитељ
комит
8bd1ba3f0f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      fm-person/src/main/resources/mapper/PersonMapper.xml

+ 1 - 1
fm-person/src/main/resources/mapper/PersonMapper.xml

@@ -120,7 +120,7 @@
         select p.name
         from person p,
         work_resume w
-        where p.id = w.person_id
+        where p.id = w.person_id and p.valid = '1' and w.valid = '1'
         <if test="depId != null and depId != ''">
             and w.dep_id = #{depId}
         </if>