| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?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.SupervisormanagementInterface">
- <!-- 结果集 -->
- <resultMap id="SupervisormanagementList" type="com.runzhixing.bean.CNGStation_TranInfo">
- <result column="STATIONNO" property="stationNo"/>
- <result column="STATIONNAME" property="stationName"/>
- <result column="CONNECTTIME" property="connectTime"/>
- <result column="DISCONNECTTIME" property="disconnectTime"/>
- <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="Supervisormanagement" parameterType="com.runzhixing.bean.page.Page" resultMap="SupervisormanagementList">
- 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 '%'||#{stationNo}||'%'
- </if>
-
- --><!--<if test="1==1">
- and t.stationno like CONCAT('%',#{stationNo},'%')
- </if>
- --></where>
- </select>
- </mapper>
|