新增明细表
This commit is contained in:
parent
5ad4765d31
commit
b708bcdcfc
@ -50,6 +50,7 @@
|
||||
<file url="file://$PROJECT_DIR$/finereport/xiazuan/6_innovation/7_空间运营出租率明细.sql" dialect="MySQL" />
|
||||
<file url="file://$PROJECT_DIR$/finereport/xiazuan/6_innovation/9_多径回款情况.sql" dialect="MySQL" />
|
||||
<file url="file://$PROJECT_DIR$/finereport/xiazuan/6_innovation/新零售订单明细.sql" dialect="MySQL" />
|
||||
<file url="file://$PROJECT_DIR$/finereport/xiazuan/权责亏损项目明细.sql" dialect="MySQL" />
|
||||
<file url="file://$PROJECT_DIR$/finereport/问题修复/计划到期明细组织架构为空.sql" dialect="MySQL" />
|
||||
<file url="file://$PROJECT_DIR$/finereport/预警/片区预警数据.sql" dialect="MySQL" />
|
||||
<file url="file://$PROJECT_DIR$/finereport/预警/项目预警数据.sql" dialect="MySQL" />
|
||||
|
@ -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}'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user