PurchaseService.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. package com.fjhx.purchase.service.purchase;
  2. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  3. import com.fjhx.purchase.entity.purchase.dto.PurchaseDto;
  4. import com.fjhx.purchase.entity.purchase.dto.PurchasePayRecordDto;
  5. import com.fjhx.purchase.entity.purchase.dto.PurchaseSelectDto;
  6. import com.fjhx.purchase.entity.purchase.po.Purchase;
  7. import com.fjhx.purchase.entity.purchase.vo.PurchaseVo;
  8. import com.ruoyi.common.core.service.BaseService;
  9. import org.springframework.transaction.annotation.Transactional;
  10. import java.util.List;
  11. import java.util.Map;
  12. /**
  13. * <p>
  14. * 采购 服务类
  15. * </p>
  16. *
  17. * @author
  18. * @since 2023-04-06
  19. */
  20. public interface PurchaseService extends BaseService<Purchase> {
  21. /**
  22. * 采购分页
  23. */
  24. Page<PurchaseVo> getPage(PurchaseSelectDto dto);
  25. /**
  26. * 采购分页 维多利亚
  27. */
  28. Page<PurchaseVo> getPageByWdly(PurchaseSelectDto dto);
  29. /**
  30. * 采购明细
  31. */
  32. PurchaseVo detail(Long id);
  33. /**
  34. * 采购新增
  35. */
  36. void add(Purchase purchase);
  37. /**
  38. * 采购编辑
  39. */
  40. void edit(PurchaseDto purchaseDto);
  41. /**
  42. * 采购删除
  43. */
  44. void delete(Long id);
  45. /**
  46. * 根据供应商查询无发票的采购合同
  47. *
  48. * @param supplyId
  49. * @return
  50. */
  51. List<Purchase> getNoInvoiceListBySupplyId(String supplyId);
  52. /**
  53. * 根据供应商查询采购合同
  54. *
  55. * @param supplyId
  56. * @return
  57. */
  58. List<Purchase> getListBySupplyId(String supplyId);
  59. /**
  60. * 货款账单
  61. */
  62. Page<PurchaseDto> paymentBill(PurchaseSelectDto purchaseDto);
  63. /**
  64. * 采购统计(采购列表)
  65. */
  66. Map<String,Object> purchaseStatistics(PurchaseSelectDto dto);
  67. /**
  68. * 批量查询
  69. * @param ids
  70. * @return
  71. */
  72. List<Purchase> getListInId(List<Long> ids);
  73. }