|

楼主 |
发表于 2013-12-6 11:17:11
|
显示全部楼层
本帖最后由 comeonbabyoh 于 2013-12-6 11:27 编辑
lixin_justep 发表于 2013-12-6 08:47 
用户手册中有对扩展空间的详细描述
只扩展空间就可以了吗?扩展了SA_X那个,我直接复制进来了,但是提示查询报错,如下:
Caused by: com.justep.model.exception.ModelException: 执行ksql:SELECT SA_OPOrg.*,SA_OPPerson as personID,SA_OPPerson.sName as personName,SA_OPPerson.sCode as personCode,SA_OPPerson.sNumb as personNumb,SA_OPPerson.sLoginName as personLoginName,SA_OPPerson.sPassword as personPassword,SA_OPPerson.sMainOrgID as personMainOrgID,SA_OPPerson.sIDCard as personIDCard,SA_OPPerson.sValidState as personValidState,SA_OPPerson.version as personVersion,SA_OPPerson.sSex as personSex,'' as ognName,'' as dptName,'' as posName FROM SA_OPOrg SA_OPOrg optional join SA_OPPerson SA_OPPerson on SA_OPOrg.sPersonID = SA_OPPerson WHERE ((SA_OPOrg.sOrgKindID='psm')) ORDER BY sSequence ASC LIMIT 0, 20时出错!
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.BizData.query(Unknown Source)
at OrgProcedure.queryOPOrg(OrgProcedure.java:57)
... 26 more
Caused by: com.justep.model.exception.ModelException: columns中的列sMail必须包含在select查出列中!
at com.justep.util.Utils.check(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.handleColumns(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.selectSentenceNode(Unknown Source)
at com.justep.system.ksql.parser.QueryParser.start(Unknown Source)
at com.justep.system.ksql.parser.QueryParser.start(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.parse(Unknown Source)
... 31 more
这个执行的KSQL我找到了:
<private name="select" type="String" value="SA_OPOrg.*,SA_OPPerson as personID,SA_OPPerson.sMail as sMail,SA_OPPerson.sOfficePhone as sOfficePhone,SA_OPPerson.sMobilePhone as sMobilePhone,SA_OPPerson.sName as personName,SA_OPPerson.sCode as personCode,SA_OPPerson.sNumb as personNumb,SA_OPPerson.sLoginName as personLoginName,SA_OPPerson.sPassword as personPassword,SA_OPPerson.sMainOrgID as personMainOrgID,SA_OPPerson.sIDCard as personIDCard,SA_OPPerson.sValidState as personValidState,SA_OPPerson.version as personVersion,SA_OPPerson.sSex as personSex,'' as ognName,'' as dptName,'' as posName"/>
貌似明明有sMail的。。
那个页面的概念是读取的/SA/OPM/logic/action/queryOPOrgAction
我改成/SA_X/OPM/logic/action/queryOPOrgAction也不对,这道这个action里面也不知道查询语句怎么写。。 |
|