|
@@ -13,8 +13,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import javax.annotation.PostConstruct;
|
|
|
-
|
|
|
/**
|
|
|
* <p>
|
|
|
* 前端控制器
|
|
@@ -29,17 +27,15 @@ public class ArticleController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
ICaseService caseService;
|
|
|
- @Autowired
|
|
|
- IArticleService articleService;
|
|
|
/**
|
|
|
* 行业解决方案-案例展示
|
|
|
*/
|
|
|
@PostMapping("/detail")
|
|
|
- public Result detail(@RequestBody Article caseEntity) throws Exception {
|
|
|
+ public Result detail(@RequestBody Case caseEntity) throws Exception {
|
|
|
if(ObjectUtils.isEmpty(caseEntity.getId())){
|
|
|
return Result.success();
|
|
|
}
|
|
|
- return Result.success(articleService.getById(caseEntity.getId()));
|
|
|
+ return Result.success(caseService.getById(caseEntity.getId()));
|
|
|
}
|
|
|
|
|
|
@PostMapping("/allList")
|
|
@@ -58,6 +54,5 @@ public class ArticleController extends BaseController {
|
|
|
wrapper.orderByAsc(Case::getId);
|
|
|
return Result.success(caseService.list(wrapper));
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|