周和月 抽奖次数为永久1次
This commit is contained in:
parent
a44f2b99bc
commit
ddf062c3cb
|
|
@ -8,7 +8,7 @@ import java.util.Map;
|
|||
public interface DiscSpinningRecordService extends IService<DiscSpinningRecord> {
|
||||
|
||||
Integer countDraw(Long userId);
|
||||
//当月的 月记录 已抽 抽奖次数
|
||||
//记录 已抽 抽奖次数
|
||||
Integer countSourceRecord(Long sourceId,Long userId,String source);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public class DiscSpinningRecordServiceImpl extends ServiceImpl<DiscSpinningRecor
|
|||
@Override
|
||||
public Integer countSourceRecord(Long sourceId, Long userId, String source) {
|
||||
QueryWrapper<DiscSpinningRecord> recordQuery = new QueryWrapper<>();
|
||||
if (userId != null) {
|
||||
if (sourceId != null) {
|
||||
recordQuery.eq("source_id", sourceId);
|
||||
}
|
||||
recordQuery.eq("user_id", userId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue