Comments (6)
F12看传参,应该是前端给截取错了
from jimureport.
sql:
select tmp1.busDeptName as '中心',count(tmp1.emplId) as '中心总人数',
tmp3.courseNum as '应学课程数据',
sum(if(tmp2.isLook>0,1,0)) as '参与人数',
sum(if(tmp2.totalCnt=courseNum,1,0)) as '完成人数'
from
(select post.emplId,post.deptId,busDept.busDeptId ,busDeptName
from post
JOIN (
select CONCAT(deptId,'') deptId,CONCAT(deptId,'') as busDeptId,descr as busDeptName from dept_node dn where setId=10000 and deptId in (1000000027, 1000000028, 1000000031, 1000000033, 1000000118, 1000000124, 1000000138, 1000000164, 1000000174, 1000000179, 1000000184, 1000000185, 1000000186) and effStatus='A'
union all
select CONCAT(deptId,'') deptId,dn.node2 as busDeptId,node2Descr as busDeptName from dept_node dn where setId=10000 and node2 in ('1000000027', '1000000028', '1000000031', '1000000033', '1000000118', '1000000124', '1000000138', '1000000164', '1000000174', '1000000179', '1000000184', '1000000185', '1000000186') and effStatus='A'
union all
select CONCAT(deptId,'') deptId,dn.node3 as busDeptId ,node3Descr as busDeptName from dept_node dn where setId=10000 and node3 in ('1000000027', '1000000028', '1000000031', '1000000033', '1000000118', '1000000124', '1000000138', '1000000164', '1000000174', '1000000179', '1000000184', '1000000185', '1000000186') and effStatus='A'
union all
select CONCAT(deptId,'')deptId,dn.node4 as busDeptId,node4Descr as busDeptName from dept_node dn where setId=10000 and node4 in ('1000000027', '1000000028', '1000000031', '1000000033', '1000000118', '1000000124', '1000000138', '1000000164', '1000000174', '1000000179', '1000000184', '1000000185', '1000000186') and effStatus='A'
) busDept on post.deptId=busDept.deptId
where post.setidDept='10000' and hrStatus='A')tmp1
LEFT JOIN
( select a.emplId,a.emplName,a.setId,a.deptId,
sum(if(a.sectionCount=a.lookCnt,1,0)) totalCnt,
if(a.isLook>0,1,0) isLook
from
(
select user
.id userId,user
.emplId,user
.emplName,user
.setId,user.deptId,
cs.sectionCount,
sum(if(cr.watchFullState=1,1,0)) lookCnt,
sum(if(cr.id is not null,1,0)) isLook
from
course cs
LEFT JOIN course_record cr on cs.id=cr.courseId and cr.state=1
LEFT JOIN user
on user
.id=cr.userId
where cs.id in (select home_label_link.relationId from home_label
LEFT JOIN home_label_link on home_label_link.labelId=home_label.id and home_label_link.state=1
where ownCity='10000' and contentType=0)
and user
.userType=2 and user
.setId=10000
GROUP BY userid,cs.id) a
GROUP BY a.userId ) tmp2 on tmp1.emplId=CONCAT(tmp2.emplId,'')
LEFT JOIN (select count(1) courseNum from home_label
LEFT JOIN home_label_link on home_label_link.labelId=home_label.id and home_label_link.state=1
where ownCity='10000' and contentType=0) tmp3 on 1=1
GROUP BY tmp1.busDeptId
后台日志
前端传值
sql: select tmp1.busDeptName as '中心',count(tmp1.emplId) as '中心总人数',
tmp3.courseNum as '应学课程数据',
sum(if(tmp2.isLook>0,1,0)) as '参与人数',
sum(if(tmp2.totalCnt=courseNum,1,0)) as '完成人数'
from
(select post.emplId,post.deptId,busDept.busDeptId ,busDeptName
from post
JOIN (
select CONCAT(deptId,'') deptId,CONCAT(deptId,'') as busDeptId,descr as busDeptName from dept_node dn
from jimureport.
收录,待分析
from jimureport.
已修复 版本1.1.05++发布
from jimureport.
后台也有问题 ,通过where截取数据后sql就有问题了。 比如select * from (select * from b where b.id=123) a
from jimureport.
from jimureport.
Related Issues (20)
- 导出的表格不能进行计算 HOT 1
- 可不可以支持自定义编辑页眉页脚
- 导出的百分比不能进行汇总计算 HOT 1
- MongoDB配置sql,不带条件可以解析,带条件解析错误 HOT 2
- 积木报表问题反馈 HOT 2
- 组合列配置超6列 HOT 3
- 先知道现在的版本支持预览报表居中显示嘛? HOT 2
- 关于免费版最多支持500个数据库表 HOT 1
- jeecg-boot 3.4.4 升级jimu 1.7.4 版本 在登录时登录时报错(Handler dispatch failed; nested exception is java.lang.NoSuchMethodErro) HOT 1
- 能否实现点击图表然后弹出明细报表的功能 HOT 1
- JimuReport1.7.4支持spring boot1.5.6吗
- springboot3集成1.7.3版本,编译运行正常,打包运行报错 HOT 1
- 如何配置查询条件必填 HOT 1
- 日期范围框 默认值 天少个0
- 套打设计器 是否 会支持 类似EXCEL 多页签的模式呢? HOT 1
- 链接测试redis报错 HOT 1
- 积木报表切换日期后出现异常 HOT 3
- 关于老版本bug,新版本功能阉割问题 HOT 1
- 配置的报表偶尔会出现报错情况, 具体见描述
- 积木报表 有两个报表 A报表手动录入的数据 在B报表中可以引用吗 A报表中的数据作为数据源 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jimureport.