批量保存删除AGGVO

保存
protected ArriveVO[] insert(ArriveVO[] returnVOs) {
		try {

			ArrivalUIToBSEnv[] evns = new ArrivalUIToBSEnv[returnVOs.length];
			for (int i = 0; i < returnVOs.length; i++) {
				evns[i] = new ArrivalUIToBSEnv();
			}
			return nc.bs.framework.common.NCLocator.getInstance()
					.lookup(nc.itf.pu.m23.maintain.IArriveMaintain.class)
					.saveBase(returnVOs, evns);
		} catch (Exception e) {
			ExceptionUtils.wrappException(e);
		}
		return null;
	}
删除
BSContext.getInstance().setSession(IYCPuArriveService.YCDELETE, true);
			nc.bs.framework.common.NCLocator.getInstance()
					.lookup(nc.itf.pu.m23.maintain.IArriveMaintain.class)
					.deleteArrive(billvos, new ArrivalUIToBSEnv());
			BSContext.getInstance().removeSession(IYCPuArriveService.YCDELETE);

你可能感兴趣的:(PHP)