From 53df0151e8f2363d4a110a5f9d6dcbc4229e4f7f Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期一, 01 四月 2024 09:26:50 +0800
Subject: [PATCH] 整合文件

---
 north-glass-erp/src/main/resources/mapper/pp/BasicDataProduce.xml |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/BasicDataProduce.xml b/north-glass-erp/src/main/resources/mapper/pp/BasicDataProduce.xml
index d22495a..55fb770 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/BasicDataProduce.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/BasicDataProduce.xml
@@ -3,6 +3,20 @@
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.example.erp.mapper.pp.BasicDateProduceMapper">
+    <resultMap id="selectBasicDataProduce" type="com.example.erp.entity.pp.BasicDataProduce">
+        <id column="id" property="id"/>
+        <result column="basic_type" property="basicType"/>
+        <result column="basic_name" property="basicName"/>
+        <result column="basic_category" property="basicCategory"/>
+
+
+        <result column="d_basic_type" property="basicData.basicType"/>
+        <result column="d_basic_name" property="basicData.basicName"/>
+        <result column="d_basic_category" property="basicData.basicCategory"/>
+
+
+
+    </resultMap>
     <select id="SelectWorkBasicDeviceMp">
         select
             *
@@ -18,4 +32,12 @@
             basic_data_produce as a
         where a.basic_category=#{process} and a.basic_type='鐝粍'
     </select>
+
+    <select id="SelectWorkBasicTeams"  resultMap="selectBasicDataProduce">
+        select bdp.basic_name ,bd.basic_name as d_basic_name
+        from pp.basic_data_produce bdp
+                 left join sd.basic_data bd on bdp.basic_category = bd.id
+        where bd.basic_name = #{process}
+          and bdp.basic_type = "teamsgroups"
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0