|
|
|
|
@ -15,6 +15,8 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 合同台账报表Service业务层处理
|
|
|
|
|
*/
|
|
|
|
|
@ -51,15 +53,23 @@ public class ContractLedgerReportServiceImpl implements IContractLedgerReportSer
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public TableDataInfo<ContractLedgerReportVo> queryContractLedgerList(ContractLedgerReportVo bo) {
|
|
|
|
|
public TableDataInfo<ContractLedgerReportVo> queryContractLedgerList(ContractLedgerReportVo bo, PageQuery pageQuery) {
|
|
|
|
|
MPJLambdaWrapper<ErpContractInfo> lqw = buildQueryWrapper(bo);
|
|
|
|
|
List<ContractLedgerReportVo> list = reportMapper.selectContractLedgerList(lqw);
|
|
|
|
|
return TableDataInfo.build(list);
|
|
|
|
|
Page<ContractLedgerReportVo> result = reportMapper.selectContractLedgerList(pageQuery.build(), lqw);
|
|
|
|
|
List<ContractLedgerReportVo> list = result.getRecords();
|
|
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
|
|
list.get(i).setIndex((int) ((pageQuery.getPageNum() - 1) * pageQuery.getPageSize() + i + 1));
|
|
|
|
|
}
|
|
|
|
|
return TableDataInfo.build(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<ContractLedgerReportVo> queryContractLedgerAll(ContractLedgerReportVo bo) {
|
|
|
|
|
MPJLambdaWrapper<ErpContractInfo> lqw = buildQueryWrapper(bo);
|
|
|
|
|
return reportMapper.selectContractLedgerList(lqw);
|
|
|
|
|
List<ContractLedgerReportVo> list = reportMapper.selectContractLedgerList(lqw);
|
|
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
|
|
list.get(i).setIndex(i + 1);
|
|
|
|
|
}
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|