|
@@ -3,6 +3,7 @@ package com.fdkankan.fusion.service.impl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
|
+import com.fdkankan.fusion.entity.Model;
|
|
|
import com.fdkankan.fusion.exception.BusinessException;
|
|
|
import com.fdkankan.common.response.PageInfo;
|
|
|
import com.fdkankan.common.util.JwtUtil;
|
|
@@ -15,8 +16,10 @@ import com.fdkankan.fusion.response.SceneVo;
|
|
|
import com.fdkankan.fusion.service.ICaseNumService;
|
|
|
import com.fdkankan.fusion.service.ICaseService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.fdkankan.fusion.service.IModelService;
|
|
|
import com.fdkankan.fusion.service.ISceneService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -41,6 +44,8 @@ public class CaseServiceImpl extends ServiceImpl<ICaseMapper, CaseEntity> implem
|
|
|
ICaseNumService caseNumService;
|
|
|
@Autowired
|
|
|
FdHotService fdHotService;
|
|
|
+ @Autowired
|
|
|
+ IModelService modelService;
|
|
|
|
|
|
@Override
|
|
|
public PageInfo pageList(CaseParam param,String token) {
|
|
@@ -67,14 +72,25 @@ public class CaseServiceImpl extends ServiceImpl<ICaseMapper, CaseEntity> implem
|
|
|
if(numList ==null || numList.size() <=0){
|
|
|
continue;
|
|
|
}
|
|
|
- ScenePram scenePram = new ScenePram();
|
|
|
- scenePram.setType(type);
|
|
|
- scenePram.setPageNum(1);
|
|
|
- scenePram.setPageSize(99999);
|
|
|
- scenePram.setNumList(typeMap.get(type));
|
|
|
- PageInfo pageInfo = sceneService.pageList(scenePram,token);
|
|
|
- List<SceneVo> list1 = (List<SceneVo>) pageInfo.getList();
|
|
|
- listAll.addAll(list1);
|
|
|
+ if(type == 0 || type == 1 || type == 2){
|
|
|
+ ScenePram scenePram = new ScenePram();
|
|
|
+ scenePram.setType(type);
|
|
|
+ scenePram.setPageNum(1);
|
|
|
+ scenePram.setPageSize(99999);
|
|
|
+ scenePram.setNumList(typeMap.get(type));
|
|
|
+ PageInfo pageInfo = sceneService.pageList(scenePram,token);
|
|
|
+ List<SceneVo> list1 = (List<SceneVo>) pageInfo.getList();
|
|
|
+ listAll.addAll(list1);
|
|
|
+ }else if(type == 3){
|
|
|
+ List<SceneVo> voList = new ArrayList<>();
|
|
|
+ List<Model> modelList = modelService.getListByModeId(numList);
|
|
|
+ for (Model model : modelList) {
|
|
|
+ SceneVo sceneVo = new SceneVo();
|
|
|
+ BeanUtils.copyProperties(model,sceneVo);
|
|
|
+ voList.add(sceneVo);
|
|
|
+ }
|
|
|
+ listAll.addAll(voList);
|
|
|
+ }
|
|
|
}
|
|
|
return listAll;
|
|
|
}
|