IPaymentGoodsDetailsService.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the dreamlu.net developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: Chill 庄骞 (smallchill@163.com)
  16. */
  17. package com.fjhx.paymentgoods.service;
  18. import com.baomidou.mybatisplus.extension.service.IService;
  19. import com.fjhx.paymentgoods.entity.PaymentGoodsDetails;
  20. import java.math.BigDecimal;
  21. import java.util.List;
  22. import java.util.Map;
  23. /**
  24. * 付款账单明细 服务类
  25. *
  26. * @author BladeX
  27. * @since 2022-12-12
  28. */
  29. public interface IPaymentGoodsDetailsService extends IService<PaymentGoodsDetails> {
  30. /**
  31. * 根据付款ID查询数据
  32. *
  33. * @param paymentGoodsIds 付款ID集合
  34. * @return
  35. */
  36. List<PaymentGoodsDetails> getByPaymentGoodsIds(List<String> paymentGoodsIds);
  37. /**
  38. * 根据付款ID查询数据
  39. *
  40. * @param paymentGoodsIds 付款ID集合
  41. * @return
  42. */
  43. Map<String, List<PaymentGoodsDetails>> getByPaymentGoodsIdsToMap(List<String> paymentGoodsIds);
  44. /**
  45. * 根据采购合同编码查询已付货款
  46. *
  47. * @param purchaseCodes 采购合同编码集合
  48. * @return
  49. */
  50. List<PaymentGoodsDetails> getByPurchaseCodes(List<String> purchaseCodes);
  51. /**
  52. * 根据采购合同编码查询已付货款
  53. *
  54. * @param purchaseCodes 采购合同编码集合
  55. * @return
  56. */
  57. Map<String, List<PaymentGoodsDetails>> getByPurchaseCodesToMap(List<String> purchaseCodes);
  58. /**
  59. * 通过采购合同ID获取总付款金额
  60. * @param purchaseContractId
  61. * @return
  62. */
  63. BigDecimal getSumMoney(String purchaseContractId);
  64. }