|
@@ -52,6 +52,8 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
|
|
|
private ICommonCompanyService commonCompanyService;
|
|
|
@Autowired
|
|
|
private IIdentityAuthenticationInfoService iIdentityAuthenticationInfoService;
|
|
|
+ @Autowired
|
|
|
+ private IContractManagementInfoService ContractManagementInfoService;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -82,6 +84,7 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
|
|
|
pageView.put("pageSize", paymentManagement.getPageSize());
|
|
|
pageView.put("warehouseName",paymentManagement.getWarehouseName());
|
|
|
pageView.put("customerPhone",paymentManagement.getCustomerPhone());
|
|
|
+ pageView.put("contractNo", paymentManagement.getContractNo());
|
|
|
pageView.put("currentPage", paymentManagement.getCurrentPage());
|
|
|
pageView.put("managementType",paymentManagement.getManagementType());
|
|
|
pageView.put("businessKeys", businessKeys);
|
|
@@ -244,6 +247,41 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
|
|
|
}
|
|
|
return "OK";
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 合同编号下拉列表
|
|
|
+ *
|
|
|
+ * @param compId
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<ContractManagementInfo> selectContractNoList(String compId) {
|
|
|
+ //查销售合同
|
|
|
+ List<ContractManagementInfo> contractManagementInfoList = ContractManagementInfoService.selectList(new EntityWrapper<ContractManagementInfo>()
|
|
|
+ .eq("comp_id", compId)
|
|
|
+ .eq("contract_type", "1")
|
|
|
+ .eq("delete_flag", "0")
|
|
|
+ .orderBy("update_date", false));
|
|
|
+ for (ContractManagementInfo contractManagementInfo : contractManagementInfoList) {
|
|
|
+ Float money = 0.0f;
|
|
|
+ Float collectMoney = 0.0f;
|
|
|
+ //查收款管理列表
|
|
|
+ List<PaymentManagement> paymentManagementList = this.selectList(new EntityWrapper<PaymentManagement>()
|
|
|
+ .eq("contract_no", contractManagementInfo.getContractNo())
|
|
|
+ .eq("delete_flag", "0"));
|
|
|
+ if (!CollectionUtils.isEmpty(paymentManagementList)) {
|
|
|
+ for (PaymentManagement paymentManagement : paymentManagementList) {
|
|
|
+ money = money + paymentManagement.getAmountNotPayable();
|
|
|
+ collectMoney = collectMoney + paymentManagement.getAmountNotCollectable();
|
|
|
+ }
|
|
|
+ //有未付/未收金额
|
|
|
+ if (money > 0 || collectMoney > 0) {
|
|
|
+ contractManagementInfo.setReportStatus("待付款");
|
|
|
+ } else {
|
|
|
+ contractManagementInfo.setReportStatus("已付款");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return contractManagementInfoList;
|
|
|
+ }
|
|
|
/**
|
|
|
* 添加备注
|
|
|
* @param paymentManagement
|