Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同时设置了报表参数查询和报表字段中的查询,报表字段的下拉多选未生效 #2569

Closed
zmSlow opened this issue Apr 22, 2024 · 2 comments

Comments

@zmSlow
Copy link

zmSlow commented Apr 22, 2024

版本号:

1.6.6

问题描述:

同时设置了报表参数查询和报表字段中的查询,报表字段的下拉多选未生效

错误日志&截图:

QQ截图20240422115337
QQ截图111

重现步骤:

SELECT
dp.pro_no,
dp.sname,
faa.sum_allotment_money,
dp.apply_format,
dp.project_type,
dp.bus_manager,
dd1.sname as exe_dept,
dd2.sname as dept_name,
dp.exe_manager,
dp.self_unit,
DATE_FORMAT( dp.allocate_time, '%Y-%m-%d' ) AS allocate_time,
kh.sname AS kh_sname,
cn.sname AS cn_sname,
mk.sname AS mk_sname
FROM
(select project_id,exe_dept_id,bus_dept_id,sum(allotment_money) as sum_allotment_money ,create_date from fact_accountentry_allocation
where is_flag='1' and allocation_type='10162014'
<#if isNotEmpty(select_startTime)>
AND DATE_FORMAT( create_date, '%Y-%m-%d' ) >= '${select_startTime}'
</#if>
<#if isNotEmpty(select_endTime)>
AND DATE_FORMAT( create_date, '%Y-%m-%d' ) <= '${select_endTime}'
</#if>
GROUP BY project_id,exe_dept_id,bus_dept_id ) faa

LEFT JOIN  dimzip_project dp on   faa.project_id=dp.aid and dp.is_current='1'
LEFT JOIN dimzip_dept dd1 on dd1.aid=faa.exe_dept_id and dd1.start_time <= faa.create_date and dd1.end_time>= faa.create_date
LEFT JOIN dimzip_dept dd2 on dd2.aid=faa.bus_dept_id and dd2.start_time <= faa.create_date and dd2.end_time>= faa.create_date
LEFT JOIN dimzip_tenant kh ON kh.aid = dp.client_id  AND kh.start_time <= dp.allocate_time AND kh.end_time >= dp.allocate_time
LEFT JOIN dimzip_channel cn ON cn.aid = dp.channel_id  AND cn.start_time <= dp.allocate_time AND cn.end_time >= dp.allocate_time
LEFT JOIN dimzip_market mk ON mk.aid = dp.market_id  AND mk.start_time <= dp.allocate_time AND mk.end_time >= dp.allocate_time 

ORDER BY dp.allocate_time desc

友情提示(为了提高issue处理效率):

  • 积木报表是一款免费报表产品,功能免费源码不开放;
  • 未按格式要求发帖,会被直接删掉;
  • 请针对问题提供[报表设计配置或SQL脚本]或在官网制作报表示例并提供ID;
  • 针对不好重现的问题,请录制操作视频或详细的重现步骤;
@jeecgos
Copy link
Collaborator

jeecgos commented Apr 26, 2024

cr

@hoperunChen
Copy link

已修复,请等待新版本发布。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants