| | |
| | | package com.yeshi.fanli.dao.mybatis.money; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.money.UserMoneyDebt; |
| | | import com.yeshi.fanli.entity.money.UserMoneyDebt.UserMoneyDebtTypeEnum; |
| | | |
| | | public interface UserMoneyDebtMapper extends BaseMapper<UserMoneyDebt> { |
| | | |
| | | /** |
| | | * 根据用户ID与sourceId查询记录 |
| | | * |
| | | * @param uid |
| | | * @param sourceId |
| | | * @return |
| | | */ |
| | | UserMoneyDebt selectByUidAndTypeAndSourceId(@Param("uid") Long uid, @Param("type") UserMoneyDebtTypeEnum type, |
| | | @Param("sourceId") Long sourceId); |
| | | |
| | | UserMoneyDebt selectByTypeAndSourceId(@Param("type") UserMoneyDebtTypeEnum type, @Param("sourceId") Long sourceId); |
| | | |
| | | /** |
| | | * 查询欠债 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<UserMoneyDebt> listByUidWithHasLeftMoney(@Param("uid") Long uid, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.money;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.money.UserMoneyDebt;
|
| | | import com.yeshi.fanli.entity.money.UserMoneyDebt.UserMoneyDebtTypeEnum;
|
| | |
|
| | | public interface UserMoneyDebtMapper extends BaseMapper<UserMoneyDebt> {
|
| | |
|
| | | /**
|
| | | * 根据用户ID与sourceId查询记录
|
| | | * |
| | | * @param uid
|
| | | * @param sourceId
|
| | | * @return
|
| | | */
|
| | | UserMoneyDebt selectByUidAndTypeAndSourceId(@Param("uid") Long uid, @Param("type") UserMoneyDebtTypeEnum type,
|
| | | @Param("sourceId") Long sourceId);
|
| | |
|
| | | UserMoneyDebt selectByTypeAndSourceId(@Param("type") UserMoneyDebtTypeEnum type, @Param("sourceId") Long sourceId);
|
| | |
|
| | | /**
|
| | | * 查询欠债
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<UserMoneyDebt> listByUidWithHasLeftMoney(@Param("uid") Long uid, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | } |