起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1574|回复: 1

[处理中3] 多表查询中的不能显示所有列

[复制链接]

49

主题

110

帖子

300

积分

中级会员

Rank: 3Rank: 3

积分
300
QQ
发表于 2017-10-24 16:36:19 | 显示全部楼层 |阅读模式
t0.*,t1.name  as protypecn,(select valuecn from dictionary where classname='product' and  attributename='unit' and value=t0.unit1) as unit1cn,(select valuecn from dictionary where classname='product' and  attributename='unit' and value=t0.unit2) as unit2cn,(select valuecn from dictionary where classname='product' and  attributename='unit' and value=t0.unit3) as unit3cn,(select valuecn from dictionary where classname='product' and  attributename='unit' and value=t0.unit4) as unit4cn

上面是查询SQL,但是baasdata字段里只看到t0表的字段
发表于 2017-10-24 17:17:33 | 显示全部楼层
你先在 数据库的sql 控制台里面!里面执行一下这个sql语句正常的吗??
如果正常!那你可以自定义action  ,使用java代码通过jdbc去调用这个sql
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2025-7-3 05:28 , Processed in 0.053907 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表