From 438b6be5ea9ed484b50a45a0f210b80180473491 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期二, 11 二月 2025 11:51:45 +0800
Subject: [PATCH] dnc与mdc部门进行整合 使用Mdc部门进行处理  修改所属部门为所属车间  修改yml文件数据库地址

---
 lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/mapper/xml/ProductDepartmentMapper.xml |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/mapper/xml/ProductDepartmentMapper.xml b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/mapper/xml/ProductDepartmentMapper.xml
index b4e9f99..276521b 100644
--- a/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/mapper/xml/ProductDepartmentMapper.xml
+++ b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/mapper/xml/ProductDepartmentMapper.xml
@@ -1,27 +1,27 @@
 <?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="org.jeecg.modules.dnc.mapper.ProductDepartmentMapper">
-    <select id="getDepartPermsByProductId" resultType="org.jeecg.modules.dnc.ucenter.Department" parameterType="String">
-        select u.depart_id
-        , u.depart_name
-        , u.depart_code
+    <select id="getDepartPermsByProductId" resultType="org.jeecg.modules.system.entity.MdcProduction" parameterType="String">
+        select u.id
+        , u.production_name
         , u.parent_id
-        , u.rank_level
-        , u.priority
-        from sys_department u
+        , u.production_order
+        , u.org_type
+        , org_code
+        from mdc_production u
         inner join
         (select depart_id from nc_product_department where product_id=#{productId}) p
-        on u.depart_id=p.depart_id
+        on u.id=p.depart_id
     </select>
 
-    <select id="getDepartNonPermsByProductId" resultType="org.jeecg.modules.dnc.ucenter.Department" parameterType="String">
-        select u.depart_id
-        , u.depart_name
-        , u.depart_code
-        , u.parent_id
-        , u.rank_level
-        , u.priority
-        from sys_department u
-        where u.depart_id not in (select depart_id from nc_product_department where product_id=#{productId})
+    <select id="getDepartNonPermsByProductId" resultType="org.jeecg.modules.system.entity.MdcProduction" parameterType="String">
+        select u.id
+             , u.production_name
+             , u.parent_id
+             , u.production_order
+             , u.org_type
+             , org_code
+        from mdc_production u
+        where u.id not in (select depart_id from nc_product_department where product_id=#{productId})
     </select>
 </mapper>

--
Gitblit v1.9.3