SysUserAccountHistoryMapper.java 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. package com.ydtech.modules.admin.dao;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  4. import com.ydtech.modules.admin.model.dto.*;
  5. import com.ydtech.modules.admin.model.po.SysUserAccountHistory;
  6. import org.apache.ibatis.annotations.Param;
  7. import java.math.BigDecimal;
  8. import java.util.HashMap;
  9. import java.util.List;
  10. /**
  11. * @author Administrator
  12. * @description 针对表【sys_user_account_history(用户账户表)】的数据库操作Mapper
  13. * @createDate 2024-03-05 11:47:38
  14. * @Entity generator.domain.SysUserAccountHistory
  15. */
  16. public interface SysUserAccountHistoryMapper extends BaseMapper<SysUserAccountHistory> {
  17. /**
  18. * @version
  19. * @author: hxl
  20. * @Date: 2024/6/5 18:38
  21. * @Description: 查询年分
  22. */
  23. List<RevenueReportDto> revenueReportYear(HashMap<String,Object> map);
  24. /**
  25. * @version
  26. * @author: hxl
  27. * @Date: 2024/6/5 18:39
  28. * @Description: 月分
  29. */
  30. List<RevenueReportDto> revenueReportMonth(HashMap<String,Object> map);
  31. /**
  32. * @version
  33. * @author: hxl
  34. * @Date: 2024/6/5 18:39
  35. * @Description: 日
  36. */
  37. List<RevenueReportDto> revenueReportDay(HashMap<String,Object> map);
  38. /**
  39. * @version
  40. * @author: hxl
  41. * @Date: 2024/6/19 15:55
  42. * @Description: 通过用户id查询费用类型记录表
  43. */
  44. Page<MyCollectInAdvanceDto> findMyIncomeAndExpensesAmountByUserId(@Param("page") Page<MyCollectInAdvanceDto> page, @Param("myIncomeAndExpensesQueryDto") MyIncomeAndExpensesQueryDto myIncomeAndExpensesQueryDto);
  45. /**
  46. * @version
  47. * @author: hxl
  48. * @Date: 2024/6/19 15:56
  49. * @Description: 通过用户id查询费用类型记录总条数
  50. */
  51. Long findMyIncomeAndExpensesAmountByUserIdCount(@Param("myIncomeAndExpensesQueryDto") MyIncomeAndExpensesQueryDto myIncomeAndExpensesQueryDto);
  52. /**
  53. * @version
  54. * @author: hxl
  55. * @Date: 2024/6/19 17:12
  56. * @Description: 查询用户总金额
  57. */
  58. BigDecimal findSumAmount(@Param("myIncomeAndExpensesQueryDto") MyIncomeAndExpensesQueryDto myIncomeAndExpensesQueryDto);
  59. /**
  60. * @version
  61. * @author: hxl
  62. * @Date: 2024/6/19 20:13
  63. * @Description: 查询用户总金额
  64. */
  65. BigDecimal findSumAmountByUserId(@Param("userId") String userId,@Param("types") String types);
  66. /**
  67. * @version
  68. * @author: hxl
  69. * @Date: 2024/6/30 18:38
  70. * @Description: 查询分页
  71. */
  72. Page<ExportExpenditureTypeDetalsSZDto> findMyIncomeAndExpensesAmountNewByUserId(@Param("page") Page<ExportExpenditureTypeDetalsSZDto> page, @Param("vo") MyCollectInAdvanceQueryNewDto myCollectInAdvanceQueryNewDto);
  73. /**
  74. * @version
  75. * @author: hxl
  76. * @Date: 2024/6/30 18:38
  77. * @Description: 导出
  78. */
  79. List<ExportExpenditureTypeDetalsSZDto> exportMyIncomeAndExpensesAmountNewByUserId(@Param("vo") MyCollectInAdvanceQueryNewDto myCollectInAdvanceQueryNewDto);
  80. }