From 9ccc8bd3a53160a40cf60f14e5867f6ce9f6c58f Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期五, 26 十二月 2025 16:49:15 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override
---
north-glass-erp/src/main/resources/mapper/sd/ProductDetailMapper.xml | 42 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/src/main/resources/mapper/sd/ProductDetailMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/ProductDetailMapper.xml
new file mode 100644
index 0000000..055ac8e
--- /dev/null
+++ b/north-glass-erp/src/main/resources/mapper/sd/ProductDetailMapper.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.example.erp.mapper.sd.ProductDetailMapper">
+ <select id="getGlassDetailList">
+ select * from product_detail where prod_id = #{productId} and detail_type = 'glass'
+ </select>
+
+ <insert id="insertList">
+ insert into product_detail (
+ prod_id, sort_num, glass_sort, detail_type, detail, glass_group, process,separation
+ )
+ values
+ <foreach collection ="getProductDetails" item="ProductDetail" separator =",">
+ (
+ #{ProductDetail.prodId},
+ #{ProductDetail.sortNum},
+ #{ProductDetail.glassSort},
+ #{ProductDetail.detailType},
+ #{ProductDetail.detail},
+ #{ProductDetail.glassGroup},
+ #{ProductDetail.process},
+ #{ProductDetail.separation}
+ )
+ </foreach>
+ </insert>
+
+ <select id="getGlassNameByGroup">
+ SELECT GROUP_CONCAT(detail SEPARATOR '+')
+ from sd.product_detail
+ where prod_id = #{productId}
+ and glass_sort >= #{minTechnologyNumberByGroup}
+ and glass_sort >= #{minTechnologyNumberByGroup}
+ </select>
+
+ <select id="getGlassName">
+ SELECT GROUP_CONCAT(detail SEPARATOR '+')
+ from sd.product_detail
+ where prod_id = #{productId} and detail_type='glass'
+ </select>
+</mapper>
\ No newline at end of file
--
Gitblit v1.8.0