PurchaseMapper.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. package com.dk.mdm.mapper.pur;
  2. import com.dk.mdm.model.pojo.pur.Purchase;
  3. import com.dk.common.mapper.BaseMapper;
  4. import com.dk.mdm.model.query.pur.PurchaseQuery;
  5. import com.dk.mdm.model.response.pur.PurchaseResponse;
  6. import com.dk.mdm.model.vo.pur.PurchaseVO;
  7. import io.swagger.models.auth.In;
  8. import org.apache.ibatis.annotations.Param;
  9. import org.springframework.stereotype.Repository;
  10. import java.util.List;
  11. import java.util.Map;
  12. /**
  13. * 采购订单 Mapper
  14. */
  15. @Repository
  16. public interface PurchaseMapper extends BaseMapper<Purchase>{
  17. /**
  18. * @desc : 查询采购订单
  19. * @author : 常皓宁
  20. * @date : 2024/2/28 9:48
  21. */
  22. List<PurchaseResponse> selectByCond(PurchaseQuery purchaseQuery);
  23. /**
  24. * @desc : 查询采购订单 带明细
  25. * @author : 王英杰
  26. * @date : 2024/2/28 9:48
  27. */
  28. List<PurchaseResponse> selectByCondItem(PurchaseQuery purchaseQuery);
  29. /**
  30. * @desc : 查询采购订单个数
  31. * @author : 常皓宁
  32. * @date : 2024/2/28 9:48
  33. */
  34. Long countByCond(PurchaseQuery purchaseQuery);
  35. /**
  36. * @desc : 根据id查询
  37. * @author : 常皓宁
  38. * @date : 2024/3/2 11:39
  39. */
  40. PurchaseResponse selectById(@Param("id") String id);
  41. /**
  42. * @desc : 采购订单 待入库查询
  43. * @author : 王英杰
  44. * @date : 2024/2/28 9:46
  45. */
  46. List<PurchaseResponse> noStoredSelectByCond(PurchaseQuery purchaseQuery);
  47. /**
  48. * @desc : 采购订单 待入库查询 个数
  49. * @author : 王英杰
  50. * @date : 2024/2/28 9:46
  51. */
  52. Long noStoredCountByCond(PurchaseQuery purchaseQuery);
  53. /**
  54. * @desc : 修改金额数量
  55. * @author : 于继渤
  56. * @date : 2024/2/26 10:36
  57. */
  58. int updateAmount(Purchase purchase);
  59. Purchase selectPurchaseByRighting(PurchaseQuery purchaseQuery);
  60. /**
  61. * @desc : 采购跟踪
  62. * @author : 常皓宁
  63. * @date : 2024/4/22 10:19
  64. */
  65. Map<String, Object> selectTrackReport(Map param);
  66. }