|
- <action xmlns="http://www.w3.org/1999/xhtml" name="queryB2B_CRD8"
- impl="action:common/CRUD/sqlQuery">
- <private name="condition" type="String"></private>
- <private name="db" type="String">RbTryShopping</private>
- <private name="tableName" type="String">B2B_CRD8</private>
- <private name="sql" type="String">select CRD8.*,MItem.ItemCode as
- ItemCode,MItem.ItemName as ItemName,MItem.ItemTypefCode as
- ItemTypefCode,MItem.EAN11 as EAN11,MItem.ItemType as
- ItemType,MItem.BrandName as BrandName,MItem.MTypeName as
- MTypeName,MItem.isActiveName as isActiveName,MItem.IsActive as
- IsActive
- from B2B_CRD8 CRD8
- join B2B_MItem MItem on CRD8.ItemID =
- MItem.ItemID order by ItemCode asc
- </private>
- <private name="countSql" type="String">select COUNT(CRD8.fID) from
- B2B_CRD8 CRD8
- join B2B_MItem MItem on CRD8.ItemID = MItem.ItemID
- </private>
- <public name="columns" type="Object"></public>
- <public name="filter" type="String"></public>
- <public name="limit" type="Integer"></public>
- <public name="offset" type="Integer"></public>
- <public name="orderBy" type="String"></public>
- <public name="variables" type="Object"></public>
- </action>
复制代码
在baas的xx.service.m里面,我新增了一个action,用于关联查询,但是添加字段的时候为什么不能把关联的字段添加进来?难道要手动一个一个添加吗?action的源代码如上
|
-
-
|