CashOutDao.java 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. IPage<CashOutVO> selectRiderCashOutList(@Param("pages") Page<CashOut> pages, @Param("params") CashOutQueryDTO queryDTO);
  40. Double selectCashOutTotal(@Param("params") CashOutQueryDTO queryDTO);
  41. Double selectCommissionTotal(@Param("params") CashOutQueryDTO queryDTO);
  42. List<CashOutVO> excelPayDetails(@Param("params") CashOutQueryDTO queryDTO);
  43. }