Explorar o código

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

lixing %!s(int64=4) %!d(string=hai) anos
pai
achega
8bd1ba3f0f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>