2f3073020a1e3ec005291743a0cc7c661d63ea19.svn-base 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding='UTF-8'?>
  2. <queryMap desc="STEEL MAKING QUERY ">
  3. <query id="UIG020060_101.insert" desc="写入发送信息">
  4. <![CDATA[
  5. insert into tb_slab_wgt_send
  6. (CHARGE_NO,
  7. SLAB_NO,
  8. CC_DEVNO,
  9. STL_GRD,
  10. state,
  11. flag,
  12. ply,
  13. width,
  14. len,
  15. quantity,
  16. theor_wgt,
  17. wgt_seq,
  18. real_wgt,
  19. sedn_time,
  20. revert_time,
  21. last_updatetime,
  22. cuttime,
  23. heatoverflag)
  24. values
  25. (?,
  26. ?,
  27. ?,
  28. ?,
  29. ?,
  30. ?,
  31. ?,
  32. ?,
  33. ?,
  34. ?,
  35. ?,
  36. null,
  37. null,
  38. to_char(sysdate, 'yyyymmddhh24miss'),
  39. null,
  40. to_char(sysdate, 'yyyymmddhh24miss'),
  41. ?,
  42. ?);
  43. ]]>
  44. </query>
  45. <query id="UIG020062_102.select" desc="发送表数据查询">
  46. <![CDATA[
  47. select
  48. 'N' chk,
  49. CHARGE_NO,
  50. SLAB_NO,
  51. CC_DEVNO,
  52. STL_GRD,
  53. decode(state,'1','未接收','2','已接收') state,
  54. flag,
  55. ply,
  56. width,
  57. len,
  58. quantity,
  59. theor_wgt,
  60. wgt_seq,
  61. real_wgt,
  62. sedn_time,
  63. revert_time,
  64. last_updatetime,
  65. cuttime,
  66. heatoverflag
  67. from tb_slab_wgt_send t
  68. where t.CHARGE_NO LIKE ?||'%'
  69. AND TO_CHAR(T.CUTTIME) BETWEEN ? AND ?
  70. ]]>
  71. </query>
  72. <query id="UIG020060_103.update" desc="更新发送表">
  73. <![CDATA[
  74. update tb_slab_wgt_send
  75. set ccmid = ?,
  76. steelcode = ?,
  77. state = ?,
  78. flag = ?,
  79. ply = ?,
  80. width = ?,
  81. len = ?,
  82. quantity = ?,
  83. theor_wgt = ?,
  84. sedn_time = to_char(sysdate, 'yyyymmddhh24miss'),
  85. heatoverflag = ?,
  86. last_updatetime = to_char(sysdate, 'yyyymmddhh24miss')
  87. where heatno = ?
  88. and billetno = ?
  89. ]]>
  90. </query>
  91. <query id="UIG020060_104.update" desc="接受二级回填重量">
  92. <![CDATA[
  93. update tb_slab_wgt_send a
  94. set a.state = '2',
  95. a.real_wgt = ?,
  96. a.wgt_seq = ?,
  97. a.revert_time = ?,
  98. a.last_updatetime = to_char(sysdate, 'yyyymmddhh24miss')
  99. where CHARGE_NO = ?
  100. and SLAB_NO = ?
  101. ]]>
  102. </query>
  103. <query id="UIG020060_105.update" desc="更新接收表的状态为已处理">
  104. <![CDATA[
  105. update tb_slab_wgt_rec set flag = '1' where CHARGE_NO = ? and SLAB_NO = ? and flag = '0'
  106. ]]>
  107. </query>
  108. </queryMap>