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}' )