(三)Context_service.xml


  
   < bean id ="pagedInfoService" parent ="simpleDBService" class ="com.sinosig.atip.common.simpledb.paged.service.impl.AbstractPagedInfoServImpl" abstract ="true" > bean >
  

  
   < bean id ="simpleDBService" parent ="BaseManager" class ="com.sinosig.atip.common.simpledb.service.impl.DefaultSimpleDBServImpl" >   bean >
  

  
   < bean id ="innerPunishmentService" parent ="pagedInfoService" class ="com.sinosig.atip.punishment.service.impl.InnerPunishServiceImpl" > bean >
      


(四)Context_web.xml

  
   < bean id ="simpleDBAction" class ="com.sinosig.atip.common.simpledb.web.SimpleDBAction" abstract ="true" >
     < property name ="dbService" ref ="simpleDBService" />
   bean >
  

  
   < bean id ="pagedAction"     class ="com.sinosig.atip.common.simpledb.paged.web.SimplePagedAction"     abstract ="true" parent ="simpleDBAction" > bean >
  

  
   < bean id ="innerPunishmentAction" class ="com.sinosig.atip.punishment.web.InnerPunishAction" scope ="prototype" parent ="pagedAction" >
     < property name ="dbService" ref ="innerPunishmentService" />
     < property name ="pagedInfoService" ref ="innerPunishmentService" />
     < property name ="searchSingleInfoSql" value="" />
     < property name ="searchInfoListSql" value="" />
     < property name ="addSingleInfoSql" value="" />
     < property name ="modifySingleInfoSql" value="" />
     < property name ="clearSingleInfoSql" value="" />
     < property name ="searchPagedListSql" value ="innerPunish.queryPagedList" /> bean >
    

(五)Paged.xml

   < select id ="paged.selectPagedInfo" parameterClass ="PageInfo"
     resultClass ="java.util.HashMap" >
    select d.* from (select a.*, rownum rn from
    (
     < isEqual property ="selectSql" compareValue ="innerPunish.queryPagedList" >
       < include refid ="innerPunish.queryPagedList" />
     isEqual >
    ) a
        where rownum     < = #endIndex# ) d where rn > #startIndex#
    ]]>
     select >