|
@@ -201,8 +201,12 @@
|
|
|
AND t4.is_deleted = 'N'
|
|
|
AND t5.is_deleted = 'N'
|
|
|
AND t6.is_deleted = 'N'
|
|
|
+ AND t2.is_concept = 1
|
|
|
<if test="type != null">
|
|
|
- AND t1.lib_type = #{type}
|
|
|
+ AND t1.lib_type in
|
|
|
+ <foreach item="type" collection="type" open="(" separator="," close=")">
|
|
|
+ #{type}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="sexType == 3">
|
|
|
and t3.sex_type in ('1','2','3')
|
|
@@ -236,8 +240,12 @@
|
|
|
AND t4.is_deleted = 'N'
|
|
|
AND t5.is_deleted = 'N'
|
|
|
AND t6.is_deleted = 'N'
|
|
|
+ AND t2.is_concept = 1
|
|
|
<if test="type != null">
|
|
|
- AND t1.lib_type = #{type}
|
|
|
+ AND t1.lib_type in
|
|
|
+ <foreach item="type" collection="type" open="(" separator="," close=")">
|
|
|
+ #{type}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="sexType == 3">
|
|
|
and t3.sex_type in ('1','2','3')
|
|
@@ -271,8 +279,12 @@
|
|
|
AND t4.is_deleted = 'N'
|
|
|
AND t5.is_deleted = 'N'
|
|
|
AND t6.is_deleted = 'N'
|
|
|
+ AND t2.is_concept = 1
|
|
|
<if test="type != null">
|
|
|
- AND t1.lib_type = #{type}
|
|
|
+ AND t1.lib_type in
|
|
|
+ <foreach item="type" collection="type" open="(" separator="," close=")">
|
|
|
+ #{type}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="sexType == 3">
|
|
|
and t3.sex_type in ('1','2','3')
|
|
@@ -303,7 +315,10 @@
|
|
|
AND t3.is_deleted = 'N'
|
|
|
AND t6.is_deleted = 'N'
|
|
|
<if test="type != null">
|
|
|
- AND t1.lib_type = #{type}
|
|
|
+ AND t1.lib_type in
|
|
|
+ <foreach item="type" collection="type" open="(" separator="," close=")">
|
|
|
+ #{type}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="sexType == 3">
|
|
|
and t3.sex_type in ('1','2','3')
|
|
@@ -333,7 +348,10 @@
|
|
|
AND t3.is_deleted = 'N'
|
|
|
AND t6.is_deleted = 'N'
|
|
|
<if test="type != null">
|
|
|
- AND t1.lib_type = #{type}
|
|
|
+ AND t1.lib_type in
|
|
|
+ <foreach item="type" collection="type" open="(" separator="," close=")">
|
|
|
+ #{type}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="sexType == 3">
|
|
|
and t3.sex_type in ('1','2','3')
|
|
@@ -363,7 +381,10 @@
|
|
|
AND t3.is_deleted = 'N'
|
|
|
AND t6.is_deleted = 'N'
|
|
|
<if test="type != null">
|
|
|
- AND t1.lib_type = #{type}
|
|
|
+ AND t1.lib_type in
|
|
|
+ <foreach item="type" collection="type" open="(" separator="," close=")">
|
|
|
+ #{type}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="sexType == 3">
|
|
|
and t3.sex_type in ('1','2','3')
|