PaymentGoodsDetailsMapper.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.mapper;
  18. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  19. import com.fjhx.paymentgoods.entity.PaymentGoodsDetails;
  20. import org.apache.ibatis.annotations.Param;
  21. import org.springblade.core.tenant.annotation.TenantIgnore;
  22. import java.math.BigDecimal;
  23. import java.util.List;
  24. /**
  25. * 付款账单明细 Mapper 接口
  26. *
  27. * @author BladeX
  28. * @since 2022-12-12
  29. */
  30. public interface PaymentGoodsDetailsMapper extends BaseMapper<PaymentGoodsDetails> {
  31. /**
  32. * 根据采购合同编码查询已付货款
  33. *
  34. * @param purchaseCodes 采购合同编码集合
  35. * @param tenantId 租户ID
  36. * @return
  37. */
  38. @TenantIgnore
  39. List<PaymentGoodsDetails> getByPurchaseCodes(@Param("purchaseCodes") List<String> purchaseCodes, @Param("tenantId") String tenantId);
  40. /**
  41. * 通过采购合同ID获取总付款金额
  42. * @param purchaseContractId
  43. * @return
  44. */
  45. @TenantIgnore
  46. BigDecimal getSumMoney(@Param("purchaseContractId") String purchaseContractId);
  47. }