From 0622fc9c8a464a1260ebca4071a2cad9c83a5a9a Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期四, 12 九月 2019 15:52:42 +0800 Subject: [PATCH] 返利奖励券 跳转订单 不显示订单上方统计信息 --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDebtMapper.java | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDebtMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDebtMapper.java index d1173f2..e1e6c70 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDebtMapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDebtMapper.java @@ -1,9 +1,12 @@ 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> { @@ -14,6 +17,20 @@ * @param sourceId * @return */ - UserMoneyDebt selectByUidAndSourceId(@Param("uid")Long uid,@Param("sourceId") Long sourceId); + 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); } \ No newline at end of file -- Gitblit v1.8.0