lixing 4 年之前
父節點
當前提交
10ef1e2f60
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      fm-person/src/main/resources/mapper/PersonMapper.xml

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

@@ -25,9 +25,9 @@
         <result column="name" property="name"/>
         <result column="profession" property="profession"/>
     </resultMap>
-    
+
     <sql id="queryPersonWhereExpression">
-        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>