| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!--
- Copyright 2009-2012 the original author or authors.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.runzhixing.dao.interf.StationInterface">
- <!-- 结果集 -->
- <!-- 查询指定加气站时,需要级联查询该加气站的所有信息(加气机列表、工作人员列表和加气站传输信息) -->
- <resultMap id="stationMap" type="com.runzhixing.bean.InstallStation">
- <result property="id" column="STATIONNO"/>
- <result property="name" column="STATIONNAME"/>
- <result property="licence" column="LICENCE"/>
- <result property="licenceOrg" column="LICENCEORG"/>
- <result property="licenceDate" column="LICENCEDATE"/>
- <result property="validity" column="VALIDITY"/>
- <result property="manager" column="MANAGER"/>
- <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"/>
- </resultMap>
- <resultMap id="resultMap" type="com.runzhixing.bean.InstallStationOperator">
- <result property="operatorNo" column="operatorno"/>
- <result property="name" column="name"/>
- <result property="idNo" column="idno"/>
- <result property="licence" column="licence"/>
- <result property="licenceOrg" column="licenceorg"/>
- <result property="licenceDate" column="licencedate"/>
- <result property="validity" column="validity"/>
- <result property="sex" column="sex"/>
- </resultMap>
- <!-- sql配置文件 -->
- <!-- 查询指定加气站-->
- <select id="getInstallStationById" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="stationMap">
- select
- STATIONNO,
- STATIONNAME,
- LICENCE,
- LICENCEORG,
- LICENCEDATE,
- VALIDITY,
- MANAGER,
- PHONE,
- MOBILE,
- FAX,
- ADDR,
- POST,
- REMARK
- from tb_installstation t
- <where>
- <if test="cpstring1 != null and !"".equals(cpstring1.trim())">
- and t.stationno like '%' || #{cpstring1} || '%'
- </if>
- </where>
-
- </select>
-
-
- <select id="getInstallOperatorListByStationId" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="resultMap">
- select
- t.operatorno,
- t.name,
- t.idno,
- t.licence,
- t.licenceorg,
- t.licencedate,
- t.validity,
- t.sex
- from tb_installoperator t
- <where>
- <if test="cpstring1 != null and !"".equals(cpstring1.trim())">
- and t.stationno = #{cpstring1}
- </if>
- </where>
- </select>
- </mapper>
|