TradeMapper.xml 675 B

1234567891011121314151617
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.cool.bang.modules.oracle.mapper.TradeMapper">
  4. <!-- 查询交易信息 -->
  5. <select id="selectFromTrade" resultType="com.cool.bang.modules.oracle.domain.Trade">
  6. select * from trade
  7. <where>
  8. <if test="tradenum != null and tradenum != ''">
  9. and tradenum = #{tradenum}
  10. </if>
  11. <if test="tradestate != null and tradestate != ''">
  12. and tradestate = #{tradestate}
  13. </if>
  14. </where>
  15. </select>
  16. </mapper>