tp.ms.base.rest.resource.service.strengthen.SingleQueryTemplate Maven / Gradle / Ivy
The newest version!
package tp.ms.base.rest.resource.service.strengthen;
import lombok.extern.slf4j.Slf4j;
import tp.ms.base.rest.resource.http.Pager;
import tp.ms.base.rest.resource.service.ISingleService;
import tp.ms.base.rest.resource.service.ace.IQueryOperator;
import tp.ms.common.bean.exception.ADBusinessException;
import tp.ms.common.bean.vo.BaseExample;
import tp.ms.common.bean.vo.BaseVO;
@Slf4j
public class SingleQueryTemplate {
private IQueryOperator template;
ISingleService singleService;
public SingleQueryTemplate(ISingleService singleService) {
this.singleService = singleService;
template = new SingleQueryOperator(singleService);
}
public T query(String key) throws ADBusinessException {
log.info(key);
return template.query(key);
}
public T[] queryByPager(Pager page) throws ADBusinessException {
return template.query(page);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy