<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPEmapperPUBLIC"-//mybatis.org//DTD Mapper 3.0//EN""http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mappernamespace="com.ws.firestation.mapper.TradeRecordMapper"><selectid="listsome"resultType="com.ws.firestation.entity.po.TradeRecord">
select * from firecab.trade_record
where 1=1
<iftest="goodsName !=null and goodsName !=''">
and goods_name=#{goodsName}
</if><iftest="serverId !=null and serverId !=''">
and server_id=#{serverId}
</if><iftest="cabintCatalogy !=null and cabintCatalogy !=''">
and cabint_catalogy=#{cabintCatalogy}
</if><iftest="Type !=null and Type !=''">
and type=#{Type}
</if><iftest="Tradetime !=null and Tradetime !=''">
and tradetime
</if></select></mapper>