UserMoneyDao.java 938 B

123456789101112131415161718192021222324
  1. package com.sqx.modules.app.dao;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.sqx.modules.app.entity.UserMoney;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.math.BigDecimal;
  7. @Mapper
  8. public interface UserMoneyDao extends BaseMapper<UserMoney> {
  9. void updateMayMoney(@Param("type") Integer type, @Param("userId") Long userId, @Param("money") Double money);
  10. int addMoney(@Param("userId") Long userId, @Param("money") BigDecimal money);
  11. UserMoney selectMoney(@Param("userId") Long userId);
  12. int addUserMoney(@Param("userId") Long userId,@Param("money") BigDecimal money, @Param("type") Integer type);
  13. int updateUserBalance(@Param("userId") Long userId,@Param("money") BigDecimal money, @Param("type") Integer type);
  14. int updateCashDeposit(@Param("userId") Long userId,@Param("money") BigDecimal money, @Param("type") Integer type);
  15. }