All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tp.ms.base.rest.resource.service.strengthen.BillDeleteOperator Maven / Gradle / Ivy

The newest version!
package tp.ms.base.rest.resource.service.strengthen;

import tp.ms.base.rest.resource.service.IChildService;
import tp.ms.base.rest.resource.service.IPolyService;
import tp.ms.base.rest.resource.service.ace.ICompareOperator;
import tp.ms.base.rest.resource.vo.AbstractPolyVO;
import tp.ms.base.rest.resource.vo.ChildBaseVO;
import tp.ms.common.bean.exception.ADBusinessException;
import tp.ms.common.bean.vo.IBaseVO;

public class BillDeleteOperator implements ICompareOperator {
	
	private IPolyService polyService;

	public BillDeleteOperator(IPolyService baseService) {
		this.polyService = baseService;
	}


	@SuppressWarnings({ "unchecked", "rawtypes" })
	@Override
	public T operate(T returnVOs, T originBills) throws ADBusinessException {
		polyService.getMajorService().delete(returnVOs.getParent());
		IBaseVO[] cvos = returnVOs.getChildrenVO();
		for(int j=0; j




© 2015 - 2025 Weber Informatics LLC | Privacy Policy