Bladeren bron

检验子项bug调整

chengyao 4 jaren geleden
bovenliggende
commit
4cac88c607
1 gewijzigde bestanden met toevoegingen van 6 en 4 verwijderingen
  1. 6 4
      src/main/resources/mapper/MedLisInfoMapper.xml

+ 6 - 4
src/main/resources/mapper/MedLisInfoMapper.xml

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