This commit is contained in:
admin
2024-06-06 16:39:49 +08:00
parent 3c38c0a9d4
commit ceca5c1711
8 changed files with 101 additions and 3 deletions

View File

@@ -15,6 +15,14 @@ import java.util.List;
public interface IPlayCustomGiftInfoService extends IService<PlayCustomGiftInfoEntity> {
/**
* 根据顾客ID和礼物ID查询当前礼物活点亮情况
* @param giftId 礼物ID
* @param customId 顾客ID
* @return 物活点亮情况
*/
PlayCustomGiftInfoEntity selectByGiftIdAndCustomId(String giftId,String customId);
/**
* 查询顾客已点亮礼物
*

View File

@@ -27,6 +27,14 @@ public class PlayCustomGiftInfoServiceImpl extends ServiceImpl<PlayCustomGiftInf
private PlayCustomGiftInfoMapper playCustomGiftInfoMapper;
@Override
public PlayCustomGiftInfoEntity selectByGiftIdAndCustomId(String giftId, String customId) {
LambdaQueryWrapper<PlayCustomGiftInfoEntity> lambdaQueryWrapper = new LambdaQueryWrapper<>();
lambdaQueryWrapper.eq(PlayCustomGiftInfoEntity::getCustomId, customId);
lambdaQueryWrapper.eq(PlayCustomGiftInfoEntity::getGiffId, giftId);
return this.baseMapper.selectOne(lambdaQueryWrapper);
}
/**
* 根据店员ID查询店员活动礼物列表
*