关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 8503|回复: 2

一个很简单的问题!t:dgCol 如何显示 field属性下的属性值

[复制链接]
发表于 2013-8-15 10:06:52 | 显示全部楼层 |阅读模式
同志们!请问 XXList.jsp 下
   <t:dgCol title="商品类型" field="baseType" ></t:dgCol>

baseType是个entity  里面有个属性name 我怎么让它显示出来
   <t:dgCol title="商品类型" field="baseType.getName()" ></t:dgCol>这种不行

———————————————————————————割————————————————————————————————
自动生成的是这种情况
[img]file:///d:\program files\tencent\qq\users\275901085\image\gzqfzwb]y$@`6isd_z}[1et.jpg[/img]

自动生成的是这种情况

自动生成的是这种情况


——————————————————————————又割————————————————————————————————
对应的public class BaseGoodEntity implements java.io.Serializable {
/**主键*/
private java.lang.String id;
/**商品编号*/
private java.lang.String cid;
/**商品名称*/
private java.lang.String cname;
/**规格*/
private java.lang.String gg;
/**型号*/
private java.lang.String xh;
/**商品类型ID*/
private BaseTypeEntity baseType;
/**克/泡*/
private java.lang.Double kePerPao;
/**泡/罐*/
private java.lang.Double paoPerGuan;
/**基准单位ID*/
private BaseUnitEntity baseUnit;
/**批发价*/
private java.lang.Double pfj;
/**场价市*/
private java.lang.Double scj;
/**成本价*/
private java.lang.Double cbj;
/**预警库存*/
private java.lang.Double yjkc;
/**扣折*/
private java.lang.String zk;
/**是否禁用*/
private java.lang.String sfjy;
/**毛茶成本价*/
private BigDecimal mccbj;
/**净茶成本价*/
private BigDecimal jccbj;
/**湿茶成本价*/
private BigDecimal sccbj;
/**成茶成本价*/
private BigDecimal cccbj;
/**备注*/
private java.lang.String remark;
——————————————————————————再割————————————————————————————————

select
        this_.ID as ID29_2_,
        this_.TYPE as TYPE29_2_,
        this_.UNIT as UNIT29_2_,
        this_.CBJ as CBJ29_2_,
        this_.CCCBJ as CCCBJ29_2_,
        this_.CID as CID29_2_,
        this_.CNAME as CNAME29_2_,
        this_.GG as GG29_2_,
        this_.JCCBJ as JCCBJ29_2_,
        this_.KE_PER_PAO as KE8_29_2_,
        this_.MCCBJ as MCCBJ29_2_,
        this_.PAO_PER_GUAN as PAO10_29_2_,
        this_.PFJ as PFJ29_2_,
        this_.REMARK as REMARK29_2_,
        this_.SCCBJ as SCCBJ29_2_,
        this_.SCJ as SCJ29_2_,
        this_.SFJY as SFJY29_2_,
        this_.XH as XH29_2_,
        this_.YJKC as YJKC29_2_,
        this_.ZK as ZK29_2_,
        basetypeen2_.ID as ID27_0_,
        basetypeen2_.NAME as NAME27_0_,
        baseuniten3_.ID as ID28_1_,
        baseuniten3_.NAME as NAME28_1_
    from
        b_goods_copy this_
    left outer join
        b_type basetypeen2_
            on this_.TYPE=basetypeen2_.ID
    left outer join
        b_unit baseuniten3_
            on this_.UNIT=baseuniten3_.ID limit ?

发表于 2013-8-15 10:43:07 | 显示全部楼层
baseType_name
 楼主| 发表于 2013-8-15 10:44:39 | 显示全部楼层
GIN 发表于 2013-8-15 10:43
baseType_name

OK!通过 谢谢
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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