|
|
@ -135,8 +135,8 @@ |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<select id="countCase" resultType="java.lang.Integer"> |
|
|
|
select count(*) as nums from t_patient_information tpi |
|
|
|
<select id="countCase" resultType="com.ccsens.tcm.bean.vo.StatisticVo$Shuliang"> |
|
|
|
select DATE_FORMAT(tpi.update_at,'%Y-%d-%m') as shijian,count(*) as nums from t_patient_information tpi |
|
|
|
where tpi.rec_status=0 |
|
|
|
<if test="param.userId!=null and param.userId!=0 "> |
|
|
|
and tpi.user_id=#{param.userId} |
|
|
@ -153,6 +153,7 @@ |
|
|
|
<if test="param.endDate!=null"> |
|
|
|
and tpi.update_at < #{param.endDate} |
|
|
|
</if> |
|
|
|
GROUP BY shijian |
|
|
|
</select> |
|
|
|
<select id="countAnalysis" resultType="com.ccsens.tcm.bean.vo.StatisticVo$SelGroupList"> |
|
|
|
<if test="testQuestionsId!=null and testQuestionsId!=0"> |
|
|
@ -342,4 +343,11 @@ |
|
|
|
and tbs.collect_time=#{collectTime} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<select id="selAllYBS" resultType="com.ccsens.tcm.bean.vo.BiologicalSamplesVo$SelBiologNums"> |
|
|
|
select th.id,th.name,count(*) as nums from t_biological_samples tbs |
|
|
|
left join t_patient_information tpi on tpi.id = tbs.patient_information_id and tpi.rec_status=0 |
|
|
|
left join t_hospital th on th.id=tpi.hospital_id and th.rec_status=0 |
|
|
|
where tbs.rec_status=0 |
|
|
|
group by th.id |
|
|
|
</select> |
|
|
|
</mapper> |