|
@@ -201,7 +201,9 @@
|
|
AND t4.is_deleted = 'N'
|
|
AND t4.is_deleted = 'N'
|
|
AND t5.is_deleted = 'N'
|
|
AND t5.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
- AND t1.lib_type = #{type}
|
|
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ AND t1.lib_type = #{type}
|
|
|
|
+ </if>
|
|
<if test="sexType == 3">
|
|
<if test="sexType == 3">
|
|
and t3.sex_type in ('1','2','3')
|
|
and t3.sex_type in ('1','2','3')
|
|
</if>
|
|
</if>
|
|
@@ -234,7 +236,9 @@
|
|
AND t4.is_deleted = 'N'
|
|
AND t4.is_deleted = 'N'
|
|
AND t5.is_deleted = 'N'
|
|
AND t5.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
- AND t1.lib_type = #{type}
|
|
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ AND t1.lib_type = #{type}
|
|
|
|
+ </if>
|
|
<if test="sexType == 3">
|
|
<if test="sexType == 3">
|
|
and t3.sex_type in ('1','2','3')
|
|
and t3.sex_type in ('1','2','3')
|
|
</if>
|
|
</if>
|
|
@@ -267,7 +271,9 @@
|
|
AND t4.is_deleted = 'N'
|
|
AND t4.is_deleted = 'N'
|
|
AND t5.is_deleted = 'N'
|
|
AND t5.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
- AND t1.lib_type = #{type}
|
|
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ AND t1.lib_type = #{type}
|
|
|
|
+ </if>
|
|
<if test="sexType == 3">
|
|
<if test="sexType == 3">
|
|
and t3.sex_type in ('1','2','3')
|
|
and t3.sex_type in ('1','2','3')
|
|
</if>
|
|
</if>
|
|
@@ -296,7 +302,9 @@
|
|
AND t2.is_deleted = 'N'
|
|
AND t2.is_deleted = 'N'
|
|
AND t3.is_deleted = 'N'
|
|
AND t3.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
- AND t1.lib_type = #{type}
|
|
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ AND t1.lib_type = #{type}
|
|
|
|
+ </if>
|
|
<if test="sexType == 3">
|
|
<if test="sexType == 3">
|
|
and t3.sex_type in ('1','2','3')
|
|
and t3.sex_type in ('1','2','3')
|
|
</if>
|
|
</if>
|
|
@@ -324,7 +332,9 @@
|
|
AND t2.is_deleted = 'N'
|
|
AND t2.is_deleted = 'N'
|
|
AND t3.is_deleted = 'N'
|
|
AND t3.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
- AND t1.lib_type = #{type}
|
|
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ AND t1.lib_type = #{type}
|
|
|
|
+ </if>
|
|
<if test="sexType == 3">
|
|
<if test="sexType == 3">
|
|
and t3.sex_type in ('1','2','3')
|
|
and t3.sex_type in ('1','2','3')
|
|
</if>
|
|
</if>
|
|
@@ -352,7 +362,9 @@
|
|
AND t2.is_deleted = 'N'
|
|
AND t2.is_deleted = 'N'
|
|
AND t3.is_deleted = 'N'
|
|
AND t3.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
AND t6.is_deleted = 'N'
|
|
- AND t1.lib_type = #{type}
|
|
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ AND t1.lib_type = #{type}
|
|
|
|
+ </if>
|
|
<if test="sexType == 3">
|
|
<if test="sexType == 3">
|
|
and t3.sex_type in ('1','2','3')
|
|
and t3.sex_type in ('1','2','3')
|
|
</if>
|
|
</if>
|