public class CorpRegiStrationBean extends CreditReportViewBean implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
@SuppressWarnings("unused")
private static Log logger = LogFactory.getLog(RegInfoBean.class);
private String changedate;//变更日期
private String changeproject;//变更项目
private String changebefore;//变更前
private String changeafter;//变更后
/**
* 按输入SBDNum查询有关注册信息对象
* @param SBDNum String
* @return boolean true:success,false:fail
*/
@SuppressWarnings("unchecked")
public List<CorpRegiStrationBean> getCorpRegiStrationBean(ICommonDAOService query, String SBDNum) {
long stime = System.currentTimeMillis();
List<CorpRegiStrationBean> CorpRegiStration = new ArrayList<CorpRegiStrationBean>();
String querySql = WebUtils.getMessage("sql", "corpregistration.sql", new Object[]{SBDNum});
logger.debug("编号:" + SBDNum.toString() + " 查询有关注册变化情况信息: " + querySql.toString());
List<Map> result = query.queryForMapList(querySql.toString());
if (result.size() > 0) {
for (Map map : result) {
CorpRegiStrationBean corpRegiStrationBean = new CorpRegiStrationBean();
corpRegiStrationBean.setChangedate(this.changeType(map.get("changedate")));//变更日期
corpRegiStrationBean.setChangeproject(this.changeType(map.get("changeproject")));//变更项目
corpRegiStrationBean.setChangebefore(this.changeType(map.get("changebefore")));//变更前
corpRegiStrationBean.setChangeafter(this.changeType(map.get("changeafter")));//变更后
CorpRegiStration.add(corpRegiStrationBean);
}
}
logger.debug("编号:" + SBDNum.toString() + " 查询有关注册变化情况信息:"+(System.currentTimeMillis()-stime)+"毫秒");
return CorpRegiStration;
}
public String getChangedate() {
return changedate;
}
public void setChangedate(String changedate) {
this.changedate = changedate;
}
public String getChangeproject() {
return changeproject;
}
public void setChangeproject(String changeproject) {
this.changeproject = changeproject;
}
public String getChangebefore() {
return changebefore;
}
public void setChangebefore(String changebefore) {
this.changebefore = changebefore;
}
public String getChangeafter() {
return changeafter;
}
public void setChangeafter(String changeafter) {
this.changeafter = changeafter;
}
}
定义一个这样的bean可以把需要取到的数据都封装在里面,返回一个List 或者Map或者Result,从前台就可以取到了
定义一个JavaBean,把数据封装到bean里
最新推荐文章于 2022-01-13 23:08:06 发布