123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?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.unis.transaction.server.dao.TyHtlytxDao">
-
-
- <select id="getAllHt" resultType="com.unis.transaction.server.entity.tradeplan.TyHtlytx">
- select cc.apcc as apcc,
- cc.wtfmc as ccqymc,
- cc.wtfbm as ccqybm,
- ht.htbh as hth,
- wt.wcsj as jhwcrq,
- ht.htbm as htbm
- from ty_jyht ht
- left join ty_jycc cc on cc.apcc = ht.apcc
- left join ty_jycrkwt wt on cc.wtbm = wt.wtbm
-
- </select>
- <select id="selectList" resultType="com.unis.transaction.server.entity.tradeplan.TyHtlytx">
- select * from ty_htlytx
- <where>
- <if test="orgCode != null and orgCode != ''">
- and orgCode = #{orgCode}
- </if>
- <if test="ccqymc != null and ccqymc != ''">
- and ccqymc like '%'||#{ccqymc}||'%'
- </if>
- <if test="hth != null and hth != ''">
- and hth like '%'||#{hth}||'%'
- </if>
- <if test="ccqyhf != null and ccqyhf != ''">
- and ccqyhf = #{ccqyhf}
- </if>
- <if test="jhwcsjks != null and jhwcsjks != ''">
- and jhwcrq >= to_date(#{jhwcsjks}, 'yyyy-mm-dd')
- </if>
- <if test="jhwcsjjs != null and jhwcsjjs != ''">
- and jhwcrq <= to_date(#{jhwcsjjs}, 'yyyy-mm-dd')
- </if>
- </where>
- </select>
- </mapper>
|