|
@@ -0,0 +1,35 @@
|
|
|
+package com.fdkankan.fusion.service.impl;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.fdkankan.fusion.common.ResultCode;
|
|
|
+import com.fdkankan.fusion.entity.CaseImg;
|
|
|
+import com.fdkankan.fusion.exception.BusinessException;
|
|
|
+import com.fdkankan.fusion.mapper.ICaseImgMapper;
|
|
|
+import com.fdkankan.fusion.request.CaseImgParam;
|
|
|
+import com.fdkankan.fusion.service.ICaseImgService;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ * 服务实现类
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author
|
|
|
+ * @since 2024-07-04
|
|
|
+ */
|
|
|
+@Service
|
|
|
+public class CaseImgServiceImpl extends ServiceImpl<ICaseImgMapper, CaseImg> implements ICaseImgService {
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<CaseImg> getByCaseId(CaseImgParam param) {
|
|
|
+ if(param.getCaseId() == null){
|
|
|
+ throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
+ }
|
|
|
+ LambdaQueryWrapper<CaseImg> wrapper = new LambdaQueryWrapper<>();
|
|
|
+ wrapper.eq(CaseImg::getCaseId,param.getCaseId());
|
|
|
+ return this.list(wrapper);
|
|
|
+ }
|
|
|
+}
|