lixing 4 năm trước cách đây
mục cha
commit
10ef1e2f60
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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>