Commit 6b75907c by lijingjing

添加化学试剂接口统计;

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