Commit 5dd7a974 by zhoujunpeng

资金拆借/头寸调拨入口交易2

parent 7b41f6fa
...@@ -42,80 +42,80 @@ ...@@ -42,80 +42,80 @@
</select> </select>
<!-- 资金调拨_连接cbb表查询--> <!-- 资金调拨_连接cbb表查询-->
<select id="query" resultMap="BaseResultMap" parameterType="java.util.Map"> <!-- <select id="query" resultMap="BaseResultMap" parameterType="java.util.Map">-->
select <include refid="Base_Column_List" /> <!-- select <include refid="Base_Column_List" />-->
from ftd <!-- from ftd-->
join cbb on cbb.objinr = ftd.inr <!-- join cbb on cbb.objinr = ftd.inr-->
where <!-- where-->
<if test=" opndatfrom != null "> <!-- <if test=" opndatfrom != null ">-->
ftd.OPNDAT>=#{opndatfrom,jdbcType=DATE} <!-- ftd.OPNDAT>=#{opndatfrom,jdbcType=DATE}-->
</if> <!-- </if>-->
<if test=" opndatto != null "> <!-- <if test=" opndatto != null ">-->
AND ftd.OPNDAT&lt;=#{opndatto,jdbcType=DATE} <!-- AND ftd.OPNDAT&lt;=#{opndatto,jdbcType=DATE}-->
</if> <!-- </if>-->
<if test=" seaownref != null and seaownref != ''"> <!-- <if test=" seaownref != null and seaownref != ''">-->
AND ftd.OWNREF=#{ seaownref,jdbcType=VARCHAR} <!-- AND ftd.OWNREF=#{ seaownref,jdbcType=VARCHAR}-->
</if> <!-- </if>-->
<if test=" nam != null and nam != ''"> <!-- <if test=" nam != null and nam != ''">-->
AND ftd.NAM=#{ nam,jdbcType=VARCHAR} <!-- AND ftd.NAM=#{ nam,jdbcType=VARCHAR}-->
</if> <!-- </if>-->
<if test=" ownusr != null and ownusr != ''"> <!-- <if test=" ownusr != null and ownusr != ''">-->
AND ftd.ownusr=#{ ownusr,jdbcType=VARCHAR} <!-- AND ftd.ownusr=#{ ownusr,jdbcType=VARCHAR}-->
</if> <!-- </if>-->
<if test=" usr != null and usr != ''"> <!-- <if test=" usr != null and usr != ''">-->
AND ftd.usr=#{ usr,jdbcType=VARCHAR} <!-- AND ftd.usr=#{ usr,jdbcType=VARCHAR}-->
</if> <!-- </if>-->
<if test=" fttyp != null and fttyp != ''"> <!-- <if test=" fttyp != null and fttyp != ''">-->
AND ftd.FTTYP=#{ fttyp,jdbcType=VARCHAR} <!-- AND ftd.FTTYP=#{ fttyp,jdbcType=VARCHAR}-->
</if> <!-- </if>-->
<if test=" gzno != null and gzno != ''"> <!-- <if test=" gzno != null and gzno != ''">-->
AND ftd.gzno=#{ gzno,jdbcType=VARCHAR} <!-- AND ftd.gzno=#{ gzno,jdbcType=VARCHAR}-->
</if> <!-- </if>-->
<if test="cur != null and cur != ''"> <!-- <if test="cur != null and cur != ''">-->
AND cbb.cur = #{cur,jdbcType=VARCHAR} <!-- AND cbb.cur = #{cur,jdbcType=VARCHAR}-->
</if> <!-- </if>-->
<if test=" amtmin != null and amtmin != ''"> <!-- <if test=" amtmin != null and amtmin != ''">-->
AND cbb.amt &gt;=#{amtmin,jdbcType=DECIMAL} <!-- AND cbb.amt &gt;=#{amtmin,jdbcType=DECIMAL}-->
</if> <!-- </if>-->
<if test=" amtmax != null and amtmax != ''"> <!-- <if test=" amtmax != null and amtmax != ''">-->
AND cbb.amt &lt;=#{amtmax,jdbcType=DECIMAL} <!-- AND cbb.amt &lt;=#{amtmax,jdbcType=DECIMAL}-->
</if> <!-- </if>-->
</select>
<!--本地测试-->
<!-- <select id="query" resultMap="BaseResultMap">-->
<!-- select <include refid="Base_Column_List" />-->
<!-- from ftd-->
<!-- where-->
<!-- <if test=" opndatfrom != null ">-->
<!-- ftd.OPNDAT>=#{opndatfrom,jdbcType=DATE}-->
<!-- </if>-->
<!-- <if test=" opndatto != null ">-->
<!-- AND ftd.OPNDAT&lt;=#{opndatto,jdbcType=DATE}-->
<!-- </if>-->
<!-- <if test=" seaownref != null and seaownref != ''">-->
<!-- AND ftd.OWNREF=#{ seaownref,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- <if test=" nam != null and nam != ''">-->
<!-- AND ftd.NAM=#{ nam,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- <if test=" ownusr != null and ownusr != ''">-->
<!-- AND ftd.ownusr=#{ ownusr,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- <if test=" usr != null and usr != ''">-->
<!-- AND ftd.usr=#{ usr,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- <if test=" fttyp != null and fttyp != ''">-->
<!-- AND ftd.FTTYP=#{ fttyp,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- <if test=" gzno != null and gzno != ''">-->
<!-- AND ftd.gzno=#{ gzno,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- </select>--> <!-- </select>-->
<!--本地测试-->
<select id="query" resultMap="BaseResultMap">
select <include refid="Base_Column_List" />
from ftd
where
<if test=" opndatfrom != null ">
ftd.OPNDAT>=#{opndatfrom,jdbcType=DATE}
</if>
<if test=" opndatto != null ">
AND ftd.OPNDAT&lt;=#{opndatto,jdbcType=DATE}
</if>
<if test=" seaownref != null and seaownref != ''">
AND ftd.OWNREF=#{ seaownref,jdbcType=VARCHAR}
</if>
<if test=" nam != null and nam != ''">
AND ftd.NAM=#{ nam,jdbcType=VARCHAR}
</if>
<if test=" ownusr != null and ownusr != ''">
AND ftd.ownusr=#{ ownusr,jdbcType=VARCHAR}
</if>
<if test=" usr != null and usr != ''">
AND ftd.usr=#{ usr,jdbcType=VARCHAR}
</if>
<if test=" fttyp != null and fttyp != ''">
AND ftd.FTTYP=#{ fttyp,jdbcType=VARCHAR}
</if>
<if test=" gzno != null and gzno != ''">
AND ftd.gzno=#{ gzno,jdbcType=VARCHAR}
</if>
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment