(三)Context_service.xml


  <!-- 2012-05-22 atip-5 分页服务基础实现类 团长 始 -->
  <bean id="pagedInfoService" parent="simpleDBService" class="com.sinosig.atip.common.simpledb.paged.service.impl.AbstractPagedInfoServImpl" abstract="true"></bean>
  <!-- 2012-05-22 atip-5 分页服务基础实现类 团长 终 -->

  <!-- 2012-05-23 atip-6 简单数据库操作service实现类 团长 始 -->
  <bean id="simpleDBService" parent="BaseManager" class="com.sinosig.atip.common.simpledb.service.impl.DefaultSimpleDBServImpl">  </bean>
  <!-- 2012-05-23 atip-6 简单数据库操作service实现类 团长 终 -->

  <!-- 2012年07月05日 atip-11 内部处罚管理的service实现类 团长 始 -->
  <bean id="innerPunishmentService" parent="pagedInfoService" class="com.sinosig.atip.punishment.service.impl.InnerPunishServiceImpl"></bean>
    <!-- 2012年07月05日 atip-11 内部处罚管理的service实现类 团长 终 -->  


(四)Context_web.xml

  <!-- 2012年07月05日 atip 简单数据库操作的基本action定义 团长 始 -->
  <bean id="simpleDBAction" class="com.sinosig.atip.common.simpledb.web.SimpleDBAction" abstract="true">
    <property name="dbService" ref="simpleDBService" />
  </bean>
  <!-- 2012年07月05日 atip 简单数据库操作的基本action定义 团长 终 -->

  <!-- 2012年07月05日 atip 基本分页action定义 团长 始 -->
  <bean id="pagedAction"    class="com.sinosig.atip.common.simpledb.paged.web.SimplePagedAction"    abstract="true" parent="simpleDBAction"></bean>
  <!-- 2012年07月05日 atip 基本分页action定义 团长 终 -->

  <!-- 2012年07月05日 atip-11 内部处罚管理的action定义 团长 始 -->
  <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>
    <!-- 2012年07月05日 atip-11 内部处罚管理的action定义 团长 终 -->

(五)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
    <![CDATA[
    where rownum    <= #endIndex# ) d where rn > #startIndex#
    ]]>
    </select>