DELETE SDZLMX where SDZLID in(select a.SDZLID from SDZL a ,SDJL b where a.sdjlid=b.sdjlid and b.YWGLH=#{YWGLH}) insert into SDZLMX ( SDZLMXID, SDZLID, YWJM, JBR, JBSJ, YXBZ, WDSX, WJLX, LY, TYCCID ) values ( seq_sdzlmxid.nextval,(select SDZLID from SDZL where SDJLID=#{SDJLID} and ZLLBID=#{ZLLBID} and rownum=1), #{YWJM},#{JBR},to_char(SYSDATE, 'YYYYMMDDhhmiss'),'1','1',#{WJLX},'2',#{TYCCID} ) update SDZL a set a.zllrzt='11' where exists(select 1 from SDZLmx b where b.SDZLID=a.sdzlid) and a.SDJLID=#{SDJLID} update SDZL a set a.zllrzt='0' where not exists(select 1 from SDZLmx b where b.SDZLID=a.sdzlid) and a.SDJLID=#{SDJLID} 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} update RS_WB_BJ SET SHYJ = #{SHYJ},SQZT = #{SQZT},ZHXGSJ=to_char(SYSDATE,'YYYY-MM-DD hh24:mi:ss') WHERE SLLSH = #{SLLSH} update wf_process_instance set STATUS = #{STATUS},COMPLETE_TIME = to_char(sysdate, 'yyyymmddhh24miss') where bae007 in (select ywlsh from v_appcomm_slxx where SLLSH = #{SLLSH}) update wf_work_item set STATE = #{STATE}, IS_RETURN = #{IS_RETURN}, MEMO = #{MEMO}, COMPLETE_TIME = to_char(sysdate, 'yyyymmddhh24miss') where work_item_id = (select max(b.work_item_id) from v_appcomm_slxx a, wf_work_item b where a.ywlsh = b.bae007 and b.ACTION_DEF_ID like '%_kysl' and a.SLLSH = #{SLLSH}) update v_appcomm_slxx set BLZT=#{BLZT} where SLLSH=#{SLLSH} update v_rs_zj_gccrc_sq set SLLSH = #{SLLSH}, bz = (select a.bz from rs_zj_gccrc a, rs_slxx b where a.ztid = b.ztid and b.sllsh = #{SLLSH} and rownum = 1) where RS_WB_BJ_LSH = #{RS_WB_BJ_LSH} update RS_WB_ZFXXYSQGK set SLLSH=#{SLLSH} where RS_WB_BJ_LSH=#{RS_WB_BJ_LSH} update v_appcomm_slxx set ywlsh=null where SLLSH=#{SLLSH} update rs_psam_ywxx_sqb set SLLSH=#{SLLSH},ZTID=#{ZTID} where RS_WB_BJ_LSH=#{RS_WB_BJ_LSH} 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}) update v_rs_rcfwgl_dazc set SLLSH=#{SLLSH} where RS_WB_BJ_LSH=#{RS_WB_BJ_LSH} update v_rs_rcfwgl_dyclzd set SLLSH=#{SLLSH} where RS_WB_BJ_LSH=#{RS_WB_BJ_LSH} update v_RS_JC_QXKSCL_SQ set SLLSH = #{SLLSH} where RS_WB_BJ_LSH = #{RS_WB_BJ_LSH}