CaseAnimationServiceImpl.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.fdkankan.fusion.service.impl;
  2. import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  3. import com.fdkankan.fusion.entity.CaseAnimation;
  4. import com.fdkankan.fusion.mapper.ICaseAnimationMapper;
  5. import com.fdkankan.fusion.service.ICaseAnimationService;
  6. import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  7. import org.springframework.stereotype.Service;
  8. import java.util.List;
  9. /**
  10. * <p>
  11. * 服务实现类
  12. * </p>
  13. *
  14. * @author
  15. * @since 2025-03-26
  16. */
  17. @Service
  18. public class CaseAnimationServiceImpl extends ServiceImpl<ICaseAnimationMapper, CaseAnimation> implements ICaseAnimationService {
  19. @Override
  20. public List<CaseAnimation> getListByCaseId(Integer caseId) {
  21. LambdaQueryWrapper<CaseAnimation> wrapper = new LambdaQueryWrapper<>();
  22. wrapper.eq(CaseAnimation::getCaseId,caseId);
  23. return this.list(wrapper);
  24. }
  25. @Override
  26. public List<CaseAnimation> getListByFusionId(Integer fusionId) {
  27. LambdaQueryWrapper<CaseAnimation> wrapper = new LambdaQueryWrapper<>();
  28. wrapper.eq(CaseAnimation::getFusionId,fusionId);
  29. return this.list(wrapper);
  30. }
  31. }