(二)Service

public class DissentServiceImpl extends
AbstractPagedInfoServImpl implements IDissentService {
/**
* 分页数据解析方法
*
* @author 团长
* @since 2012-7-25
* @throws 无
* @see com.sinosig.atip.common.simpledb.paged.service.impl.AbstractPagedInfoServImpl#parseMap(java.util.Map)
*
*/

@Override
protected BLDissentModel parseMap(Map map) {
BLDissentModel dissent = new BLDissentModel();
BigDecimal seqNo = (BigDecimal) map.get( "SEQNO");
if ( null != seqNo) {
dissent.setSeqNo(seqNo.intValue());
}
String temp = (String) map.get( "COMPLAINTNO");
if (StringUtils.isNotBlank(temp)) {
dissent.setComplaintNo(temp);
}
Date complaintDate = (Date) map.get( "COMPLAINTDATE");
if (complaintDate != null) {
dissent.setComplaintDate(complaintDate);
}
temp = (String) map.get( "COMPLAINTEDORGANIZATION");
if (StringUtils.isNotBlank(temp)) {
dissent.setComplaintedOrganization(temp);
}
temp = (String) map.get( "COMPLAINTEDORGANIZATIONNAME");
if (StringUtils.isNotBlank(temp)) {
dissent.setComplaintedOrganizationName(temp);
}
temp = (String) map.get( "COMPLAINTEDPERSON");
if (StringUtils.isNotBlank(temp)) {
dissent.setComplaintedPerson(temp);
}
temp = (String) map.get( "COMPLAINTINSUTYPE");
if (StringUtils.isNotBlank(temp)) {
dissent.setComplaintInsuType(temp);
}
temp = (String) map.get( "COMPLAINTCONTENT");
if (StringUtils.isNotBlank(temp)) {
dissent.setComplaintContent(temp);
}
return dissent;
}
}

(三)Context_service.xml


< bean id ="dissentService" parent ="pagedInfoService" class ="com.sinosig.atip.dissent.service.impl.DissentServiceImpl" >
bean >

(四)Context_web.xml


< bean id ="dissentAction" class ="com.sinosig.atip.dissent.web.DissentAction"
scope ="prototype" parent ="pagedAction" >
< property name ="pagedInfoService" ref ="dissentService" />
< property name ="searchPagedListSql" value ="dissent.queryPagedList" />
< property name ="searchTatalCountSql" value ="dissent.queryPagedCount" />
< property name ="searchSingleInfoSql" value ="dissent.querySingleDissentBySeqno" />
< property name ="addSingleInfoSql" value ="dissent.addSingleDissent" />
< property name ="modifySingleInfoSql" value ="dissent.updateSingleDissentBySeqno" />
< property name ="clearSingleInfoSql" value ="dissent.deleteSingleDissentBySeqno" />
bean >