| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.runzhixing.dao.interf.GetCheckInfoInterface">
- <resultMap id="cylinder" type="com.runzhixing.bean.Cylinder1011">
- <result column="cylinderType" property="CYLINDERTYPE"/>
- <result column="productNo" property="PRODUCTNO"/>
- <result column="productDate" property="PRODUCTDATE"/>
- <result column="yearLimit" property="YEARLIMIT"/>
- <result column="startUseDate" property="STARTUSEDATE"/>
- <result column="checkDate" property="CHECKDATE"/>
- <result column="checkState" property="CHECKSTATE"/>
- <result column="nextCheckDate" property="NEXTCHECKDATE"/>
- <result column="weight" property="WEIGHT"/>
- <result column="vol" property="VOL"/>
- <result column="thickNess" property="THICKNESS"/>
- <result column="press" property="PRESS"/>
- <result column="tagNo" property="TAGNO"/>
- <result column="tagUid" property="TAGUID"/>
- <result column="car_guid" property="carGuid"/>
- <result column="cylinderNo" property="cylinderNo"/>
- </resultMap>
- <resultMap id="car" type="com.runzhixing.bean.Car1011">
- <result column="DISTRICTNO" property="DISTRICTNO"/>
- <result column="REGNO" property="REGNO"/>
- <result column="CARNO" property="CARNO"/>
- <result column="PLATETYPE" property="PLATETYPE"/>
- <result column="APPTYPE" property="APPTYPE"/>
- <result column="CARUNIT" property="CARUNIT"/>
- <result column="ADDR" property="ADDR"/>
- </resultMap>
- <select id="getCylinder" parameterType="com.runzhixing.bean.Cylinder1014" resultMap="cylinder">
- select
- t.cylinderType,
- t.productNo,
- t.productDate,
- t.yearLimit,
- t.startUseDate,
- t.checkDate,
- t.checkState,
- t.nextCheckDate,
- t.weight,
- t.vol,
- t.thickNess,
- t.press,
- t.tagNo,
- t.tagUid,
- t.car_guid,
- t.cylinderNo
- from
- tb_cylinder t
- join tb_car t1 on t1.car_guid = t.car_guid
- <where>
- <if test="priCode != null and !"".equals(priCode.trim())">
- and substr(t1.DISTRICTNO,1,length(#{priCode})) = #{priCode}
- </if>
- <if test="uid != null and !"".equals(uid.trim())">
- and t.tagUid = #{uid}
- </if>
- <if test="carno != null and !"".equals(carno.trim())">
- and t1.carNo = #{carno}
- </if>
- <if test="PLATETYPE != -1">
- and t1.platetype = #{PLATETYPE}
- </if>
- </where>
- order by t.installDate DESC
- </select>
- <select id="getCar" parameterType="String" resultMap="car">
- select
- t.DISTRICTNO,
- t.REGNO,
- t.CARNO,
- t.PLATETYPE,
- t.APPTYPE,
- t.CARUNIT,
- t.ADDR
- from
- tb_car t
- <where>
- t.car_guid = #{carGuid}
- </where>
- </select>
-
- <select id="getCarByCarNo" parameterType="com.runzhixing.bean.Car1011" resultMap="car">
- select
- t.DISTRICTNO,
- t.REGNO,
- t.CARNO,
- t.PLATETYPE,
- t.APPTYPE,
- t.CARUNIT,
- t.ADDR
- from
- tb_car t
- <where>
- t.CARNO = #{CARNO} and t.platetype = #{PLATETYPE}
- <if test="REGNO != null and !"".equals(REGNO.trim())">
- and t.REGNO = #{REGNO}
- </if>
-
- </where>
- </select>
- </mapper>
|