一个很简单的问题!t:dgCol 如何显示 field属性下的属性值
同志们!请问 XXList.jsp 下<t:dgCol title="商品类型" field="baseType" ></t:dgCol>
baseType是个entity里面有个属性name 我怎么让它显示出来
<t:dgCol title="商品类型" field="baseType.getName()" ></t:dgCol>这种不行
———————————————————————————割————————————————————————————————
自动生成的是这种情况
file:///d:\program files\tencent\qq\users\275901085\image\gzqfzwb]y$@`6isd_z}
——————————————————————————又割————————————————————————————————
对应的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 ?
baseType_name GIN 发表于 2013-8-15 10:43 static/image/common/back.gif
baseType_name
OK!通过 谢谢
页:
[1]