Просмотр исходного кода

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

lixing 4 лет назад
Родитель
Сommit
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>