TbAccountMapper.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package com.pj.project.tb_account;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.pj.utils.so.SoMap;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import org.springframework.stereotype.Repository;
  7. import java.math.BigDecimal;
  8. import java.util.List;
  9. import java.util.Map;
  10. /**
  11. * Mapper: tb_account -- 客户账户
  12. *
  13. * @author qzy
  14. */
  15. @Mapper
  16. @Repository
  17. public interface TbAccountMapper extends BaseMapper<TbAccount> {
  18. /**
  19. * 查集合 - 根据条件(参数为空时代表忽略指定条件)
  20. *
  21. * @param so 参数集合
  22. * @return 数据列表
  23. */
  24. List<TbAccount> getList(SoMap so);
  25. /**
  26. * 查 - 根据id
  27. * @param id 要查询的数据id
  28. * @return 实体对象
  29. */
  30. TbAccount getById(Long id);
  31. /**
  32. * 查集合 - 根据条件(参数为空时代表忽略指定条件)
  33. * @param so
  34. * @return 数据列表
  35. */
  36. List<TbAccountBO> getTbAccountBOList(SoMap so);
  37. TbAccountBO getByCustomerId(String customerId);
  38. TbAccount getAccountByPlate(String plate);
  39. void updateBalance(@Param("id") String id, @Param("balance") BigDecimal balance);
  40. }