package cn.lili.modules.lmk.service.impl; import cn.lili.base.Result; import cn.lili.modules.lmk.domain.entity.ActivityReport; import cn.lili.modules.lmk.domain.vo.ActivityReportVO; import cn.lili.modules.lmk.mapper.ActivityReportMapper; import cn.lili.modules.lmk.service.ActivityReportService; import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; /** * lmk-shop-java * 活动报名实现类 * * @author : zxl * @date : 2025-07-31 10:04 **/ @Service @RequiredArgsConstructor public class ActivityReportServiceImpl extends ServiceImpl implements ActivityReportService { private final ActivityReportMapper activityReportMapper; @Override public Result delByActivityId(String activityId) { baseMapper.delete(new LambdaQueryChainWrapper<>(baseMapper) .eq(ActivityReport::getActivityId, activityId) .eq(ActivityReport::getDeleteFlag,Boolean.FALSE)); return Result.ok(); } @Override public ActivityReportVO getActivityReport(String activityId, String userId) { return baseMapper.getActivityReport(activityId,userId); } }