davis 发表于 2018-5-9 18:07:23

online报表配置获取到当前登录用户公司编号

online报表配置能否获取到当前登录用户公司编号写在查询条件里,如下所示file:///E:\qqFileRec\1364018274\Image\Group\Image1\~]6{(@VM]UDBK$ND{KAQ93U.pngfile:///E:\qqFileRec\1364018274\Image\Group\Image1\~]6{(@VM]UDBK$ND{KAQ93U.png,sql的查询条件值

应该怎么写?select sys_company_code,erpNumber,cargo_name from jst_order_main where sys_company_code =

davis 发表于 2018-5-9 19:24:38

如下图所示

admin 发表于 2018-5-9 20:00:03

看这个文档
http://jeecg3.mydoc.io/?t=279451
selectfrom table where id = '${abc}'(如果字段为字符串类型,需要带有单引号)

davis 发表于 2018-5-10 11:01:25

admin 发表于 2018-5-9 20:00 static/image/common/back.gif
看这个文档
http://jeecg3.mydoc.io/?t=279451
selectfrom table where id = '${abc}'(如果字段为字符串 ...

select sys_company_code,erpNumber,cargo_name from jst_order_main where sys_company_code ='${sys_company_code}'或者'${sys_org_code}'都不行啊,应该怎样 写的?

e_yuan 发表于 2018-8-1 18:40:04

#{sys_org_code}
页: [1]
查看完整版本: online报表配置获取到当前登录用户公司编号