|
@@ -235,6 +235,7 @@
|
|
|
|
|
|
<!-- 获取检验子项信息-->
|
|
<!-- 获取检验子项信息-->
|
|
<select id="getExamineSonInfo" resultType="com.diagbot.dto.ExamineSonInfoDTO">
|
|
<select id="getExamineSonInfo" resultType="com.diagbot.dto.ExamineSonInfoDTO">
|
|
|
|
+ select t.* from(
|
|
SELECT
|
|
SELECT
|
|
t2.item_name AS examineItemName,
|
|
t2.item_name AS examineItemName,
|
|
CONCAT( t2.result, t2.unit ) AS examineItemResult,
|
|
CONCAT( t2.result, t2.unit ) AS examineItemResult,
|
|
@@ -260,21 +261,22 @@
|
|
</if>
|
|
</if>
|
|
<if test="examineSonInfoVO.repNo != null and examineSonInfoVO.repNo != ''">
|
|
<if test="examineSonInfoVO.repNo != null and examineSonInfoVO.repNo != ''">
|
|
and t1.rep_no = #{examineSonInfoVO.repNo}
|
|
and t1.rep_no = #{examineSonInfoVO.repNo}
|
|
- </if>
|
|
|
|
|
|
+ </if>)t
|
|
|
|
+ where 1=1
|
|
<if test="examineSonInfoVO.examineType != null and examineSonInfoVO.examineType == 1">
|
|
<if test="examineSonInfoVO.examineType != null and examineSonInfoVO.examineType == 1">
|
|
<if test="infos != null and infos.size() > 0">
|
|
<if test="infos != null and infos.size() > 0">
|
|
- and info in
|
|
|
|
|
|
+ and t.info in
|
|
<foreach collection="infos" open="(" separator="," close=")" item="item">
|
|
<foreach collection="infos" open="(" separator="," close=")" item="item">
|
|
'${item}'
|
|
'${item}'
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="infos = null || infos.size() == 0">
|
|
<if test="infos = null || infos.size() == 0">
|
|
- and info in('000000ASDQWEZXC@#$%')
|
|
|
|
|
|
+ and t.info in('000000ASDQWEZXC@#$%')
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test="examineSonInfoVO.examineType != null and examineSonInfoVO.examineType == 2 ">
|
|
<if test="examineSonInfoVO.examineType != null and examineSonInfoVO.examineType == 2 ">
|
|
<if test="infos != null and infos.size() > 0">
|
|
<if test="infos != null and infos.size() > 0">
|
|
- and info not in
|
|
|
|
|
|
+ and t.info not in
|
|
<foreach collection="infos" open="(" separator="," close=")" item="item">
|
|
<foreach collection="infos" open="(" separator="," close=")" item="item">
|
|
'${item}'
|
|
'${item}'
|
|
</foreach>
|
|
</foreach>
|