Commit 92f5b04c by zhu.zewen

可销毁药品列表过滤剩余数量为0的记录

parent e2dfda9c
...@@ -82,6 +82,8 @@ ...@@ -82,6 +82,8 @@
AND s.physic_spec = d.physic_spec AND s.physic_spec = d.physic_spec
AND s.batch_no = d.batch_no AND s.batch_no = d.batch_no
AND s.factory_name = d.factory_name AND s.factory_name = d.factory_name
-- 过滤剩余数量为0的记录
WHERE (IFNULL(s.total_physic_num, 0) - IFNULL(d.total_destroy_num, 0)) > 0
ORDER BY s.physic_name ASC, s.physic_spec ASC, s.factory_name ASC, s.batch_no ASC ORDER BY s.physic_name ASC, s.physic_spec ASC, s.factory_name ASC, s.batch_no ASC
</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 sign in to comment