TWarehousebillsfeesMapper.java 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. package com.ruoyi.warehouseBusiness.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.ruoyi.finance.excel.FleetExcel;
  4. import com.ruoyi.shipping.domain.TAccount;
  5. import com.ruoyi.warehouseBusiness.domain.TWarehousebillsfees;
  6. import com.ruoyi.warehouseBusiness.excel.BillDetailsSubItem;
  7. import com.ruoyi.warehouseBusiness.excel.QueryMenu;
  8. import org.apache.ibatis.annotations.Mapper;
  9. import org.apache.ibatis.annotations.Param;
  10. import java.util.Date;
  11. import java.util.List;
  12. import java.util.Map;
  13. /**
  14. * 仓库费用明细Mapper接口
  15. *
  16. * @author ruoyi
  17. * @date 2020-12-11
  18. */
  19. @Mapper
  20. public interface TWarehousebillsfeesMapper extends BaseMapper<TWarehousebillsfees> {
  21. /**
  22. * 查询仓库费用明细
  23. *
  24. * @param fId 仓库费用明细ID
  25. * @return 仓库费用明细
  26. */
  27. public TWarehousebillsfees selectTWarehousebillsfeesById(Long fId);
  28. /**
  29. * 查询仓库费用明细列表
  30. *
  31. * @param tWarehousebillsfees 仓库费用明细
  32. * @return 仓库费用明细集合
  33. */
  34. public List<TWarehousebillsfees> selectTWarehousebillsfeesList(TWarehousebillsfees tWarehousebillsfees);
  35. /**
  36. * 新增仓库费用明细
  37. *
  38. * @param tWarehousebillsfees 仓库费用明细
  39. * @return 结果
  40. */
  41. public int insertTWarehousebillsfees(TWarehousebillsfees tWarehousebillsfees);
  42. /**
  43. * 修改仓库费用明细
  44. *
  45. * @param tWarehousebillsfees 仓库费用明细
  46. * @return 结果
  47. */
  48. public int updateTWarehousebillsfees(TWarehousebillsfees tWarehousebillsfees);
  49. /**
  50. * 删除仓库费用明细
  51. *
  52. * @param fId 仓库费用明细ID
  53. * @return 结果
  54. */
  55. public int deleteTWarehousebillsfeesById(Long fId);
  56. /**
  57. * 批量删除仓库费用明细
  58. *
  59. * @param fIds 需要删除的数据ID
  60. * @return 结果
  61. */
  62. public int deleteTWarehousebillsfeesByIds(Long[] fIds);
  63. int deleteByFPid(Long fId);
  64. /**
  65. * 根据主表id 更新库存费用表对应状态
  66. *
  67. * @param fettle 对应状态
  68. * @param fPid 主表id
  69. * @return 结果
  70. */
  71. int warehouseFeesFollowUpdate(@Param("fPid") Long fPid, @Param("fettle") Long fettle, @Param("auditItem") Date auditItem);
  72. /**
  73. * 根据费用表id 更新库存费用表对应状态
  74. *
  75. * @param fettle 对应状态
  76. * @param fPid 主表id
  77. * @return 结果
  78. */
  79. int warehouseFeesFollowUpdateById(@Param("fPid") Long fPid, @Param("fettle") Long fettle, @Param("auditItem") Date auditItem);
  80. public int updateTWarehousebillsfee(@Param("map") Map<String, Object> map);
  81. /**
  82. * 根据主表id 查询库存费用表数据
  83. *
  84. * @param fPid 主表id
  85. * @return 结果
  86. */
  87. List<TWarehousebillsfees> selectTWarehousebillsfeesByPId(Long fPid);
  88. List<TWarehousebillsfees> selectWarehousebillsfeesByPId(Long fId);
  89. public int selectReconciliation(Long fId);
  90. public int selectCharge(Long fId);
  91. public int selectPay(Long fId);
  92. public List<TWarehousebillsfees> selectFeesByPId(@Param("fPid") Long fPid, @Param("fDc") String fDc);
  93. public List<Map<String, Object>> voyageFeeDetails(@Param("fPid") Long fPid, @Param("fDc") String fDc);
  94. List<Map<String, Object>> selectSubItemsFeeDetails(@Param("fPid") Long fPid,@Param("fDc") String fDc);
  95. int deleteFessByFPid(@Param("fPid") Long fPid, @Param("fDc") String fDc);
  96. /**
  97. * 查询总账统计报表
  98. *
  99. * @param tWarehousebillsfees
  100. * @return
  101. */
  102. public List<FleetExcel> selectFleetExcelList(TWarehousebillsfees tWarehousebillsfees);
  103. /**
  104. * 查询总账统计报表月份总数
  105. *
  106. * @param tWarehousebillsfees
  107. * @return
  108. */
  109. public FleetExcel selectFleetExcelMonthList(TWarehousebillsfees tWarehousebillsfees);
  110. /**
  111. * 网页版对账查询
  112. *
  113. * @param tAccount
  114. * @return
  115. */
  116. public List<Map<String, Object>> webVersionReconciliation(TAccount tAccount);
  117. /**
  118. * 网页版对账查询明细
  119. *
  120. * @param tAccount
  121. * @return
  122. */
  123. public List<Map<String, Object>> webVersionDetail(TAccount tAccount);
  124. /**
  125. * 查询来源id
  126. *
  127. * @param fId
  128. * @return
  129. */
  130. public List<Long> selectTWarehousebillsfeesSrcId(Long fId);
  131. /**
  132. * 首页应收款排名
  133. *
  134. * @return
  135. */
  136. public List<Map<String, Object>> accountsDue();
  137. /**
  138. * 获取查询菜单数据
  139. *
  140. * @param tWarehousebillsfees
  141. * @return
  142. */
  143. public List<QueryMenu> selectQueryMenuList(TWarehousebillsfees tWarehousebillsfees);
  144. /**
  145. * 查询账单明细导出分项所需数据
  146. *
  147. * @param tWarehousebillsfees
  148. * @return
  149. */
  150. List<Map<String, Object>> selectBillDetailsSubItemNew(TWarehousebillsfees tWarehousebillsfees);
  151. List<Map<String, Object>> selectFeesBymblnoAndFname(@Param("fMblno") String fMblno,@Param("fCorpid") Long fCorpid,@Param("fDc") String fDc, @Param("fBsdateList")List<String> fBsdateList,@Param("fReviewDateList")List<String> fReviewDateList);
  152. List<Long> getCorpid(@Param("fIds") List<Long> fIds);
  153. List<Map<String, Object>> selectTWarehousebillsfeesList1(TWarehousebillsfees tWarehousebillsfees);
  154. void updateByPid(@Param("fId")Long fId, @Param("fChargedate")Date fChargedate);
  155. }