标签:style blog io color sp java for div on
********
1,@Transient
//产品政策详情
public class TZdCpzcXq implements java.io.Serializable {
private TZdCpzc cpzc; //产品政策
@Transient
public TZdCpzc getCpzc() {
return cpzc;
}
public void setCpzc(TZdCpzc cpzc) {
this.cpzc = cpzc;
}
}
public class FyjhAction extends ProjectBaseAction<Object> {
public String list() throws Exception { page=zcxqService.getPage(page, zcxqModel); List<TZdCpzcXq> list=page.getResult(); for(TZdCpzcXq zcxq:list){ TZdCpzc temp=zcService.getById(zcxq.getZcid()); //产品政策 zcxq.setCpzc(temp); } return SUCCESS; }
}
********
标签:style blog io color sp java for div on
原文地址:http://www.cnblogs.com/qingmaple/p/4103354.html