Commit 6b75907c by lijingjing

添加化学试剂接口统计;

parent ae820c00
......@@ -783,13 +783,12 @@
where
s.deleted = 0 and s.type = 0
<if test="null != vo.timeS">
AND e.ctime >= #{vo.timeS}
AND e.entrust_time >= #{vo.timeS}
</if>
<if test="null != vo.timeE">
AND e.ctime &lt;= #{vo.timeE}
AND e.entrust_time &lt;= #{vo.timeE}
</if>
group by
s.name
group by s.name order by s.name
</select>
<!--获取可检测项目统计数据:获取LIMS平台可检测项目统计数据-->
......@@ -806,18 +805,18 @@
<!--获取化验检测完毕任务数量统计数据:获取LIMS平台某段时间内各类物料的化验检测完毕任务数量数据-->
<select id="selectDetectedTasksQuantity" resultType="map">
select
es.name,
count(distinct es.id) "data"
from entrust_sample es
join entrust e on es.entrust_id = e.id and e.deleted = 0
where es.deleted = 0 and es.type = 0 and es.status > 20
s.name,
count(case when s.status > 20 then s.id end) "data"
from entrust_sample s
join entrust e on s.entrust_id = e.id and e.deleted = 0
where s.deleted = 0 and s.type = 0
<if test="null != vo.timeS">
AND e.entrust_time >= #{vo.timeS}
</if>
<if test="null != vo.timeE">
AND e.entrust_time &lt;= #{vo.timeE}
</if>
group by es.name
group by s.name order by s.name
</select>
<!--获取日原辅料检测当前实时数据情况: 获取当天的截止查询时间内原辅料检测各个阶段的数量-->
......@@ -902,4 +901,5 @@
and c.year = #{vo.year}
</if>
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment