Commit d149b710 by Jony.L

获取解决方案详情接口

parent b2edc6ff
...@@ -66,7 +66,9 @@ import java.util.Map; ...@@ -66,7 +66,9 @@ import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import static com.luhu.computility.framework.common.exception.util.ServiceExceptionUtil.exception; import static com.luhu.computility.framework.common.exception.util.ServiceExceptionUtil.exception;
import static com.luhu.computility.framework.common.pojo.CommonResult.error;
import static com.luhu.computility.framework.common.pojo.CommonResult.success; import static com.luhu.computility.framework.common.pojo.CommonResult.success;
import static com.luhu.computility.module.biz.enums.ErrorCodeConstants.GET_SOLUTION_ERROR;
import static com.luhu.computility.module.product.enums.ErrorCodeConstants.SPU_NOT_ENABLE; import static com.luhu.computility.module.product.enums.ErrorCodeConstants.SPU_NOT_ENABLE;
import static com.luhu.computility.module.product.enums.ErrorCodeConstants.SPU_NOT_EXISTS; import static com.luhu.computility.module.product.enums.ErrorCodeConstants.SPU_NOT_EXISTS;
...@@ -284,21 +286,35 @@ public class ApiController { ...@@ -284,21 +286,35 @@ public class ApiController {
} }
// *//** /**
// *行业应用详情-解决方案 *行业应用详情-解决方案
// *//* */
// @ApiOperation(value = "行业应用详情-解决方案",notes = "行业应用详情-解决方案") @GetMapping(value = "/solutionDetail")
// @GetMapping(value = "/solutionDetail") @ResponseBody
// @ResponseBody public CommonResult<SolutionDO> solutionDetail(@Param(value = "id") Long id){
// public R solutionDetail(@Param(value = "id") Long id){ //业务实现部分
// //业务实现部分 SolutionDO detail = solutionService.getSolution(id);
// BizSolution detail = bizSolutionService.selectBizSolutionById(id); if(detail != null) {
// if(detail != null) { return success(detail);
// return R.ok(detail); }
// }else { else {
// return R.fail("无法获取详情,请重试!"); return error(GET_SOLUTION_ERROR);
// } }
// } }
@GetMapping(value = "/getAllSolutionDetail")
@ResponseBody
public CommonResult<List<SolutionDO>> getAllSolutionDetail(){
SolutionPageReqVO reqVO = new SolutionPageReqVO();
List<SolutionDO> detailList = solutionService.selectSolutionList(reqVO);
if(detailList != null) {
return success(detailList);
}
else {
return error(GET_SOLUTION_ERROR);
}
}
// *//** // *//**
......
...@@ -23,4 +23,6 @@ public interface ErrorCodeConstants { ...@@ -23,4 +23,6 @@ public interface ErrorCodeConstants {
ErrorCode PARTNER_NOT_EXISTS = new ErrorCode(1_040_016_000, "合作伙伴管理不存在"); ErrorCode PARTNER_NOT_EXISTS = new ErrorCode(1_040_016_000, "合作伙伴管理不存在");
ErrorCode SOLUTION_NOT_EXISTS = new ErrorCode(1_040_017_000, "解决方案不存在"); ErrorCode SOLUTION_NOT_EXISTS = new ErrorCode(1_040_017_000, "解决方案不存在");
ErrorCode GET_SOLUTION_ERROR = new ErrorCode(1_040_017_001, "无法获取详情,请重试!");
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment