tp.ms.base.rest.resource.service.strengthen.BillInsertBPTemplate Maven / Gradle / Ivy
The newest version!
package tp.ms.base.rest.resource.service.strengthen;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import tp.ms.base.rest.resource.service.IPolyService;
import tp.ms.base.rest.resource.service.ace.CommonAroundProcesser;
import tp.ms.base.rest.resource.service.ace.CommonOperatorTemplate;
import tp.ms.base.rest.resource.service.ace.IOperator;
import tp.ms.base.rest.resource.vo.AbstractPolyVO;
import tp.ms.common.bean.exception.ADBusinessException;
public class BillInsertBPTemplate {
static final Logger log = LoggerFactory.getLogger(BillInsertBPTemplate.class);
/**
* 单据新增规则处理器
*/
private CommonOperatorTemplate template;
public BillInsertBPTemplate(IPolyService polyService) {
IOperator operator = new BillInsertOperator(polyService);
this.template = new CommonOperatorTemplate(operator);
}
public T insert(T bills) throws ADBusinessException {
return this.template.operate(bills);
}
/**
* 获取单据新增规则处理器。调用者可以据此增加前、后规则
*
* @return 单据新增规则处理器
*/
public CommonAroundProcesser getAroundProcesser() {
return this.template.getAroundProcesser();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy