|
@@ -287,9 +287,38 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by a.cjsj;
|
|
|
</select>
|
|
|
|
|
|
+ <select id="thirdNucleicAcidDs" resultType="com.ruoyi.system.domain.OdsQssHsjcxx">
|
|
|
+ select sfzhm,xm,sjhm,cjsj,jcdd
|
|
|
+ from ( select sfzhm,xm,sjhm,cjsj,,jcdd
|
|
|
+ from ods_qss_hsjcxx_all
|
|
|
+ where cjsj > #{startTime} and #{endTime}>=cjsj
|
|
|
+ and sjly != '东软系统'
|
|
|
+ and sfzhm in
|
|
|
+ <foreach item="idCard" collection="idCardList" open="(" separator="," close=")">
|
|
|
+ #{idCard}
|
|
|
+ </foreach>
|
|
|
+
|
|
|
+ UNION
|
|
|
+
|
|
|
+ SELECT s.id_card_no as sfzhm,
|
|
|
+ s.user_name as xm,
|
|
|
+ s.user_phone as sjhm,
|
|
|
+ s.collect_datetime as cjsj,
|
|
|
+ s.collect_site_name as jcdd,
|
|
|
+ FROM `tb_whole_testing_sample_921` s
|
|
|
+ where s.create_datetime > #{startTime} and #{endTime}>=s.create_datetime
|
|
|
+ and s.id_card_no in
|
|
|
+ <foreach item="idCard" collection="idCardList" open="(" separator="," close=")">
|
|
|
+ #{idCard}
|
|
|
+ </foreach>
|
|
|
+ ) a
|
|
|
+ order by a.cjsj;
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
<select id="thirdNucleicAcid65" resultType="com.ruoyi.system.domain.OdsQssHsjcxx">
|
|
|
- select sfzhm,xm,sjhm,cjsj,jgcjss,jcdd,jcjg
|
|
|
- from ( select sfzhm,xm,sjhm,cjsj,jgcjss,jcdd,jcjg
|
|
|
+ select sfzhm,xm,sjhm,cjsj,jcdd
|
|
|
+ from ( select sfzhm,xm,sjhm,cjsj,jcdd
|
|
|
from ods_qss_hsjcxx_all
|
|
|
where cjsj > #{startTime} and #{endTime}>=cjsj
|
|
|
and sjly != '东软系统'
|
|
@@ -301,11 +330,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
s.user_name as xm,
|
|
|
s.user_phone as sjhm,
|
|
|
s.collect_datetime as cjsj,
|
|
|
- testing_datetime as jgcjsj,
|
|
|
- s.collect_site_name as jcdd,
|
|
|
- sign_name as jcjg
|
|
|
+ s.collect_site_name as jcdd
|
|
|
FROM `tb_whole_testing_sample_921` s
|
|
|
- LEFT JOIN tb_whole_testing_result_921 r on s.id = r.id
|
|
|
where s.collect_datetime > #{startTime} and #{endTime}>=s.collect_datetime
|
|
|
and SUBSTRING(s.id_card_no, 1,2) = '65')a
|
|
|
order by a.cjsj;
|
|
@@ -323,5 +349,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
|
|
|
-
|
|
|
</mapper>
|