WBYWYSL_Mapper.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
  4. "http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
  5. <mapper namespace="WBYWYSL">
  6. <select id="RSWBBJ_S" resultType="hashmap" parameterType="hashmap">
  7. SELECT RS_WB_BJ_LSH,
  8. YHID,
  9. SLLSH,
  10. ZTID,
  11. ZTLB,
  12. ZTMC,
  13. SBSX,
  14. SBRXM,
  15. SBRSJ,
  16. SBZY,
  17. SQSJ,
  18. SQZT,
  19. SHYJ,
  20. JGLQFS,
  21. SJRXM,
  22. SJRSJ,
  23. SJRDZ,
  24. YZBM,
  25. FWDX,
  26. SJLY,
  27. CJR,
  28. CJSJ,
  29. ZHXGR,
  30. ZHXGSJ,
  31. SLBH,
  32. TS_YXBZ,TCUSTPROVINCE, TCUSTCITY, TCUSTCOUNTY
  33. FROM RS_WB_BJ
  34. WHERE rs_wb_bj_lsh = #{RS_WB_BJ_LSH}
  35. </select>
  36. <delete id="SDZLMX_D" parameterType="hashmap">
  37. DELETE SDZLMX where SDZLID in(select a.SDZLID from SDZL a ,SDJL b where a.sdjlid=b.sdjlid and b.YWGLH=#{YWGLH})
  38. </delete>
  39. <select id="SLXX_S" resultType="hashmap" parameterType="hashmap">
  40. SELECT CAZ675 YWGLH
  41. FROM v_appcomm_slxx
  42. WHERE sllsh = #{SLLSH}
  43. </select>
  44. <!-- 网办附件明细 -->
  45. <select id="RSWBCLFJ_S" resultType="hashmap" parameterType="hashmap">
  46. SELECT RS_WB_CLFJ_LSH, RS_WB_BJ_LSH, ZLLBID, WJMC, TYCCID, TS_YXBZ, CJR
  47. FROM RS_WB_CLFJ
  48. WHERE rs_wb_bj_lsh = #{RS_WB_BJ_LSH} and TS_YXBZ='1'
  49. </select>
  50. <!-- SDZLMX 插入 -->
  51. <insert id="SDZLMX_I" parameterType="hashmap">
  52. insert into SDZLMX (
  53. SDZLMXID, SDZLID, YWJM, JBR, JBSJ, YXBZ, WDSX, WJLX, LY, TYCCID
  54. ) values (
  55. seq_sdzlmxid.nextval,(select SDZLID from SDZL where SDJLID=#{SDJLID} and ZLLBID=#{ZLLBID} and rownum=1),
  56. #{YWJM},#{JBR},to_char(SYSDATE, 'YYYYMMDDhhmiss'),'1','1',#{WJLX},'2',#{TYCCID}
  57. )
  58. </insert>
  59. <!-- 回写收单资料录入状态-->
  60. <update id="SDZL_U" parameterType="hashmap">
  61. update SDZL a set a.zllrzt='11' where exists(select 1 from SDZLmx b where b.SDZLID=a.sdzlid) and a.SDJLID=#{SDJLID}
  62. </update>
  63. <!-- 回写收单资料录入状态,资料明细不存在的-->
  64. <update id="SDZL_NOT EXISTS_U" parameterType="hashmap">
  65. update SDZL a set a.zllrzt='0' where not exists(select 1 from SDZLmx b where b.SDZLID=a.sdzlid) and a.SDJLID=#{SDJLID}
  66. </update>
  67. <!-- 回写网办受理流水号-->
  68. <update id="RSWBBJ_U" parameterType="hashmap">
  69. update RS_WB_BJ SET SLLSH = #{SLLSH},SLBH = #{SLBH},ZHXGSJ=to_char(SYSDATE,'YYYY-MM-DD hh24:mi:ss') WHERE rs_wb_bj_lsh = #{RS_WB_BJ_LSH}
  70. </update>
  71. <!-- 回写网办状态-->
  72. <update id="RSWBBJ_U2" parameterType="hashmap">
  73. update RS_WB_BJ SET SHYJ = #{SHYJ},SQZT = #{SQZT},ZHXGSJ=to_char(SYSDATE,'YYYY-MM-DD hh24:mi:ss') WHERE SLLSH = #{SLLSH}
  74. </update>
  75. <!-- 网办科员退回,流程实例表-->
  76. <update id="WFPROCESSINSTANCE_U" parameterType="hashmap">
  77. update wf_process_instance
  78. set STATUS = #{STATUS},COMPLETE_TIME = to_char(sysdate, 'yyyymmddhh24miss')
  79. where bae007 in (select ywlsh from v_appcomm_slxx where SLLSH = #{SLLSH})
  80. </update>
  81. <!-- 网办科员退回,流程环节表-->
  82. <update id="WFWORKITEM_U" parameterType="hashmap">
  83. update wf_work_item
  84. set STATE = #{STATE},
  85. IS_RETURN = #{IS_RETURN},
  86. MEMO = #{MEMO},
  87. COMPLETE_TIME = to_char(sysdate, 'yyyymmddhh24miss')
  88. where work_item_id = (select max(b.work_item_id)
  89. from v_appcomm_slxx a, wf_work_item b
  90. where a.ywlsh = b.bae007
  91. and b.ACTION_DEF_ID like '%_kysl'
  92. and a.SLLSH = #{SLLSH})
  93. </update>
  94. <!-- 网办科员不予受理-->
  95. <update id="RSSLXX_BLZT_U" parameterType="hashmap">
  96. update v_appcomm_slxx set BLZT=#{BLZT} where SLLSH=#{SLLSH}
  97. </update>
  98. <!-- 回写高层次人才业务信息表-->
  99. <update id="GCCRCSQ_U" parameterType="hashmap">
  100. update v_rs_zj_gccrc_sq
  101. set SLLSH = #{SLLSH},
  102. bz =
  103. (select a.bz
  104. from rs_zj_gccrc a, rs_slxx b
  105. where a.ztid = b.ztid
  106. and b.sllsh = #{SLLSH}
  107. and rownum = 1)
  108. where RS_WB_BJ_LSH = #{RS_WB_BJ_LSH}
  109. </update>
  110. <!-- 回写政府依公开业务信息表-->
  111. <update id="ZFXXYSQGK_U" parameterType="hashmap">
  112. update RS_WB_ZFXXYSQGK set SLLSH=#{SLLSH} where RS_WB_BJ_LSH=#{RS_WB_BJ_LSH}
  113. </update>
  114. <!-- 置空业务流水号-->
  115. <update id="YWLSH_U" parameterType="hashmap">
  116. update v_appcomm_slxx set ywlsh=null where SLLSH=#{SLLSH}
  117. </update>
  118. <select id="NEWAC01_S" resultType="hashmap" parameterType="hashmap">
  119. select a.AAC161, a.AAC058, a.AAC147, a.AAC003, c.XB AAC004, a.AAC006, c.SJHM AAC067, a.AAC024, a.AAC300, a.ZTID, a.AAC011
  120. from ac01 a ,rs_wb_bj b , RS_SLXX_JBXX c where a.ztid=b.ZTID and b.RS_WB_BJ_LSH=c.RS_WB_BJ_LSH and b.rs_wb_bj_lsh = #{RS_WB_BJ_LSH}
  121. </select>
  122. <!-- 回写政PSAM卡业务信息表-->
  123. <update id="RS_PSAM_YWXX_SQB_U" parameterType="hashmap">
  124. update rs_psam_ywxx_sqb set SLLSH=#{SLLSH},ZTID=#{ZTID} where RS_WB_BJ_LSH=#{RS_WB_BJ_LSH}
  125. </update>
  126. <select id="NEWAB01_S" resultType="hashmap" parameterType="hashmap">
  127. select c.DWMC AAB004, c.TYSHXYDM AAB998, c.DWLX AAB019, c.SSDQ AAB078, c.DWDZ AAE006, a.ZTID
  128. from ab01 a ,rs_wb_bj b , RS_SLXX_JBXX c where a.ztid=b.ZTID and b.RS_WB_BJ_LSH=c.RS_WB_BJ_LSH and b.rs_wb_bj_lsh = #{RS_WB_BJ_LSH}
  129. </select>
  130. <update id="RS_PSAM_YWXX_SQB_U2" parameterType="hashmap">
  131. update rs_psam_ywxx_sqb set PSAMBH ='' where RS_WB_BJ_LSH in(select RS_WB_BJ_LSH from RS_WB_BJ where sllsh=#{SLLSH})
  132. </update>
  133. <!-- 回写档案转递(机要寄档)业务信息表-->
  134. <update id="RS_RCFWGL_DAZC_U" parameterType="hashmap">
  135. update v_rs_rcfwgl_dazc set SLLSH=#{SLLSH} where RS_WB_BJ_LSH=#{RS_WB_BJ_LSH}
  136. </update>
  137. <!-- 回写党员材料转递业务信息表-->
  138. <update id="RS_RCFWGL_DYCLZD_U" parameterType="hashmap">
  139. update v_rs_rcfwgl_dyclzd set SLLSH=#{SLLSH} where RS_WB_BJ_LSH=#{RS_WB_BJ_LSH}
  140. </update>
  141. <!-- 回写欠薪快速处理业务信息表-->
  142. <update id="QXKSCL_U" parameterType="hashmap">
  143. update v_RS_JC_QXKSCL_SQ
  144. set SLLSH = #{SLLSH}
  145. where RS_WB_BJ_LSH = #{RS_WB_BJ_LSH}
  146. </update>
  147. </mapper>