| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?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.CNDStationInterface">
- <!-- 结果集 -->
- <resultMap id="CNGStationTranInfoList" type="com.runzhixing.bean.CNGStation_TranInfo">
- <result column="STATIONNO" property="stationNo"/>
- <result column="STATIONNAME" property="stationName"/>
- <result column="CONNECTTIME" property="connectTime1"/>
- <result column="DISCONNECTTIME" property="disconnectTime1"/>
- <result column="TRANCOUNT" property="tranCount"/>
- <result column="TRANBYTE" property="tranByte"/>
- <result column="STATE" property="state"/>
- <result column="SERVERIP" property="serverIp"/>
- <result column="CLIENTIP" property="clientIp"/>
- </resultMap>
- <!-- sql配置文件 -->
- <select id="getCNGStationTranInfoList" parameterType="com.runzhixing.bean.CNGStation_TranInfo" resultMap="CNGStationTranInfoList">
- select
- t.STATIONNO,
- s.STATIONAB as STATIONNAME,
- t.CONNECTTIME,
- t.DISCONNECTTIME,
- t.TRANCOUNT,
- t.TRANBYTE,
- t.STATE,
- t.SERVERIP,
- t.CLIENTIP
- from TB_TRANINFO t ,TB_CNGSTATION s
- <where>
- <if test="1==1">
- and t.STATIONNO=s.STATIONNO
- </if>
- <!-- <if test="1==1">
- and t.STATIONNO like #{stationNo}
- </if> -->
- <if test="1==1">
- and t.STATIONNO like '%' || #{stationNo} || '%'
- </if>
-
-
- <!--<if test="1==1">
- and t.stationno like CONCAT('%',#{stationNo},'%')
- </if>
- --></where>
- </select>
- </mapper>
|