TCtnpriceItemsMapper.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. package com.ruoyi.shipping.mapper;
  2. import java.util.List;
  3. import com.ruoyi.shipping.domain.TCtnpriceItems;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import org.springframework.security.core.parameters.P;
  7. /**
  8. * 海运运价从Mapper接口
  9. *
  10. * @author ruoyi
  11. * @date 2021-04-06
  12. */
  13. @Mapper
  14. public interface TCtnpriceItemsMapper
  15. {
  16. /**
  17. * 查询海运运价从
  18. *
  19. * @param fId 海运运价从ID
  20. * @return 海运运价从
  21. */
  22. public TCtnpriceItems selectTCtnpriceItemsById(Long fId);
  23. /**
  24. * 查询海运运价从列表
  25. *
  26. * @param tCtnpriceItems 海运运价从
  27. * @return 海运运价从集合
  28. */
  29. public List<TCtnpriceItems> selectTCtnpriceItemsList(TCtnpriceItems tCtnpriceItems);
  30. /**
  31. * 新增海运运价从
  32. *
  33. * @param tCtnpriceItems 海运运价从
  34. * @return 结果
  35. */
  36. public int insertTCtnpriceItems(TCtnpriceItems tCtnpriceItems);
  37. /**
  38. * 修改海运运价从
  39. *
  40. * @param tCtnpriceItems 海运运价从
  41. * @return 结果
  42. */
  43. public int updateTCtnpriceItems(TCtnpriceItems tCtnpriceItems);
  44. /**
  45. * 删除海运运价从
  46. *
  47. * @param fId 海运运价从ID
  48. * @return 结果
  49. */
  50. public int deleteTCtnpriceItemsById(Long fId);
  51. /**
  52. * 删除海运运价从
  53. *
  54. * @param fPid 海运运价从ID
  55. * @return 结果
  56. */
  57. public int deleteTCtnpriceItemsByfPid(Long fPid);
  58. /**
  59. * 删除海运运价从
  60. *
  61. * @param fPid 海运运价从ID
  62. * @return 结果
  63. */
  64. public int deleteTCtnpriceItemsByfPids(Long[] fPid);
  65. /**
  66. * 批量删除海运运价从
  67. *
  68. * @param fIds 需要删除的数据ID
  69. * @return 结果
  70. */
  71. public int deleteTCtnpriceItemsByIds(Long[] fIds);
  72. /**
  73. * 查询最低运价
  74. * @param fPortofloadid 装货港
  75. * @param fDistinationid 目的港
  76. * @param fNo 集装箱编号
  77. * @return
  78. */
  79. public String selectMoney(@Param("fPortofloadid") Long fPortofloadid,
  80. @Param("fDistinationid") Long fDistinationid,
  81. @Param("fNo") String fNo);
  82. /**
  83. * 查询最低运价
  84. * @param fPortofloadid 装货港
  85. * @param fDistinationid 目的港
  86. * @param fNo 集装箱编号
  87. * @return
  88. */
  89. public List<String> selectPriceMoney(@Param("fPortofloadid") Long fPortofloadid,
  90. @Param("fDistinationid") Long fDistinationid,
  91. @Param("fNo") String fNo,
  92. @Param("fPortoftransshipment") Long fPortoftransshipment);
  93. /**
  94. * 获取集装箱运费
  95. * @param tCtnpriceItems
  96. * @return
  97. */
  98. public List<Long> containerPrice(TCtnpriceItems tCtnpriceItems);
  99. /**
  100. * 查询同一条件下集装箱运价是否存在
  101. *
  102. * @param fPid 主表id
  103. * @param fCntrid 集装箱id
  104. * @return 海运运价从集合
  105. */
  106. public List<TCtnpriceItems> selectItemMeaasge(@Param("fPid") Long fPid,
  107. @Param("fCntrid") Long fCntrid);
  108. /**
  109. * 根据航次 获取所有航次中对应箱型的最低价
  110. * @param fPid
  111. * @param fNo
  112. * @return
  113. */
  114. public String selectMinMoney(@Param("fNo") String fNo,
  115. @Param("fPid") List<Long> fPid);
  116. }