EntryAndExitOrderMapper.xml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.unis.transaction.server.dao.EntryAndExitOrderDao">
  4. <update id="updatePriceStatus" parameterType="com.unis.transaction.common.vo.tradeplan.EntryAndExitOrderVO">
  5. update ty_jycrkwt
  6. <set>
  7. <if test="apzt != null and apzt != ''">
  8. apzt = #{apzt, jdbcType=VARCHAR},
  9. </if>
  10. <if test="apztmc != null and apztmc != ''">
  11. apztmc = #{apztmc, jdbcType=VARCHAR},
  12. </if>
  13. <if test="jydjqz != null and jydjqz != ''">
  14. jydjqz = #{jydjqz, jdbcType=VARCHAR},
  15. jydjqzsj = sysdate
  16. </if>
  17. </set>
  18. where wtbm = #{wtbm, jdbcType=VARCHAR}
  19. </update>
  20. <update id="updateWtsNode" parameterType="com.unis.transaction.server.entity.tradeplan.EntryAndExitOrderDO">
  21. update ty_jycrkwt
  22. <set>
  23. <if test="zt != null and zt != ''">
  24. zt = #{zt},
  25. </if>
  26. <if test="ztmc != null and ztmc != ''">
  27. ztmc = #{ztmc},
  28. </if>
  29. <if test="wtshr != null and wtshr != ''">
  30. wtshr = #{wtshr},
  31. </if>
  32. <if test="wtshsj != null">
  33. wtshsj = #{wtshsj},
  34. </if>
  35. <if test="wtfqz != null and wtfqz != ''">
  36. wtfqz = #{wtfqz},
  37. </if>
  38. <if test="wtfgzsj != null">
  39. wtfgzsj = #{wtfgzsj},
  40. </if>
  41. <if test="slr != null and slr != ''">
  42. slr = #{slr},
  43. </if>
  44. <if test="slryj != null and slryj != ''">
  45. slryj = #{slryj},
  46. </if>
  47. <if test="slrq != null">
  48. slrq = #{slrq},
  49. </if>
  50. <if test="jyzxshr != null and jyzxshr != ''">
  51. jyzxshr = #{jyzxshr},
  52. </if>
  53. <if test="jyzxshryj != null and jyzxshryj != ''">
  54. jyzxshryj = #{jyzxshryj},
  55. </if>
  56. <if test="jyzxshrq != null">
  57. jyzxshrq = #{jyzxshrq},
  58. </if>
  59. <if test="slrshjg != null and slrshjg != ''">
  60. slrshjg = #{slrshjg},
  61. </if>
  62. <if test="jyzxshrshjg != null and jyzxshrshjg != ''">
  63. jyzxshrshjg = #{jyzxshrshjg},
  64. </if>
  65. </set>
  66. where wtbm = #{wtbm, jdbcType=VARCHAR}
  67. </update>
  68. <select id="getEntryAndExitOrderBySiteId" resultType="com.unis.transaction.server.entity.tradeplan.EntryAndExitOrderDO">
  69. select decode(t1.lsxzbm, '1','121', '3', '121', '2', '122') lsxzbm
  70. from ty_jycc t0
  71. left join ty_jycrkwt t1 on t1.wtbm = t0.wtbm
  72. where t0.ccbm = #{ccbm, jdbcType=VARCHAR}
  73. </select>
  74. </mapper>