From 55db6f66c093c07df100cb0e609091030c2a4925 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 24 九月 2026 09:19:20 +0800
Subject: [PATCH] feat(process): 完善检验委托单功能实现绑定和关联管理 - 实现检验委托单与成品下单的绑定功能,包括新增绑定、解除绑定和变更绑定关系 - 添加检验委托单关联状态查询和未绑定委托单筛选功能 - 实现检验委托单绑定日志记录和报告同步功能
---
inspect-server/src/main/resources/mapper/InsUnqualifiedHandlerMapper.xml | 36 +++++++++++++++++++++++++++++++++++-
1 files changed, 35 insertions(+), 1 deletions(-)
diff --git a/inspect-server/src/main/resources/mapper/InsUnqualifiedHandlerMapper.xml b/inspect-server/src/main/resources/mapper/InsUnqualifiedHandlerMapper.xml
index 08eb596..ac9e08d 100644
--- a/inspect-server/src/main/resources/mapper/InsUnqualifiedHandlerMapper.xml
+++ b/inspect-server/src/main/resources/mapper/InsUnqualifiedHandlerMapper.xml
@@ -93,7 +93,11 @@
iuh.request_id,
iuh.file_url,
iuh.headline,
- coa.operation
+ iuh.ins_order_id,
+ iuh.is_old_data,
+ iuh.group_id,
+ coa.operation,
+ iuh.issue_type
from
ins_unqualified_handler iuh
inner join
@@ -161,4 +165,34 @@
and operation != '鎶勯��'
group by co.node_name
</select>
+ <select id="findByGroupId" resultType="com.ruoyi.inspect.vo.UnqualifiedHandlerVO">
+ select
+ iuh.id as handler_id,
+ iuh.no,
+ iuh.headline,
+ iuh.material_name,
+ GROUP_CONCAT(iuh.production_batch SEPARATOR '銆�') AS production_batch,
+ SUM(iuh.cargo_quantity) AS cargo_quantity,
+ iuh.buy_unit_meas,
+ iuh.specs_models,
+ iiq.supplier_name,
+ iuh.inspect_time,
+ iuh.feedback_user,
+ iuh.feedback_time,
+ iuh.classification,
+ iuh.off_grade_ascription,
+ iuh.unqualified_desc,
+ iuh.inventory_quantity_id,
+ iuh.request_id,
+ iuh.oa_state,
+ iuh.file_url,
+ iuh.group_id
+ from
+ ins_unqualified_handler iuh
+ inner join
+ ifs_inventory_quantity iiq on iuh.inventory_quantity_id = iiq.id
+ where iuh.group_id=#{groupId}
+ group by iuh.group_id
+ limit 1
+ </select>
</mapper>
--
Gitblit v1.9.3