|
@@ -25,9 +25,9 @@
|
|
<result column="name" property="name"/>
|
|
<result column="name" property="name"/>
|
|
<result column="profession" property="profession"/>
|
|
<result column="profession" property="profession"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
-
|
|
|
|
|
|
+
|
|
<sql id="queryPersonWhereExpression">
|
|
<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 != ''">
|
|
<if test="depId != null and depId != ''">
|
|
and w.dep_id = #{depId}
|
|
and w.dep_id = #{depId}
|
|
</if>
|
|
</if>
|