|
|
@ -60,11 +60,10 @@ public class AllocationBillServiceImpl extends ServiceImpl<AllocationBillMapper, |
|
|
|
@SaIgnore |
|
|
|
public CommonPage<AllocationBill> allocationPage(AllocationBillQuery params) { |
|
|
|
// 查询总记录数
|
|
|
|
// long totalCount = allocationBillMapper.getAllocationCount();
|
|
|
|
long totalCount = allocationBillMapper.getAllocationCount(); |
|
|
|
Page<AllocationBill> pageObject = new Page<>(params.getPage(), params.getSize()); |
|
|
|
Page<AllocationBill> allocationBills = allocationBillMapper.allocationPage(pageObject, params.getFuzzy()); |
|
|
|
return CommonPage.getPage(allocationBills); |
|
|
|
//return CommonPage.getPage(allocationBills, totalCount);
|
|
|
|
return CommonPage.getPage(allocationBills, totalCount); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -75,13 +74,13 @@ public class AllocationBillServiceImpl extends ServiceImpl<AllocationBillMapper, |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public CommonPage<AllocationBill> page(AllocationBillQuery params) { |
|
|
|
if (StringUtils.isBlank(params.getDjbh())) { |
|
|
|
if (StringUtils.isBlank(params.getDjid())) { |
|
|
|
throw new BadRequestException("单据编号不能为空"); |
|
|
|
} |
|
|
|
// 查询总记录数
|
|
|
|
// long totalCount = allocationBillMapper.getTotalCount(params.getDjbh());
|
|
|
|
Page<AllocationBill> pageObject = new Page<>(params.getPage(), params.getSize()); |
|
|
|
Page<AllocationBill> allocationBills = allocationBillMapper.allocationDetailPage(pageObject, params.getDjbh(), params.getFuzzy()); |
|
|
|
Page<AllocationBill> allocationBills = allocationBillMapper.allocationDetailPage(pageObject, params.getDjid(), params.getFuzzy()); |
|
|
|
List<AllocationBill> allocationBillList = allocationBills.getRecords(); |
|
|
|
if (!allocationBillList.isEmpty()) { |
|
|
|
// 获取更新列表
|
|
|
|