|
|
|
@ -122,38 +122,13 @@ public class ContractMobileServiceImpl extends ServiceImpl<ContractMobileMapper,
|
|
|
|
|
return new ArrayList<>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if (StringUtil.isNotEmpty(contractMPagination.getContractCode())) {
|
|
|
|
|
// contractMNum++;
|
|
|
|
|
// contractMQueryWrapper.lambda().like(ContractMEntity::getContractCode, contractMPagination.getContractCode());
|
|
|
|
|
// }
|
|
|
|
|
// if (StringUtil.isNotEmpty(contractMPagination.getContractName())) {
|
|
|
|
|
// contractMNum++;
|
|
|
|
|
// contractMQueryWrapper.lambda().like(ContractMEntity::getContractName, contractMPagination.getContractName());
|
|
|
|
|
// }
|
|
|
|
|
// if (StringUtil.isNotEmpty(contractMPagination.getName())) {
|
|
|
|
|
// contractMNum++;
|
|
|
|
|
// contractMQueryWrapper.lambda().like(ContractMEntity::getName, contractMPagination.getName());
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if ((total > 0 && AllIdList.size() > 0) || total == 0) {
|
|
|
|
|
Page<MobileContractDetailsVO> page = new Page<>(contractMobilePagination.getCurrentPage(), contractMobilePagination.getPageSize());
|
|
|
|
|
IPage<MobileContractDetailsVO> userIPage = contractMobileMapper.getContractDetailData(page, contractMobileQueryWrapper);
|
|
|
|
|
// IPage<ContractMobileEntity> userIPage = this.page(page, contractMobileQueryWrapper);
|
|
|
|
|
List<MobileContractDetailsVO> records = userIPage.getRecords();
|
|
|
|
|
// for (int i = 0; i < records.size(); i++) {
|
|
|
|
|
// MobileContractDetailsVO vo = records.get(i);
|
|
|
|
|
// if (vo.getContractType().equals("采购合同")) {
|
|
|
|
|
// LambdaQueryWrapper<PurchaseorderEntity> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
// wrapper.eq(PurchaseorderEntity::getContractCode,vo.getId());
|
|
|
|
|
// List<MobileContractPurchaseOrderVO> list1 = contractMobileMapper.getContractDetailDataList1(wrapper);
|
|
|
|
|
// vo.setPurchaseOrderList(list1);
|
|
|
|
|
// }
|
|
|
|
|
// if (vo.getContractType().equals("销售合同")) {
|
|
|
|
|
// LambdaQueryWrapper<SaleorderitemEntity> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
// wrapper.eq(SaleorderitemEntity::getContractId,vo.getId());
|
|
|
|
|
// List<MobileContractSalesOrderVO> list2 = contractMobileMapper.getContractDetailDataList2(wrapper);
|
|
|
|
|
// vo.setSalesOrderList(list2);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
return contractMobilePagination.setData(records, userIPage.getTotal());
|
|
|
|
|
} else {
|
|
|
|
|
List<MobileContractDetailsVO> list = new ArrayList();
|
|
|
|
|