From b708bcdcfcaf764b1cd75f5614ca50a126bc0be2 Mon Sep 17 00:00:00 2001 From: yangkunan Date: Tue, 24 Sep 2024 13:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=98=8E=E7=BB=86=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/sqldialects.xml | 1 + finereport/xiazuan/权责亏损项目明细.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml index de6baaf..1c139a9 100644 --- a/.idea/sqldialects.xml +++ b/.idea/sqldialects.xml @@ -50,6 +50,7 @@ + diff --git a/finereport/xiazuan/权责亏损项目明细.sql b/finereport/xiazuan/权责亏损项目明细.sql index 51b5063..b2b7e70 100644 --- a/finereport/xiazuan/权责亏损项目明细.sql +++ b/finereport/xiazuan/权责亏损项目明细.sql @@ -3,7 +3,7 @@ with one_to_many AS( a.username AS username -- 用户名 ,SUBSTRING_INDEX(SUBSTRING_INDEX(a.mang_project, ',',b.help_topic_id + 1),',',-1) AS mang_project -- 管理项目名 FROM ods_one_to_many_perm a - JOIN mysql.help_topic b + JOIN mysql.help_topic b on b.help_topic_id < (LENGTH(a.mang_project) - length(replace(a.mang_project,',','')) + 1) WHERE a.username = '${fine_username}' )