删除流程数据

		@Override
		public void delAftMonDate(String[] keyvalues,String company) {
			String FLEET_CD="";
			String FLEET_NM="";
			if(company.equals("2c90e4b4407832750140784989a90002")){//散货
				  FLEET_CD="B00";
				  FLEET_NM="Bulk Carrier";
			  }else if(company.equals("2c90e4b44078327501407848fc290001")){//油轮
			   	  FLEET_CD="T00";
				  FLEET_NM="Oil Tanker";
			  }else{//所有
				  FLEET_CD="L00";
				  FLEET_NM="LNG VESSEL";
			  }
			String sql1="delete from SH_STATE_APPROVAL where fileid='"+keyvalues[0]+"'";
			String sql2="delete from SH_STATE_BACKUP where fleet_cd='"+FLEET_CD+"' AND to_char(state_time,'yyyy-MM')='"+getAfterDate().substring(0, 7)+"' and target_cd !='DailyTCE' and target_cd != 'OperationDay' ";
			String sql3="delete from XT_Document where ReferenceID='"+keyvalues[0]+"'";
			String sql4="delete from XT_FileAgent where FileID='"+keyvalues[0]+"'";
			String sql5="delete from XT_FileAuth where FileID='"+keyvalues[0]+"'";
			String sql6="delete from XT_FileFlowPassed where FileID='"+keyvalues[0]+"'";
			String sql7="delete from XT_FileProperty where FileID='"+keyvalues[0]+"'";
			String sql8="delete from XT_FileRead where FileID='"+keyvalues[0]+"'";
			String sql9="delete from XT_FileReference where FileID='"+keyvalues[0]+"'";
			String sql10="delete from XT_FolderRef where RefNo='"+keyvalues[0]+"'";
			String sql11="delete from XT_Hurry where FileID='"+keyvalues[0]+"'";
			String sql12="delete from XT_Notice where FileID='"+keyvalues[0]+"'";
			String sql13="delete from XT_Trace where FileID='"+keyvalues[0]+"'";
			super.updateData(sql1);
			super.updateData(sql2);
			super.updateData(sql3);
			super.updateData(sql4);
			super.updateData(sql5);
			super.updateData(sql6);
			super.updateData(sql7);
			super.updateData(sql8);
			super.updateData(sql9);
			super.updateData(sql10);
			super.updateData(sql11);
			super.updateData(sql12);
			super.updateData(sql13);
		}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值