package cn.autoform.web.service.page; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.github.pagehelper.Page; import cn.autoform.db.entity.FormSetEntity; import cn.autoform.db.entity.FormSetInfoEntity; import cn.autoform.db.exten.FormSetPage; import cn.autoform.util.tool.PageUtil; import cn.autoform.web.mapper.formset.FormSetMapper; @Service public class PageService { @Autowired private FormSetMapper formSetMapper; public Page queryPage(FormSetPage formSetPage){ PageUtil.initPage(); return formSetMapper.queryFormSetPaging(formSetPage); } public String queryFormSetBussinesssystem(String formSetID, String tenantID){ FormSetEntity formSetEntity = new FormSetEntity(); formSetEntity.setTenantID(tenantID); formSetEntity.setFormSetID(formSetID); return this.formSetMapper.queryFormSetBussinesssystem(formSetEntity); } }