<?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.hzya.frame.plugin.cinvoice.lexmis.dao.impl.LexmiscivPlaneticketDaoImpl">
	<resultMap id="get-LexmiscivPlaneticketEntity-result" type="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity">
		<!--无备注 -->
		<result property="PT_ID" column="PT_ID" />
		<!--无备注 -->
		<result property="PT_ETICKETNO" column="PT_ETICKETNO" />
		<!--无备注 -->
		<result property="PT_NO" column="PT_NO" />
		<!--无备注 -->
		<result property="PT_FSTATION" column="PT_FSTATION" />
		<!--无备注 -->
		<result property="PT_TSTATION" column="PT_TSTATION" />
		<!--无备注 -->
		<result property="PT_TSTATION1" column="PT_TSTATION1" />
		<!--无备注 -->
		<result property="PT_TSTATION2" column="PT_TSTATION2" />
		<!--无备注 -->
		<result property="PT_TSTATION3" column="PT_TSTATION3" />
		<!--无备注 -->
		<result property="PT_PRICE" column="PT_PRICE" />
		<!--无备注 -->
		<result property="PT_FUNDSAMOUNT" column="PT_FUNDSAMOUNT" />
		<!--无备注 -->
		<result property="PT_FUELAMOUNT" column="PT_FUELAMOUNT" />
		<!--无备注 -->
		<result property="PT_TAXAMOUNT" column="PT_TAXAMOUNT" />
		<!--无备注 -->
		<result property="PT_AMOUNT" column="PT_AMOUNT" />
		<!--无备注 -->
		<result property="PT_TAXRATE" column="PT_TAXRATE" />
		<!--无备注 -->
		<result property="PT_TAXRATEAMOUNT" column="PT_TAXRATEAMOUNT" />
		<!--无备注 -->
		<result property="PT_NOTAXAMOUNT" column="PT_NOTAXAMOUNT" />
		<!--无备注 -->
		<result property="PT_DATE" column="PT_DATE" />
		<!--无备注 -->
		<result property="PT_TIME" column="PT_TIME" />
		<!--无备注 -->
		<result property="PT_SERIALNO" column="PT_SERIALNO" />
		<!--无备注 -->
		<result property="PT_IDNO" column="PT_IDNO" />
		<!--无备注 -->
		<result property="PT_CUSTOMER" column="PT_CUSTOMER" />
		<!--无备注 -->
		<result property="PT_CARRIER" column="PT_CARRIER" />
		<!--无备注 -->
		<result property="PT_CLASS" column="PT_CLASS" />
		<!--无备注 -->
		<result property="PT_VALIDDATE" column="PT_VALIDDATE" />
		<!--无备注 -->
		<result property="PT_INVALIDDATE" column="PT_INVALIDDATE" />
		<!--无备注 -->
		<result property="PT_ALLOW" column="PT_ALLOW" />
		<!--无备注 -->
		<result property="PT_VALIDCODE" column="PT_VALIDCODE" />
		<!--无备注 -->
		<result property="PT_INSURANCE" column="PT_INSURANCE" />
		<!--无备注 -->
		<result property="PT_SALERCODE" column="PT_SALERCODE" />
		<!--无备注 -->
		<result property="PT_SALERNAME" column="PT_SALERNAME" />
		<!--无备注 -->
		<result property="PT_MAKEDATE" column="PT_MAKEDATE" />
		<!--无备注 -->
		<result property="PT_KEY" column="PT_KEY" />
		<!--无备注 -->
		<result property="PT_COUNT" column="PT_COUNT" />
		<!--无备注 -->
		<result property="PT_DATETIME" column="PT_DATETIME" />
		<!--无备注 -->
		<result property="PT_EDATETIME" column="PT_EDATETIME" />
		<!--无备注 -->
		<result property="PT_INTERNATIONALFLAG" column="PT_INTERNATIONALFLAG" />
		<!--无备注 -->
		<result property="PT_MARKDESC" column="PT_MARKDESC" />
		<!--无备注 -->
		<result property="PT_GPNUMBER" column="PT_GPNUMBER" />
		<!--无备注 -->
		<result property="PT_ISSUINGSTATE" column="PT_ISSUINGSTATE" />
		<!--无备注 -->
		<result property="PT_FPHM" column="PT_FPHM" />
		<!--无备注 -->
		<result property="PT_PROMPTINFO" column="PT_PROMPTINFO" />
		<!--无备注 -->
		<result property="PT_BUYERNAME" column="PT_BUYERNAME" />
		<!--无备注 -->
		<result property="PT_BUYERTAXNO" column="PT_BUYERTAXNO" />
		<!--无备注 -->
		<result property="PT_ORIGINALNUMBER" column="PT_ORIGINALNUMBER" />
		<!--无备注 -->
		<result property="PT_RUSHREDREASON" column="PT_RUSHREDREASON" />
		<!--无备注 -->
		<result property="PT_ELECTRONICMARK" column="PT_ELECTRONICMARK" />
	</resultMap>

	<sql id="LexmiscivPlaneticketEntity_Base_Column_List">
		PT_ID,
		PT_ETICKETNO,
		PT_NO,
		PT_FSTATION,
		PT_TSTATION,
		PT_TSTATION1,
		PT_TSTATION2,
		PT_TSTATION3,
		PT_PRICE,
		PT_FUNDSAMOUNT,
		PT_FUELAMOUNT,
		PT_TAXAMOUNT,
		PT_AMOUNT,
		PT_TAXRATE,
		PT_TAXRATEAMOUNT,
		PT_NOTAXAMOUNT,
		PT_DATE,
		PT_TIME,
		PT_SERIALNO,
		PT_IDNO,
		PT_CUSTOMER,
		PT_CARRIER,
		PT_CLASS,
		PT_VALIDDATE,
		PT_INVALIDDATE,
		PT_ALLOW,
		PT_VALIDCODE,
		PT_INSURANCE,
		PT_SALERCODE,
		PT_SALERNAME,
		PT_MAKEDATE,
		PT_KEY,
		PT_COUNT,
		PT_DATETIME,
		PT_EDATETIME,
		PT_INTERNATIONALFLAG,
		PT_MARKDESC,
		PT_GPNUMBER,
		PT_ISSUINGSTATE,
		PT_FPHM,
		PT_PROMPTINFO,
		PT_BUYERNAME,
		PT_BUYERTAXNO,
		PT_ORIGINALNUMBER,
		PT_RUSHREDREASON,
		PT_ELECTRONICMARK
	</sql>

	<!--通过ID获取数据 -->
	<select id="entity_get" resultMap="get-LexmiscivPlaneticketEntity-result">
		select
		<include refid="LexmiscivPlaneticketEntity_Base_Column_List" />
		from LEXMISCIV_PLANETICKET where id = #{ id }
	</select>

	<!-- 查询 采用==查询 -->
	<select id="entity_list_base" resultMap="get-LexmiscivPlaneticketEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity">
		select
		<include refid="LexmiscivPlaneticketEntity_Base_Column_List" />
		from LEXMISCIV_PLANETICKET
		<trim prefix="where" prefixOverrides="and">
			<if test="PT_ID != null ">PT_ID=#{PT_ID}</if>
			<if test="PT_ETICKETNO != null and PT_ETICKETNO !='' "> and PT_ETICKETNO = #{PT_ETICKETNO}</if>
			<if test="PT_NO != null and PT_NO !='' "> and PT_NO = #{PT_NO}</if>
			<if test="PT_FSTATION != null and PT_FSTATION !='' "> and PT_FSTATION = #{PT_FSTATION}</if>
			<if test="PT_TSTATION != null and PT_TSTATION !='' "> and PT_TSTATION = #{PT_TSTATION}</if>
			<if test="PT_TSTATION1 != null and PT_TSTATION1 !='' "> and PT_TSTATION1 = #{PT_TSTATION1}</if>
			<if test="PT_TSTATION2 != null and PT_TSTATION2 !='' "> and PT_TSTATION2 = #{PT_TSTATION2}</if>
			<if test="PT_TSTATION3 != null and PT_TSTATION3 !='' "> and PT_TSTATION3 = #{PT_TSTATION3}</if>
			<if test="PT_PRICE != null "> and PT_PRICE = #{PT_PRICE}</if>
			<if test="PT_FUNDSAMOUNT != null and PT_FUNDSAMOUNT !='' "> and PT_FUNDSAMOUNT = #{PT_FUNDSAMOUNT}</if>
			<if test="PT_FUELAMOUNT != null and PT_FUELAMOUNT !='' "> and PT_FUELAMOUNT = #{PT_FUELAMOUNT}</if>
			<if test="PT_TAXAMOUNT != null and PT_TAXAMOUNT !='' "> and PT_TAXAMOUNT = #{PT_TAXAMOUNT}</if>
			<if test="PT_AMOUNT != null "> and PT_AMOUNT = #{PT_AMOUNT}</if>
			<if test="PT_TAXRATE != null and PT_TAXRATE !='' "> and PT_TAXRATE = #{PT_TAXRATE}</if>
			<if test="PT_TAXRATEAMOUNT != null "> and PT_TAXRATEAMOUNT = #{PT_TAXRATEAMOUNT}</if>
			<if test="PT_NOTAXAMOUNT != null "> and PT_NOTAXAMOUNT = #{PT_NOTAXAMOUNT}</if>
			<if test="PT_DATE != null "> and PT_DATE = #{PT_DATE}</if>
			<if test="PT_TIME != null and PT_TIME !='' "> and PT_TIME = #{PT_TIME}</if>
			<if test="PT_SERIALNO != null and PT_SERIALNO !='' "> and PT_SERIALNO = #{PT_SERIALNO}</if>
			<if test="PT_IDNO != null and PT_IDNO !='' "> and PT_IDNO = #{PT_IDNO}</if>
			<if test="PT_CUSTOMER != null and PT_CUSTOMER !='' "> and PT_CUSTOMER = #{PT_CUSTOMER}</if>
			<if test="PT_CARRIER != null and PT_CARRIER !='' "> and PT_CARRIER = #{PT_CARRIER}</if>
			<if test="PT_CLASS != null and PT_CLASS !='' "> and PT_CLASS = #{PT_CLASS}</if>
			<if test="PT_VALIDDATE != null and PT_VALIDDATE !='' "> and PT_VALIDDATE = #{PT_VALIDDATE}</if>
			<if test="PT_INVALIDDATE != null and PT_INVALIDDATE !='' "> and PT_INVALIDDATE = #{PT_INVALIDDATE}</if>
			<if test="PT_ALLOW != null and PT_ALLOW !='' "> and PT_ALLOW = #{PT_ALLOW}</if>
			<if test="PT_VALIDCODE != null and PT_VALIDCODE !='' "> and PT_VALIDCODE = #{PT_VALIDCODE}</if>
			<if test="PT_INSURANCE != null and PT_INSURANCE !='' "> and PT_INSURANCE = #{PT_INSURANCE}</if>
			<if test="PT_SALERCODE != null and PT_SALERCODE !='' "> and PT_SALERCODE = #{PT_SALERCODE}</if>
			<if test="PT_SALERNAME != null and PT_SALERNAME !='' "> and PT_SALERNAME = #{PT_SALERNAME}</if>
			<if test="PT_MAKEDATE != null and PT_MAKEDATE !='' "> and PT_MAKEDATE = #{PT_MAKEDATE}</if>
			<if test="PT_KEY != null and PT_KEY !='' "> and PT_KEY = #{PT_KEY}</if>
			<if test="PT_COUNT != null "> and PT_COUNT = #{PT_COUNT}</if>
			<if test="PT_DATETIME != null and PT_DATETIME !='' "> and PT_DATETIME = #{PT_DATETIME}</if>
			<if test="PT_EDATETIME != null and PT_EDATETIME !='' "> and PT_EDATETIME = #{PT_EDATETIME}</if>
			<if test="PT_INTERNATIONALFLAG != null and PT_INTERNATIONALFLAG !='' "> and PT_INTERNATIONALFLAG = #{PT_INTERNATIONALFLAG}</if>
			<if test="PT_MARKDESC != null and PT_MARKDESC !='' "> and PT_MARKDESC = #{PT_MARKDESC}</if>
			<if test="PT_GPNUMBER != null and PT_GPNUMBER !='' "> and PT_GPNUMBER = #{PT_GPNUMBER}</if>
			<if test="PT_ISSUINGSTATE != null and PT_ISSUINGSTATE !='' "> and PT_ISSUINGSTATE = #{PT_ISSUINGSTATE}</if>
			<if test="PT_FPHM != null and PT_FPHM !='' "> and PT_FPHM = #{PT_FPHM}</if>
			<if test="PT_PROMPTINFO != null and PT_PROMPTINFO !='' "> and PT_PROMPTINFO = #{PT_PROMPTINFO}</if>
			<if test="PT_BUYERNAME != null and PT_BUYERNAME !='' "> and PT_BUYERNAME = #{PT_BUYERNAME}</if>
			<if test="PT_BUYERTAXNO != null and PT_BUYERTAXNO !='' "> and PT_BUYERTAXNO = #{PT_BUYERTAXNO}</if>
			<if test="PT_ORIGINALNUMBER != null and PT_ORIGINALNUMBER !='' "> and PT_ORIGINALNUMBER = #{PT_ORIGINALNUMBER}</if>
			<if test="PT_RUSHREDREASON != null and PT_RUSHREDREASON !='' "> and PT_RUSHREDREASON = #{PT_RUSHREDREASON}</if>
			<if test="PT_ELECTRONICMARK != null and PT_ELECTRONICMARK !='' "> and PT_ELECTRONICMARK = #{PT_ELECTRONICMARK}</if>

		</trim>
		<if test=" sort =='' "> order by id desc</if>
		<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
	</select>

	<!-- 查询符合条件的数量 -->
	<select id="LexmiscivPlaneticketEntity_count" resultType="Integer" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity">
		select count(1) from LEXMISCIV_PLANETICKET
		<trim prefix="where" prefixOverrides="and">
			<if test="PT_ID != null ">PT_ID = #{PT_ID}</if>
			<if test="PT_ETICKETNO != null and PT_ETICKETNO !='' "> and PT_ETICKETNO = #{PT_ETICKETNO} </if>
			<if test="PT_NO != null and PT_NO !='' "> and PT_NO = #{PT_NO} </if>
			<if test="PT_FSTATION != null and PT_FSTATION !='' "> and PT_FSTATION = #{PT_FSTATION} </if>
			<if test="PT_TSTATION != null and PT_TSTATION !='' "> and PT_TSTATION = #{PT_TSTATION} </if>
			<if test="PT_TSTATION1 != null and PT_TSTATION1 !='' "> and PT_TSTATION1 = #{PT_TSTATION1} </if>
			<if test="PT_TSTATION2 != null and PT_TSTATION2 !='' "> and PT_TSTATION2 = #{PT_TSTATION2} </if>
			<if test="PT_TSTATION3 != null and PT_TSTATION3 !='' "> and PT_TSTATION3 = #{PT_TSTATION3} </if>
			<if test="PT_PRICE != null "> and PT_PRICE = #{PT_PRICE}  </if>
			<if test="PT_FUNDSAMOUNT != null and PT_FUNDSAMOUNT !='' "> and PT_FUNDSAMOUNT = #{PT_FUNDSAMOUNT} </if>
			<if test="PT_FUELAMOUNT != null and PT_FUELAMOUNT !='' "> and PT_FUELAMOUNT = #{PT_FUELAMOUNT} </if>
			<if test="PT_TAXAMOUNT != null and PT_TAXAMOUNT !='' "> and PT_TAXAMOUNT = #{PT_TAXAMOUNT} </if>
			<if test="PT_AMOUNT != null "> and PT_AMOUNT = #{PT_AMOUNT}  </if>
			<if test="PT_TAXRATE != null and PT_TAXRATE !='' "> and PT_TAXRATE = #{PT_TAXRATE} </if>
			<if test="PT_TAXRATEAMOUNT != null "> and PT_TAXRATEAMOUNT = #{PT_TAXRATEAMOUNT}  </if>
			<if test="PT_NOTAXAMOUNT != null "> and PT_NOTAXAMOUNT = #{PT_NOTAXAMOUNT}  </if>
			<if test="PT_DATE != null "> and PT_DATE = #{PT_DATE}  </if>
			<if test="PT_TIME != null and PT_TIME !='' "> and PT_TIME = #{PT_TIME} </if>
			<if test="PT_SERIALNO != null and PT_SERIALNO !='' "> and PT_SERIALNO = #{PT_SERIALNO} </if>
			<if test="PT_IDNO != null and PT_IDNO !='' "> and PT_IDNO = #{PT_IDNO} </if>
			<if test="PT_CUSTOMER != null and PT_CUSTOMER !='' "> and PT_CUSTOMER = #{PT_CUSTOMER} </if>
			<if test="PT_CARRIER != null and PT_CARRIER !='' "> and PT_CARRIER = #{PT_CARRIER} </if>
			<if test="PT_CLASS != null and PT_CLASS !='' "> and PT_CLASS = #{PT_CLASS} </if>
			<if test="PT_VALIDDATE != null and PT_VALIDDATE !='' "> and PT_VALIDDATE = #{PT_VALIDDATE} </if>
			<if test="PT_INVALIDDATE != null and PT_INVALIDDATE !='' "> and PT_INVALIDDATE = #{PT_INVALIDDATE} </if>
			<if test="PT_ALLOW != null and PT_ALLOW !='' "> and PT_ALLOW = #{PT_ALLOW} </if>
			<if test="PT_VALIDCODE != null and PT_VALIDCODE !='' "> and PT_VALIDCODE = #{PT_VALIDCODE} </if>
			<if test="PT_INSURANCE != null and PT_INSURANCE !='' "> and PT_INSURANCE = #{PT_INSURANCE} </if>
			<if test="PT_SALERCODE != null and PT_SALERCODE !='' "> and PT_SALERCODE = #{PT_SALERCODE} </if>
			<if test="PT_SALERNAME != null and PT_SALERNAME !='' "> and PT_SALERNAME = #{PT_SALERNAME} </if>
			<if test="PT_MAKEDATE != null and PT_MAKEDATE !='' "> and PT_MAKEDATE = #{PT_MAKEDATE} </if>
			<if test="PT_KEY != null and PT_KEY !='' "> and PT_KEY = #{PT_KEY} </if>
			<if test="PT_COUNT != null "> and PT_COUNT = #{PT_COUNT}  </if>
			<if test="PT_DATETIME != null and PT_DATETIME !='' "> and PT_DATETIME = #{PT_DATETIME} </if>
			<if test="PT_EDATETIME != null and PT_EDATETIME !='' "> and PT_EDATETIME = #{PT_EDATETIME} </if>
			<if test="PT_INTERNATIONALFLAG != null and PT_INTERNATIONALFLAG !='' "> and PT_INTERNATIONALFLAG = #{PT_INTERNATIONALFLAG} </if>
			<if test="PT_MARKDESC != null and PT_MARKDESC !='' "> and PT_MARKDESC = #{PT_MARKDESC} </if>
			<if test="PT_GPNUMBER != null and PT_GPNUMBER !='' "> and PT_GPNUMBER = #{PT_GPNUMBER} </if>
			<if test="PT_ISSUINGSTATE != null and PT_ISSUINGSTATE !='' "> and PT_ISSUINGSTATE = #{PT_ISSUINGSTATE} </if>
			<if test="PT_FPHM != null and PT_FPHM !='' "> and PT_FPHM = #{PT_FPHM} </if>
			<if test="PT_PROMPTINFO != null and PT_PROMPTINFO !='' "> and PT_PROMPTINFO = #{PT_PROMPTINFO} </if>
			<if test="PT_BUYERNAME != null and PT_BUYERNAME !='' "> and PT_BUYERNAME = #{PT_BUYERNAME} </if>
			<if test="PT_BUYERTAXNO != null and PT_BUYERTAXNO !='' "> and PT_BUYERTAXNO = #{PT_BUYERTAXNO} </if>
			<if test="PT_ORIGINALNUMBER != null and PT_ORIGINALNUMBER !='' "> and PT_ORIGINALNUMBER = #{PT_ORIGINALNUMBER} </if>
			<if test="PT_RUSHREDREASON != null and PT_RUSHREDREASON !='' "> and PT_RUSHREDREASON = #{PT_RUSHREDREASON} </if>
			<if test="PT_ELECTRONICMARK != null and PT_ELECTRONICMARK !='' "> and PT_ELECTRONICMARK = #{PT_ELECTRONICMARK} </if>

		</trim>
		<if test=" sort =='' "> order by id desc</if>
		<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
	</select>

	<!-- 分页查询列表 采用like格式 -->
	<select id="LexmiscivPlaneticketEntity_list_like" resultMap="get-LexmiscivPlaneticketEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity">
		select
		<include refid="LexmiscivPlaneticketEntity_Base_Column_List" />
		from LEXMISCIV_PLANETICKET
		<trim prefix="where" prefixOverrides="and">
			<if test="PT_ID != null ">PT_ID = #{PT_ID}</if>
			<if test="PT_ETICKETNO != null and PT_ETICKETNO !='' "> and PT_ETICKETNO like concat('%',#{PT_ETICKETNO},'%') </if>
			<if test="PT_NO != null and PT_NO !='' "> and PT_NO like concat('%',#{PT_NO},'%') </if>
			<if test="PT_FSTATION != null and PT_FSTATION !='' "> and PT_FSTATION like concat('%',#{PT_FSTATION},'%') </if>
			<if test="PT_TSTATION != null and PT_TSTATION !='' "> and PT_TSTATION like concat('%',#{PT_TSTATION},'%') </if>
			<if test="PT_TSTATION1 != null and PT_TSTATION1 !='' "> and PT_TSTATION1 like concat('%',#{PT_TSTATION1},'%') </if>
			<if test="PT_TSTATION2 != null and PT_TSTATION2 !='' "> and PT_TSTATION2 like concat('%',#{PT_TSTATION2},'%') </if>
			<if test="PT_TSTATION3 != null and PT_TSTATION3 !='' "> and PT_TSTATION3 like concat('%',#{PT_TSTATION3},'%') </if>
			<if test="PT_PRICE != null "> and PT_PRICE = #{PT_PRICE}</if>
			<if test="PT_FUNDSAMOUNT != null and PT_FUNDSAMOUNT !='' "> and PT_FUNDSAMOUNT like concat('%',#{PT_FUNDSAMOUNT},'%') </if>
			<if test="PT_FUELAMOUNT != null and PT_FUELAMOUNT !='' "> and PT_FUELAMOUNT like concat('%',#{PT_FUELAMOUNT},'%') </if>
			<if test="PT_TAXAMOUNT != null and PT_TAXAMOUNT !='' "> and PT_TAXAMOUNT like concat('%',#{PT_TAXAMOUNT},'%') </if>
			<if test="PT_AMOUNT != null "> and PT_AMOUNT = #{PT_AMOUNT}</if>
			<if test="PT_TAXRATE != null and PT_TAXRATE !='' "> and PT_TAXRATE like concat('%',#{PT_TAXRATE},'%') </if>
			<if test="PT_TAXRATEAMOUNT != null "> and PT_TAXRATEAMOUNT = #{PT_TAXRATEAMOUNT}</if>
			<if test="PT_NOTAXAMOUNT != null "> and PT_NOTAXAMOUNT = #{PT_NOTAXAMOUNT}</if>
			<if test="PT_DATE != null and PT_DATE !='' "> and PT_DATE like concat('%',#{PT_DATE},'%') </if>
			<if test="PT_TIME != null and PT_TIME !='' "> and PT_TIME like concat('%',#{PT_TIME},'%') </if>
			<if test="PT_SERIALNO != null and PT_SERIALNO !='' "> and PT_SERIALNO like concat('%',#{PT_SERIALNO},'%') </if>
			<if test="PT_IDNO != null and PT_IDNO !='' "> and PT_IDNO like concat('%',#{PT_IDNO},'%') </if>
			<if test="PT_CUSTOMER != null and PT_CUSTOMER !='' "> and PT_CUSTOMER like concat('%',#{PT_CUSTOMER},'%') </if>
			<if test="PT_CARRIER != null and PT_CARRIER !='' "> and PT_CARRIER like concat('%',#{PT_CARRIER},'%') </if>
			<if test="PT_CLASS != null and PT_CLASS !='' "> and PT_CLASS like concat('%',#{PT_CLASS},'%') </if>
			<if test="PT_VALIDDATE != null and PT_VALIDDATE !='' "> and PT_VALIDDATE like concat('%',#{PT_VALIDDATE},'%') </if>
			<if test="PT_INVALIDDATE != null and PT_INVALIDDATE !='' "> and PT_INVALIDDATE like concat('%',#{PT_INVALIDDATE},'%') </if>
			<if test="PT_ALLOW != null and PT_ALLOW !='' "> and PT_ALLOW like concat('%',#{PT_ALLOW},'%') </if>
			<if test="PT_VALIDCODE != null and PT_VALIDCODE !='' "> and PT_VALIDCODE like concat('%',#{PT_VALIDCODE},'%') </if>
			<if test="PT_INSURANCE != null and PT_INSURANCE !='' "> and PT_INSURANCE like concat('%',#{PT_INSURANCE},'%') </if>
			<if test="PT_SALERCODE != null and PT_SALERCODE !='' "> and PT_SALERCODE like concat('%',#{PT_SALERCODE},'%') </if>
			<if test="PT_SALERNAME != null and PT_SALERNAME !='' "> and PT_SALERNAME like concat('%',#{PT_SALERNAME},'%') </if>
			<if test="PT_MAKEDATE != null and PT_MAKEDATE !='' "> and PT_MAKEDATE like concat('%',#{PT_MAKEDATE},'%') </if>
			<if test="PT_KEY != null and PT_KEY !='' "> and PT_KEY like concat('%',#{PT_KEY},'%') </if>
			<if test="PT_COUNT != null "> and PT_COUNT = #{PT_COUNT}</if>
			<if test="PT_DATETIME != null and PT_DATETIME !='' "> and PT_DATETIME like concat('%',#{PT_DATETIME},'%') </if>
			<if test="PT_EDATETIME != null and PT_EDATETIME !='' "> and PT_EDATETIME like concat('%',#{PT_EDATETIME},'%') </if>
			<if test="PT_INTERNATIONALFLAG != null and PT_INTERNATIONALFLAG !='' "> and PT_INTERNATIONALFLAG like concat('%',#{PT_INTERNATIONALFLAG},'%') </if>
			<if test="PT_MARKDESC != null and PT_MARKDESC !='' "> and PT_MARKDESC like concat('%',#{PT_MARKDESC},'%') </if>
			<if test="PT_GPNUMBER != null and PT_GPNUMBER !='' "> and PT_GPNUMBER like concat('%',#{PT_GPNUMBER},'%') </if>
			<if test="PT_ISSUINGSTATE != null and PT_ISSUINGSTATE !='' "> and PT_ISSUINGSTATE like concat('%',#{PT_ISSUINGSTATE},'%') </if>
			<if test="PT_FPHM != null and PT_FPHM !='' "> and PT_FPHM like concat('%',#{PT_FPHM},'%') </if>
			<if test="PT_PROMPTINFO != null and PT_PROMPTINFO !='' "> and PT_PROMPTINFO like concat('%',#{PT_PROMPTINFO},'%') </if>
			<if test="PT_BUYERNAME != null and PT_BUYERNAME !='' "> and PT_BUYERNAME like concat('%',#{PT_BUYERNAME},'%') </if>
			<if test="PT_BUYERTAXNO != null and PT_BUYERTAXNO !='' "> and PT_BUYERTAXNO like concat('%',#{PT_BUYERTAXNO},'%') </if>
			<if test="PT_ORIGINALNUMBER != null and PT_ORIGINALNUMBER !='' "> and PT_ORIGINALNUMBER like concat('%',#{PT_ORIGINALNUMBER},'%') </if>
			<if test="PT_RUSHREDREASON != null and PT_RUSHREDREASON !='' "> and PT_RUSHREDREASON like concat('%',#{PT_RUSHREDREASON},'%') </if>
			<if test="PT_ELECTRONICMARK != null and PT_ELECTRONICMARK !='' "> and PT_ELECTRONICMARK like concat('%',#{PT_ELECTRONICMARK},'%') </if>

		</trim>
		<if test=" sort =='' "> order by id desc</if>
		<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by  ${sort} ${order}</if>
	</select>

	<!-- 查询列表 字段采用or格式 -->
	<select id="LexmiscivPlaneticketEntity_list_or" resultMap="get-LexmiscivPlaneticketEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity">
		select
		<include refid="LexmiscivPlaneticketEntity_Base_Column_List" />
		from LEXMISCIV_PLANETICKET
		<trim prefix="where" prefixOverrides="or">
			<if test="PT_ID != null ">PT_ID = #{PT_ID}</if>
			<if test="PT_ETICKETNO != null and PT_ETICKETNO !='' "> or PT_ETICKETNO = #{PT_ETICKETNO} </if>
			<if test="PT_NO != null and PT_NO !='' "> or PT_NO = #{PT_NO} </if>
			<if test="PT_FSTATION != null and PT_FSTATION !='' "> or PT_FSTATION = #{PT_FSTATION} </if>
			<if test="PT_TSTATION != null and PT_TSTATION !='' "> or PT_TSTATION = #{PT_TSTATION} </if>
			<if test="PT_TSTATION1 != null and PT_TSTATION1 !='' "> or PT_TSTATION1 = #{PT_TSTATION1} </if>
			<if test="PT_TSTATION2 != null and PT_TSTATION2 !='' "> or PT_TSTATION2 = #{PT_TSTATION2} </if>
			<if test="PT_TSTATION3 != null and PT_TSTATION3 !='' "> or PT_TSTATION3 = #{PT_TSTATION3} </if>
			<if test="PT_PRICE != null "> or PT_PRICE = #{PT_PRICE}</if>
			<if test="PT_FUNDSAMOUNT != null and PT_FUNDSAMOUNT !='' "> or PT_FUNDSAMOUNT = #{PT_FUNDSAMOUNT} </if>
			<if test="PT_FUELAMOUNT != null and PT_FUELAMOUNT !='' "> or PT_FUELAMOUNT = #{PT_FUELAMOUNT} </if>
			<if test="PT_TAXAMOUNT != null and PT_TAXAMOUNT !='' "> or PT_TAXAMOUNT = #{PT_TAXAMOUNT} </if>
			<if test="PT_AMOUNT != null "> or PT_AMOUNT = #{PT_AMOUNT}</if>
			<if test="PT_TAXRATE != null and PT_TAXRATE !='' "> or PT_TAXRATE = #{PT_TAXRATE} </if>
			<if test="PT_TAXRATEAMOUNT != null "> or PT_TAXRATEAMOUNT = #{PT_TAXRATEAMOUNT}</if>
			<if test="PT_NOTAXAMOUNT != null "> or PT_NOTAXAMOUNT = #{PT_NOTAXAMOUNT}</if>
			<if test="PT_DATE != null and PT_DATE !='' "> or PT_DATE = #{PT_DATE} </if>
			<if test="PT_TIME != null and PT_TIME !='' "> or PT_TIME = #{PT_TIME} </if>
			<if test="PT_SERIALNO != null and PT_SERIALNO !='' "> or PT_SERIALNO = #{PT_SERIALNO} </if>
			<if test="PT_IDNO != null and PT_IDNO !='' "> or PT_IDNO = #{PT_IDNO} </if>
			<if test="PT_CUSTOMER != null and PT_CUSTOMER !='' "> or PT_CUSTOMER = #{PT_CUSTOMER} </if>
			<if test="PT_CARRIER != null and PT_CARRIER !='' "> or PT_CARRIER = #{PT_CARRIER} </if>
			<if test="PT_CLASS != null and PT_CLASS !='' "> or PT_CLASS = #{PT_CLASS} </if>
			<if test="PT_VALIDDATE != null and PT_VALIDDATE !='' "> or PT_VALIDDATE = #{PT_VALIDDATE} </if>
			<if test="PT_INVALIDDATE != null and PT_INVALIDDATE !='' "> or PT_INVALIDDATE = #{PT_INVALIDDATE} </if>
			<if test="PT_ALLOW != null and PT_ALLOW !='' "> or PT_ALLOW = #{PT_ALLOW} </if>
			<if test="PT_VALIDCODE != null and PT_VALIDCODE !='' "> or PT_VALIDCODE = #{PT_VALIDCODE} </if>
			<if test="PT_INSURANCE != null and PT_INSURANCE !='' "> or PT_INSURANCE = #{PT_INSURANCE} </if>
			<if test="PT_SALERCODE != null and PT_SALERCODE !='' "> or PT_SALERCODE = #{PT_SALERCODE} </if>
			<if test="PT_SALERNAME != null and PT_SALERNAME !='' "> or PT_SALERNAME = #{PT_SALERNAME} </if>
			<if test="PT_MAKEDATE != null and PT_MAKEDATE !='' "> or PT_MAKEDATE = #{PT_MAKEDATE} </if>
			<if test="PT_KEY != null and PT_KEY !='' "> or PT_KEY = #{PT_KEY} </if>
			<if test="PT_COUNT != null "> or PT_COUNT = #{PT_COUNT}</if>
			<if test="PT_DATETIME != null and PT_DATETIME !='' "> or PT_DATETIME = #{PT_DATETIME} </if>
			<if test="PT_EDATETIME != null and PT_EDATETIME !='' "> or PT_EDATETIME = #{PT_EDATETIME} </if>
			<if test="PT_INTERNATIONALFLAG != null and PT_INTERNATIONALFLAG !='' "> or PT_INTERNATIONALFLAG = #{PT_INTERNATIONALFLAG} </if>
			<if test="PT_MARKDESC != null and PT_MARKDESC !='' "> or PT_MARKDESC = #{PT_MARKDESC} </if>
			<if test="PT_GPNUMBER != null and PT_GPNUMBER !='' "> or PT_GPNUMBER = #{PT_GPNUMBER} </if>
			<if test="PT_ISSUINGSTATE != null and PT_ISSUINGSTATE !='' "> or PT_ISSUINGSTATE = #{PT_ISSUINGSTATE} </if>
			<if test="PT_FPHM != null and PT_FPHM !='' "> or PT_FPHM = #{PT_FPHM} </if>
			<if test="PT_PROMPTINFO != null and PT_PROMPTINFO !='' "> or PT_PROMPTINFO = #{PT_PROMPTINFO} </if>
			<if test="PT_BUYERNAME != null and PT_BUYERNAME !='' "> or PT_BUYERNAME = #{PT_BUYERNAME} </if>
			<if test="PT_BUYERTAXNO != null and PT_BUYERTAXNO !='' "> or PT_BUYERTAXNO = #{PT_BUYERTAXNO} </if>
			<if test="PT_ORIGINALNUMBER != null and PT_ORIGINALNUMBER !='' "> or PT_ORIGINALNUMBER = #{PT_ORIGINALNUMBER} </if>
			<if test="PT_RUSHREDREASON != null and PT_RUSHREDREASON !='' "> or PT_RUSHREDREASON = #{PT_RUSHREDREASON} </if>
			<if test="PT_ELECTRONICMARK != null and PT_ELECTRONICMARK !='' "> or PT_ELECTRONICMARK = #{PT_ELECTRONICMARK} </if>

		</trim>
		<if test=" sort =='' "> order by id desc</if>
		<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by  ${sort} ${order}</if>
	</select>

</mapper>
