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