From 61f34419e094f2363276d614a960b379cc456482 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期二, 20 五月 2025 10:37:15 +0800 Subject: [PATCH] 业务代码合并 --- inspect-server/src/main/resources/mapper/InsOrderMapper.xml | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/InsOrderMapper.xml b/inspect-server/src/main/resources/mapper/InsOrderMapper.xml index ad38e37..78234d5 100644 --- a/inspect-server/src/main/resources/mapper/InsOrderMapper.xml +++ b/inspect-server/src/main/resources/mapper/InsOrderMapper.xml @@ -455,4 +455,18 @@ GROUP BY io.id,type order by type desc,io.id desc </select> + + <!-- 鏌ヨ褰撳墠鏃堕棿鏄惁鏈夎妫�娴嬮」鐨勬娊鏍疯鍒掕鍗� --> + <select id="selectNotSpotCheckOrder" resultType="java.lang.Integer"> + select count(*) + from (select io.id + from ins_product ip + left join ins_sample is2 on is2.id = ip.ins_sample_id + left join ins_order io on io.id = is2.ins_order_id + left join spot_check_quarter_item scqi on scqi.quarter_item_id = io.quarter_item_id + where io.quarter_item_id is not null + and scqi.spot_check_time between #{startTime} and #{endTime} + and ip.structure_item_parameter_id = #{itmeId} + group by io.id) a + </select> </mapper> -- Gitblit v1.9.3