| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655 |
- <?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.AuthorityRegionInterface">
- <!-- 结果集 -->
- <resultMap id="regionList" type="com.runzhixing.bean.AuthorityRegionPlace">
- <result column="ID" property="id"/>
- <result column="NAME" property="name"/>
- <result column="PLACEAB" property="placeAB"/>
- <result column="CARPREFIX" property="carprefix"/>
- </resultMap>
-
- <resultMap id="cityList" type="com.runzhixing.bean.CityPlace">
- <result property="cprovinceNo" column="CPROVINCENO"/>
- <result property="id" column="CID"/>
- <result property="name" column="CNAME"/>
- <result property="placeab" column="CPLACEAB"/>
- <result property="carPrefix" column="CCARPREFIX"/>
- <result property="areaCode" column="CAREACODE"/>
- </resultMap>
-
-
- <resultMap id="countryList" type="com.runzhixing.bean.CountryPlace">
- <result property="provinceNO" column="YPROVINCENO"/>
- <result property="cityNO" column="YCITYNO"/>
- <result property="name" column="YNAME"/>
- <result property="id" column="YID"/>
- <result property="placeAB" column="YPLACEAB"/>
- </resultMap>
-
-
- <!-- 查询指定加气站时,需要级联查询该加气站的所有信息(加气机列表、工作人员列表和加气站传输信息) -->
- <resultMap id="stationALL" type="com.runzhixing.bean.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="licenceDate1" column="LICENCEDATE"/>
- <result property="validity1" 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"/>
-
- </resultMap>
-
- <resultMap id="machineMap" type="com.runzhixing.bean.Machine">
- <result property="stationNo" column="stationno"/>
- <result property="machineNo" column="machineno"/>
- <result property="type" column="type"/>
- <result property="manu" column="manu"/>
- <result property="gunNum" column="gunnum"/>
- <result property="opType" column="optype"/>
- <result property="state" column="state"/>
- <result property="gundir" column="gundir"/>
- </resultMap>
-
-
- <resultMap id="resultMap" type="com.runzhixing.bean.CNGOperator">
- <result property="stationNo" column="stationno"/>
- <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"/>
- <result property="profileno" column="profileno"/>
- </resultMap>
-
-
- <resultMap id="dataMap" type="com.runzhixing.bean.CNGdata">
- <result property="stationNo" column="stationno"/>
- <result property="machineNo" column="machineno"/>
- <result property="gunNo" column="gunno"/>
- <result property="operatorNo" column="operatorno"/>
- <result property="state" column="state"/>
- <result property="operTime1" column="opertime"/>
- <result property="endTime" column="endtime"/>
- <result property="carNo" column="carno"/>
- <result property="appType" column="apptype"/>
- <result property="turnOverType" column="turnovertype"/>
- <result property="plateType" column="platetype" />
-
-
- </resultMap>
-
- <resultMap id="worktimeMap" type="com.runzhixing.bean.WorkTimeBean">
- <result property="starttime" column="starttime"/>
- <result property="endtime" column="endtime"/>
-
-
- </resultMap>
-
-
-
-
- <resultMap id="OperatorMap" type="com.runzhixing.bean.CNGOperator1">
- <result property="stationNo" column="stationno"/>
- <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"/>
- <result property="profileno" column="profileno"/>
-
- </resultMap>
-
-
-
-
-
-
- <resultMap type="com.runzhixing.bean.DynamicattemptMap" id="dynamicattemptMap">
- <result property="tmstationno" column="tmstationno"/>
- <result property="tmmachineno" column="tmmachineno"/>
- <result property="tmtype" column="tmtype"/>
- <result property="tmmanu" column="tmmanu"/>
- <result property="tmgunnum" column="tmgunnum"/>
- <result property="tmoptype" column="tmoptype"/>
- <result property="tmstate" column="tmstate"/>
- <result property="tmgundir" column="tmgundir"/>
- <result property="media" column="media"/>
- <collection property="tbcngstationdyn" javaType="java.util.List" resultMap="tbcngstationdyn"/>
- </resultMap>
- <resultMap type="com.runzhixing.bean.DynamicattemptMap1" id="tbcngstationdyn">
- <result property="tsdstationno" column="tsdstationno"/>
- <result property="tsdmachineno" column="tsdmachineno"/>
- <result property="tsdgunno" column="tsdgunno"/>
- <result property="tsdoperatorno" column="tsdoperatorno"/>
- <result property="tsdstate" column="tsdstate"/>
- <result property="tsdopertime" column="tsdopertime"/>
- <result property="tsdendtime" column="tsdendtime"/>
- <result property="tsdcarno" column="tsdcarno"/>
- <result property="tsdapptype" column="tsdapptype"/>
- <result property="tsdturnovertype" column="tsdturnovertype"/>
- <result property="tsdplatetype" column="tsdplatetype" />
- <collection property="tbcngoperatorduty" javaType="java.util.List" resultMap="tbcngoperatorduty"/>
- </resultMap>
- <resultMap type="com.runzhixing.bean.DynamicattemptMap2" id="tbcngoperatorduty">
- <result property="todstarttime" column="todstarttime"/>
- <result property="todendtime" column="todendtime"/>
- <collection property="tbcngoperator" javaType="java.util.List" resultMap="tbcngoperator"/>
- </resultMap>
- <resultMap type="com.runzhixing.bean.DynamicattemptMap3" id="tbcngoperator">
- <result property="tostationno" column="tostationno"/>
- <result property="tooperatorno" column="tooperatorno"/>
- <result property="toname" column="toname"/>
- <result property="toidno" column="toidno"/>
- <result property="tolicence" column="tolicence"/>
- <result property="tolicenceorg" column="tolicenceorg"/>
- <result property="tolicencedate" column="tolicencedate"/>
- <result property="tovalidity" column="tovalidity"/>
- <result property="tosex" column="tosex"/>
- </resultMap>
- <select id="getDynamicattempt" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="dynamicattemptMap">
- select
- tm.STATIONNO as TMSTATIONNO,
- tm.MACHINENO as TMMACHINENO,
- tm.TYPE as TMTYPE,
- tm.MANU as TMMANU,
- tm.GUNNUM as TMGUNNUM,
- tm.OPTYPE as TMOPTYPE,
- tm.STATE as TMSTATE,
- tm.GUNDIR as TMGUNDIR,
- tm.MEDIA,
-
- tsd.STATIONNO as TSDSTATIONNO,
- tsd.MACHINENO as TSDMACHINENO,
- tsd.GUNNO as TSDGUNNO,
- tsd.OPERATORNO as TSDOPERATORNO,
- tsd.STATE as TSDSTATE,
- tsd.OPERTIME as TSDOPERTIME,
- tsd.ENDTIME as TSDENDTIME,
- tsd.CARNO as TSDCARNO,
- tsd.APPTYPE as TSDAPPTYPE,
- tsd.TURNOVERTYPE as TSDTURNOVERTYPE,
- tsd.PLATETYPE as TSDPLATETYPE,
-
- tod.STARTTIME as TODSTARTTIME,
- tod.ENDTIME as TODENDTIME,
-
- top.STATIONNO as TOSTATION,
- top.OPERATORNO as TOOPERATORNO,
- top.NAME as TONAME,
- top.IDNO as TOIDNO,
- top.LICENCE as TOLICENCE,
- top.LICENCEORG as TOLICENCEORG,
- top.LICENCEDATE as TOLICENCEDATE,
- top.VALIDITY as TOVALIDITY,
- top.SEX as TOSEX
-
- from tb_cngmachine tm
-
- LEFT JOIN
- tb_cngstation_dyn tsd
- on
- tsd.STATIONNO = tm.STATIONNO
- and
- tsd.MACHINENO = tm.MACHINENO
-
- left JOIN
- tb_cngoperator_duty tod
- on
- tod.STATIONNO = tsd.STATIONNO
- and
- tod.MACHINENO = tsd.MACHINENO
- and
- tod.GUNNO = tsd.GUNNO
- and
- tod.OPERATORNO = tsd.OPERATORNO
-
- left JOIN
- tb_cngoperator top
- on
- top.OPERATORNO = tsd.OPERATORNO
-
-
- where tm.STATIONNO = #{cpstring1}
-
-
- </select>
-
-
- <!-- sql配置文件 开始-->
- <!-- 只知道省id,查询省市县,sql配置文件 开始-->
- <!-- 根据省id查询省名 -->
- <!-- <select id="getProvinceList" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="regionList">
- select
- t.PROVINCENO as ID,
- t.PROVINCENAME as NAME,
- t.PROVINCEAB as PLACEAB,
- t.CARPREFIX as CARPREFIX
- from TD_PROVINCE t
- <where>
- <if test="cpstring1 != null and !"".equals(cpstring1.trim())">
- and t.PROVINCENO = #{cpstring1}
- </if>
- </where>
- </select>
- -->
-
-
-
- <select id="getProvinceList" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="regionList">
- select
- t.PROVINCENO as ID,
- t.PROVINCENAME as NAME,
- t.PROVINCEAB as PLACEAB,
- t.CARPREFIX as CARPREFIX
- from TD_PROVINCE t
- <where>
- <if test="cpstring1 != null and !"".equals(cpstring1.trim())">
- and t.PROVINCENO = #{cpstring1}
- </if>
- </where>
- </select>
-
-
-
- <resultMap id="privilegeList" type="com.runzhixing.bean.AuthorityRegionPlace">
- <result column="ID" property="id"/>
- <result column="NAME" property="name"/>
- <result column="PLACEAB" property="placeAB"/>
- <result column="CARPREFIX" property="carprefix"/>
- <collection property="cityPlace" javaType="java.util.List" resultMap="cityResult"/>
- </resultMap>
- <resultMap id="cityResult" type="com.runzhixing.bean.CityPlace">
- <result property="cprovinceNo" column="CPROVINCENO"/>
- <result property="id" column="CID"/>
- <result property="name" column="CNAME"/>
- <result property="placeab" column="CPLACEAB"/>
- <result property="carPrefix" column="CCARPREFIX"/>
- <result property="areaCode" column="CAREACODE"/>
- <collection property="subPlaceList" javaType="java.util.List" resultMap="countryResult"/>
- </resultMap>
- <resultMap id="countryResult" type="com.runzhixing.bean.CountryPlace">
- <result property="provinceNO" column="YPROVINCENO"/>
- <result property="cityNO" column="YCITYNO"/>
- <result property="name" column="YNAME"/>
- <result property="id" column="YID"/>
- <result property="placeAB" column="YPLACEAB"/>
- <collection property="staion" javaType="java.util.List" resultMap="staionResult"/>
- </resultMap>
-
- <resultMap id="staionResult" type="com.runzhixing.bean.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="licenceDate1" column="LICENCEDATE"/>
- <result property="validity1" 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"/>
- </resultMap>
-
-
-
- <!-- 权限信息为2个长度 -->
- <select id="getPrivilege" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="privilegeList">
-
- select
- tp.PROVINCENO as ID,
- tp.PROVINCENAME as NAME,
- tp.PROVINCEAB as PLACEAB,
- tp.CARPREFIX as CARPREFIX,
-
- tc.PROVINCENO as CPROVINCENO,
- tc.CITYNO as CID,
- tc.CITYNAME as CNAME,
- tc.CITYAB as CPLACEAB,
- tc.CARPREFIX as CCARPREFIX,
- tc.AREACODE as CAREACODE,
-
- tu.PROVINCENO as YPROVINCENO,
- tu.CITYNO as YCITYNO,
- tu.COUNTYNAME as YNAME,
- tu.COUNTYNO as YID,
- tu.COUNTYAB as YPLACEAB
- <!--
- ts.STATIONNO,
- ts.STATIONNAME,
- ts.STATIONAB,
- ts.LICENCE,
- ts.LICENCEORG,
- ts.LICENCEDATE,
- ts.VALIDITY,
- ts.STATIONADDR,
- ts.MANAGER,
- ts.TECHMANA,
- ts.PHONE,
- ts.MOBILE,
- ts.FAX,
- ts.ADDR,
- ts.POST,
- ts.REMARK
- -->
- FROM TD_PROVINCE tp
-
- left join TD_CITY tc on tc.PROVINCENO = tp.PROVINCENO
- join TD_COUNTY tu on tu.PROVINCENO= tc.PROVINCENO and tu.CITYNO = tc.CITYNO
- <!--join tb_cngstation ts on ts.STATIONNO like '' || #{cpstring1}+tc.CITYNO+tu.COUNTYNO || '%' -->
- where tp.PROVINCENO = #{cpstring1}
- </select>
- <!-- 权限信息为4个长度 -->
- <select id="getPrivilege4" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="privilegeList">
-
- select
- tp.PROVINCENO as ID,
- tp.PROVINCENAME as NAME,
- tp.PROVINCEAB as PLACEAB,
- tp.CARPREFIX as CARPREFIX,
-
- tc.PROVINCENO as CPROVINCENO,
- tc.CITYNO as CID,
- tc.CITYNAME as CNAME,
- tc.CITYAB as CPLACEAB,
- tc.CARPREFIX as CCARPREFIX,
- tc.AREACODE as CAREACODE,
-
- tu.PROVINCENO as YPROVINCENO,
- tu.CITYNO as YCITYNO,
- tu.COUNTYNAME as YNAME,
- tu.COUNTYNO as YID,
- tu.COUNTYAB as YPLACEAB
- FROM TD_PROVINCE tp
-
- left join TD_CITY tc on tc.PROVINCENO = tp.PROVINCENO
- join TD_COUNTY tu on tu.PROVINCENO= tc.PROVINCENO and tu.CITYNO = tc.CITYNO
- where tp.PROVINCENO = #{cpstring1} and tc.CITYNO = #{cpstring2}
- </select>
-
- <!-- 权限信息为6个长度 -->
- <select id="getPrivilege6" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="privilegeList">
-
- select
- tp.PROVINCENO as ID,
- tp.PROVINCENAME as NAME,
- tp.PROVINCEAB as PLACEAB,
- tp.CARPREFIX as CARPREFIX,
-
- tc.PROVINCENO as CPROVINCENO,
- tc.CITYNO as CID,
- tc.CITYNAME as CNAME,
- tc.CITYAB as CPLACEAB,
- tc.CARPREFIX as CCARPREFIX,
- tc.AREACODE as CAREACODE,
-
- tu.PROVINCENO as YPROVINCENO,
- tu.CITYNO as YCITYNO,
- tu.COUNTYNAME as YNAME,
- tu.COUNTYNO as YID,
- tu.COUNTYAB as YPLACEAB
- FROM TD_PROVINCE tp
-
- left join TD_CITY tc on tc.PROVINCENO = tp.PROVINCENO
- join TD_COUNTY tu on tu.PROVINCENO= tc.PROVINCENO and tu.CITYNO = tc.CITYNO
- where tp.PROVINCENO = #{cpstring1} and tc.CITYNO = #{cpstring2} and tu.COUNTYNO = #{cpstring3}
- </select>
-
- <!-- 根据省id查询所有市名 -->
-
- <select id="getCityListByPid" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="cityList">
- select
- c.PROVINCENO as CPROVINCENO,
- c.CITYNO as CID,
- c.CITYNAME as CNAME,
- c.CITYAB as CPLACEAB,
- c.CARPREFIX as CCARPREFIX,
- c.AREACODE as CAREACODE
- from TD_CITY c
- <where>
- <if test="cpstring1 != null and !"".equals(cpstring1.trim())">
- and c.PROVINCENO = #{cpstring1}
- </if>
- order by c.CITYNO
- </where>
- </select>
-
- <!-- 根据省id查询所有市名 -->
-
- <select id="getCityListByPCityid" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="cityList">
- select
- c.PROVINCENO as CPROVINCENO,
- c.CITYNO as CID,
- c.CITYNAME as CNAME,
- c.CITYAB as CPLACEAB,
- c.CARPREFIX as CCARPREFIX,
- c.AREACODE as CAREACODE
- from TD_CITY c
- <where>
- <if test="cpstring1 != null and !"".equals(cpstring1.trim())">
- and c.PROVINCENO = #{cpstring1}
- </if>
- <if test="cpstring2 != null and !"".equals(cpstring2.trim())">
- and c.CITYNO = #{cpstring2}
- </if>
- order by c.CITYNO
- </where>
- </select>
- <!-- 只知道省id,查询省市县,sql配置文件结束 -->
-
- <!-- 知道省id,市id,查询省市县,sql配置文件开始 -->
- <select id="getCountryListbyPCid" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="countryList">
- select
- u.PROVINCENO as YPROVINCENO,
- u.CITYNO as YCITYNO,
- u.COUNTYNAME as YNAME,
- u.COUNTYNO as YID,
- u.COUNTYAB as YPLACEAB
- from TD_COUNTY u
- <where>
- <if test="cpstring1 != null and !"".equals(cpstring1.trim())">
- and u.PROVINCENO = #{cpstring1}
- </if>
- <if test="cpstring2 != null and !"".equals(cpstring2.trim())">
- and u.CITYNO = #{cpstring2}
- </if>
- order by u.PROVINCENO,u.CITYNO,u.COUNTYNO
- </where>
- </select>
-
-
-
-
-
- <!-- 知道省id,市id,查询省市县,sql配置文件结束 -->
-
- <!-- 知道省id,市id,县id查询省市县,sql配置文件开始 -->
-
- <!-- 知道省id,市id,县id查询省市县,sql配置文件结束 -->
-
-
-
- <!-- 查询List -->
- <select id="getCNGStationList" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="stationALL">
- select
- t.STATIONNO,
- t.STATIONNAME,
- t.STATIONAB,
- t.LICENCE,
- t.LICENCEORG,
- t.LICENCEDATE,
- t.VALIDITY,
- t.STATIONADDR,
- t.MANAGER,
- t.TECHMANA,
- t.PHONE,
- t.MOBILE,
- t.FAX,
- t.ADDR,
- t.POST,
- t.REMARK
- from tb_cngstation t
- <where>
- <if test="1==1">
- and t.stationno like '' || #{cpstring3} || '%'
- </if>
-
- </where>
- </select>
-
- <select id="getCNGMachineListByStationId" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="machineMap">
- select
- t.stationno,
- t.machineno,
- t.type,
- t.manu,
- t.gunnum,
- t.optype,
- t.state,
- t.gundir
- from tb_cngmachine t
- <where>
- <if test="1==1">
- and t.STATIONNO = #{cpstring1}
- </if>
- </where>
- </select>
- <select id="getOperatorListByStationId" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="resultMap">
- select
- t.stationno,
- t.operatorno,
- t.name,
- t.idno,
- t.licence,
- t.licenceorg,
- t.licencedate,
- t.validity,
- t.sex,
- t.profileno
- from tb_cngoperator t
- <where>
- <if test="1==1">
- and t.STATIONNO = #{cpstring1}
- </if>
- </where>
- </select>
-
-
- <!-- CNGMachine.xml 级联查询 -->
- <select id="getMachineDynaDataList_Inner" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="dataMap">
- select
- t.stationno,
- t.machineno,
- t.gunno,
- t.operatorno,
- t.state,
- t.opertime,
- t.endtime,
- t.carno,
- t.apptype,
- t.turnovertype,
- t.platetype
- from tb_cngstation_dyn t
- <where>
- <if test="1==1">
- and t.stationno = #{cpstring1}
- </if>
- <if test="1==1">
- and t.machineno = #{cpstring2}
- </if>
- order by t.OPERTIME DESC
- </where>
- </select>
-
-
-
- <!-- tb_cngoperator_duty -->
- <select id="getWorkTime" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="worktimeMap">
- select
- t.starttime,
- t.endtime
- from tb_cngoperator_duty t
- <where>
- <if test="1==1">
- and t.stationno = #{cpstring1}
- </if>
- <if test="1==1">
- and t.machineno = #{cpstring2}
- </if>
- <if test="1==1">
- and t.gunno = #{cpstring3}
- </if>
- <if test="1==1">
- and t.operatorno = #{cpstring4}
- </if>
- order by t.STARTTIME DESC
- </where>
- </select>
-
-
-
-
-
- <!-- 查询(从CNGOperator.xml)这只加气枪的操作人员信息(动态数据) -->
- <select id="getOperatorById1" parameterType="com.runzhixing.util.bean.ConditionParameter" resultMap="OperatorMap">
- select
- t.stationno,
- t.operatorno,
- t.name,
- t.idno,
- t.licence,
- t.licenceorg,
- t.licencedate,
- t.validity,
- t.sex,
- t.profileno
- from tb_cngoperator t
- <where>
- <if test="1==1">
- and t.operatorno = #{cpstring1}
- </if>
- </where>
- </select>
-
-
- <!-- sql配置文件结束 -->
- </mapper>
|