From affabbd21802dacbf943692912a83e63106670e4 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期二, 22 八月 2023 11:47:55 +0800 Subject: [PATCH] 改动 --- inspection-server/src/main/resources/mapper/InspectionProductMapper.xml | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/inspection-server/src/main/resources/mapper/InspectionProductMapper.xml b/inspection-server/src/main/resources/mapper/InspectionProductMapper.xml index 594632c..a04eeab 100644 --- a/inspection-server/src/main/resources/mapper/InspectionProductMapper.xml +++ b/inspection-server/src/main/resources/mapper/InspectionProductMapper.xml @@ -18,7 +18,23 @@ <!--鏍规嵁妫�楠屾牱鍝乮d浣滃簾妫�楠岄」鐩�--> <update id="updat"> update lims_laboratory.inspection_product - set state=0 - where inspection_material_id=#{id} + set state=0 + where inspection_material_id = #{id} </update> + + <!--璁$畻宸叉楠岄」鐩暟閲�--> + <select id="seleCountInspro" resultType="java.lang.Integer"> + select count(id) + from lims_laboratory.inspection_product + where state = 1 + and test_state in (0, 1) + </select> + + <!--璁$畻鏈楠岄」鐩暟閲�--> + <select id="seleCountUnInspro" resultType="java.lang.Integer"> + select count(id) + from lims_laboratory.inspection_product + where state = 1 + and test_state is null + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3