12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?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.EntryAndExitOrderDao">
-
- <update id="updatePriceStatus" parameterType="com.unis.transaction.common.vo.tradeplan.EntryAndExitOrderVO">
- update ty_jycrkwt
- <set>
- <if test="apzt != null and apzt != ''">
- apzt = #{apzt, jdbcType=VARCHAR},
- </if>
- <if test="apztmc != null and apztmc != ''">
- apztmc = #{apztmc, jdbcType=VARCHAR},
- </if>
- <if test="jydjqz != null and jydjqz != ''">
- jydjqz = #{jydjqz, jdbcType=VARCHAR},
- jydjqzsj = sysdate
- </if>
- </set>
- where wtbm = #{wtbm, jdbcType=VARCHAR}
- </update>
-
-
- <update id="updateWtsNode" parameterType="com.unis.transaction.server.entity.tradeplan.EntryAndExitOrderDO">
- update ty_jycrkwt
- <set>
- <if test="zt != null and zt != ''">
- zt = #{zt},
- </if>
- <if test="ztmc != null and ztmc != ''">
- ztmc = #{ztmc},
- </if>
- <if test="wtshr != null and wtshr != ''">
- wtshr = #{wtshr},
- </if>
- <if test="wtshsj != null">
- wtshsj = #{wtshsj},
- </if>
- <if test="wtfqz != null and wtfqz != ''">
- wtfqz = #{wtfqz},
- </if>
- <if test="wtfgzsj != null">
- wtfgzsj = #{wtfgzsj},
- </if>
- <if test="slr != null and slr != ''">
- slr = #{slr},
- </if>
- <if test="slryj != null and slryj != ''">
- slryj = #{slryj},
- </if>
- <if test="slrq != null">
- slrq = #{slrq},
- </if>
- <if test="jyzxshr != null and jyzxshr != ''">
- jyzxshr = #{jyzxshr},
- </if>
- <if test="jyzxshryj != null and jyzxshryj != ''">
- jyzxshryj = #{jyzxshryj},
- </if>
- <if test="jyzxshrq != null">
- jyzxshrq = #{jyzxshrq},
- </if>
- <if test="slrshjg != null and slrshjg != ''">
- slrshjg = #{slrshjg},
- </if>
- <if test="jyzxshrshjg != null and jyzxshrshjg != ''">
- jyzxshrshjg = #{jyzxshrshjg},
- </if>
- </set>
- where wtbm = #{wtbm, jdbcType=VARCHAR}
- </update>
-
- <select id="getEntryAndExitOrderBySiteId" resultType="com.unis.transaction.server.entity.tradeplan.EntryAndExitOrderDO">
- select decode(t1.lsxzbm, '1','121', '3', '121', '2', '122') lsxzbm
- from ty_jycc t0
- left join ty_jycrkwt t1 on t1.wtbm = t0.wtbm
- where t0.ccbm = #{ccbm, jdbcType=VARCHAR}
- </select>
- </mapper>
|