| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.business.dto.CreditSalesQueryDTO; |
| | | import com.by4cloud.platformx.business.mapper.ContractMapper; |
| | | import com.by4cloud.platformx.business.mapper.ContractOutBoundMapper; |
| | | import com.by4cloud.platformx.business.service.CreditSalesService; |
| | | import com.by4cloud.platformx.common.data.datascope.DataScope; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | @RequiredArgsConstructor |
| | | public class CreditSalesServiceImpl implements CreditSalesService { |
| | | |
| | | private final ContractMapper contractMapper; |
| | | private final ContractOutBoundMapper contractOutBoundMapper; |
| | | |
| | | @Override |
| | | public Page page(Page page, CreditSalesQueryDTO queryDTO) { |
| | | return contractMapper.pageByCredit(page, queryDTO, DataScope.of("comp_id")); |
| | | return contractOutBoundMapper.pageByCredit(page, queryDTO, DataScope.of("comp_id")); |
| | | } |
| | | } |