1234567891011121314151617 |
- <?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.cool.bang.modules.oracle.mapper.TradeMapper">
- <!-- 查询交易信息 -->
- <select id="selectFromTrade" resultType="com.cool.bang.modules.oracle.domain.Trade">
- select * from trade
- <where>
- <if test="tradenum != null and tradenum != ''">
- and tradenum = #{tradenum}
- </if>
- <if test="tradestate != null and tradestate != ''">
- and tradestate = #{tradestate}
- </if>
- </where>
- </select>
- </mapper>
|