CashOutDao.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.sqx.modules.pay.dao;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.baomidou.mybatisplus.core.metadata.IPage;
  4. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  5. import com.sqx.modules.datacentre.query.DataCenterQuery;
  6. import com.sqx.modules.pay.controller.query.CashOutQueryDTO;
  7. import com.sqx.modules.pay.entity.CashOut;
  8. import com.sqx.modules.pay.vo.CashOutVO;
  9. import org.apache.ibatis.annotations.Mapper;
  10. import org.apache.ibatis.annotations.Param;
  11. import java.math.BigDecimal;
  12. import java.sql.Timestamp;
  13. import java.util.Date;
  14. import java.util.List;
  15. /**
  16. * @author fang
  17. * @date 2020/7/8
  18. */
  19. @Mapper
  20. public interface CashOutDao extends BaseMapper<CashOut> {
  21. List<CashOut> selectCashOutLimit3();
  22. Double selectCashOutSum(@Param("userId") Long userId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
  23. Double selectCashOutSumsByNowMonth(@Param("userId") Long userId);
  24. void updateMayMoney(@Param("type") Integer type,@Param("userId")Long userId,@Param("money") Double money);
  25. Double selectMayMoney(@Param("userId") Long userId);
  26. BigDecimal sumMoney(@Param("date") String date, @Param("dateType") String dateType, @Param("state") Integer state ,@Param("type") Integer type);
  27. Integer countMoney(@Param("date") String date, @Param("dateType") String dateType, @Param("state") Integer state, @Param("type") Integer type);
  28. Integer stayMoney(@Param("date") String date, @Param("dateType") String dateType, @Param("type") Integer type);
  29. BigDecimal applyMoneySum(@Param("date") String date, @Param("dateType") String dateType, @Param("type") Integer type);
  30. BigDecimal accomplishMoneySum(@Param("date") String date, @Param("dateType") String dateType, @Param("type") Integer type);
  31. BigDecimal refuseMoneySum(@Param("date") String date, @Param("dateType") String dateType, @Param("type") Integer type);
  32. BigDecimal zhifubaoMoneySum(@Param("date") String date, @Param("dateType") String dateType, @Param("type") Integer type);
  33. BigDecimal weixinMoneySum(@Param("date") String date, @Param("dateType") String dateType, @Param("type") Integer type);
  34. BigDecimal cashDepositMoneySum(@Param("date") String date, @Param("dateType") String dateType);
  35. BigDecimal cargoInsurance(@Param("query") DataCenterQuery query);
  36. BigDecimal MoneySumByIndentType(@Param("query") DataCenterQuery query, String indentType);
  37. BigDecimal cashDepositMoney(@Param("query") DataCenterQuery query);
  38. IPage<CashOutVO> selectCashOutList(@Param("page") IPage<CashOut> pages, @Param("params") CashOutQueryDTO queryDTO);
  39. Double selectCashOutTotal(@Param("params") CashOutQueryDTO queryDTO);
  40. Double selectCommissionTotal(@Param("params") CashOutQueryDTO queryDTO);
  41. List<CashOutVO> excelPayDetails(@Param("params") CashOutQueryDTO queryDTO);
  42. }