| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
- "http://ibatis.apache.org/dtd/sql-map-2.dtd">
- <sqlMap namespace="com.runzhixing.util.interf.PlaceLoader">
- <!--模块配置-->
- <typeAlias alias="station" type="com.runzhixing.util.bean.CNGStation"/>
- <typeAlias alias="machine" type="com.runzhixing.util.bean.CNGMachine"/>
-
- <!-- 查询指定加气站时,需要级联查询该加气站的所有信息(加气机列表、工作人员列表和加气站传输信息) -->
- <resultMap id="stationALL" class="station">
- <result property="id" column="STATIONNO"/>
- <result property="name" column="STATIONNAME"/>
- <result property="placeAB" column="STATIONAB"/>
- <result property="licence" column="LICENCE"/>
- <result property="licenceOrg" column="LICENCEORG"/>
- <result property="licenceDate" column="LICENCEDATE"/>
- <result property="validity" column="VALIDITY"/>
- <result property="stationAddr" column="STATIONADDR"/>
- <result property="manager" column="MANAGER"/>
- <result property="techManager" column="TECHMANA"/>
- <result property="phone" column="PHONE"/>
- <result property="mobile" column="MOBILE"/>
- <result property="fax" column="FAX"/>
- <result property="addr" column="ADDR"/>
- <result property="post" column="POST"/>
- <result property="remark" column="REMARK"/>
- <!-- 级联查询(CNGMachine.xml)该加气站的加气机列表 -->
- <result property="machines" column="stationno"
- select="getCNGMachineListByStationId" />
- <!-- 级联查询(CNGOperator.xml)该加气站的工作人员列表 -->
- <result property="operators" column="stationno"
- select="getOperatorListByStationId" />
- </resultMap>
-
- <!-- 缓存 -->
- <cacheModel id="cache" type ="LRU" readOnly="true" serialize="false">
- <flushInterval hours="24"/>
- <property name="cache-size" value="500" />
- </cacheModel>
-
- <!--Statement配置-->
- <!-- 查询指定加气站-->
- <select id="getCNGStationById" parameterClass="station" resultMap="stationALL" cacheModel="cache">
- <![CDATA[
- select
- STATIONNO,
- STATIONNAME,
- STATIONAB,
- LICENCE,
- LICENCEORG,
- LICENCEDATE,
- VALIDITY,
- STATIONADDR,
- MANAGER,
- TECHMANA,
- PHONE,
- MOBILE,
- FAX,
- ADDR,
- POST,
- REMARK
- from tb_cngstation
- where stationno = #id#
- ]]>
- </select>
- <!-- 查询List -->
- <select id="getCNGStationList" parameterClass="string" resultMap="stationALL" cacheModel="cache">
- <![CDATA[
- select
- STATIONNO,
- STATIONNAME,
- STATIONAB,
- LICENCE,
- LICENCEORG,
- LICENCEDATE,
- VALIDITY,
- STATIONADDR,
- MANAGER,
- TECHMANA,
- PHONE,
- MOBILE,
- FAX,
- ADDR,
- POST,
- REMARK
- from tb_cngstation
- where stationno like '$id$%'
- ]]>
- </select>
-
- </sqlMap>
|