From e1dcac581229d5f345e357132bbd9789d4e7544b Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期四, 05 二月 2026 17:51:22 +0800
Subject: [PATCH] feat(production): 添加图纸编号字段支持
---
src/main/resources/mapper/production/ProductionProductInputMapper.xml | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/production/ProductionProductInputMapper.xml b/src/main/resources/mapper/production/ProductionProductInputMapper.xml
index a885977..a6998e3 100644
--- a/src/main/resources/mapper/production/ProductionProductInputMapper.xml
+++ b/src/main/resources/mapper/production/ProductionProductInputMapper.xml
@@ -15,6 +15,7 @@
pm.model as model,
ppm.product_no as productNo,
p.product_name,
+ pm.drawing_number,
pm.unit
from
production_product_input ppi
@@ -35,5 +36,19 @@
<foreach collection="productMainIds" item="id" open="(" separator="," close=")">
#{id}
</foreach>
+
</delete>
+
+ <select id="selectInputStats" resultType="java.util.Map">
+ SELECT
+ DATE_FORMAT(create_time, '%Y-%m-%d') as date,
+ SUM(quantity) as quantity
+ FROM
+ production_product_input
+ WHERE
+ create_time >= #{startDate}
+ AND create_time <= #{endDate}
+ GROUP BY
+ DATE_FORMAT(create_time, '%Y-%m-%d')
+ </select>
</mapper>
--
Gitblit v1.9.3