From d193209d79175a0180d7fa4793eb8192811f01bd Mon Sep 17 00:00:00 2001
From: dongdingding <207595406@qq.com>
Date: Fri, 22 Dec 2023 11:17:24 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=81=E4=B8=9A=E6=96=B0?=
=?UTF-8?q?=E8=A1=A8list?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mapper/yingji/BEnterpriseNewMapper.xml | 20 +++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/ruoyi-system/src/main/resources/mapper/yingji/BEnterpriseNewMapper.xml b/ruoyi-system/src/main/resources/mapper/yingji/BEnterpriseNewMapper.xml
index e945584..80fbd8f 100644
--- a/ruoyi-system/src/main/resources/mapper/yingji/BEnterpriseNewMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/yingji/BEnterpriseNewMapper.xml
@@ -67,9 +67,11 @@
a.remark,
a.user_id,
a.dept_id,
+ c.status,
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS isPoint
FROM b_enterprise_new a
LEFT JOIN b_key_enterprise b ON a.enterprise_id = b.ent_code
+ LEFT JOIN b_plan_enterprise c ON a.enterprise_id = c.enterprise_id
) s
and s.enterprise_id = #{enterpriseId}
@@ -100,6 +102,7 @@
and s.user_id = #{userId}and s.dept_id = #{deptId}and s.isPoint = #{isPoint}
+ and s.status = 0
@@ -108,6 +111,7 @@
where id = #{id}
+
insert into b_enterprise_new
@@ -183,4 +187,20 @@
#{id}
+
+ delete from b_enterprise_new
+
+
+
\ No newline at end of file