Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d149b710
authored
Aug 15, 2025
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取解决方案详情接口
parent
b2edc6ff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
15 deletions
+33
-15
computility-module-biz/src/main/java/com/luhu/computility/module/biz/controller/app/index/ApiController.java
+31
-15
computility-module-biz/src/main/java/com/luhu/computility/module/biz/enums/ErrorCodeConstants.java
+2
-0
No files found.
computility-module-biz/src/main/java/com/luhu/computility/module/biz/controller/app/index/ApiController.java
View file @
d149b710
...
...
@@ -66,7 +66,9 @@ import java.util.Map;
import
java.util.stream.Collectors
;
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
.
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_EXISTS
;
...
...
@@ -284,21 +286,35 @@ public class ApiController {
}
// *//**
// *行业应用详情-解决方案
// *//*
// @ApiOperation(value = "行业应用详情-解决方案",notes = "行业应用详情-解决方案")
// @GetMapping(value = "/solutionDetail")
// @ResponseBody
// public R solutionDetail(@Param(value = "id") Long id){
// //业务实现部分
// BizSolution detail = bizSolutionService.selectBizSolutionById(id);
// if(detail != null) {
// return R.ok(detail);
// }else {
// return R.fail("无法获取详情,请重试!");
// }
// }
/**
*行业应用详情-解决方案
*/
@GetMapping
(
value
=
"/solutionDetail"
)
@ResponseBody
public
CommonResult
<
SolutionDO
>
solutionDetail
(
@Param
(
value
=
"id"
)
Long
id
){
//业务实现部分
SolutionDO
detail
=
solutionService
.
getSolution
(
id
);
if
(
detail
!=
null
)
{
return
success
(
detail
);
}
else
{
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
);
}
}
// *//**
...
...
computility-module-biz/src/main/java/com/luhu/computility/module/biz/enums/ErrorCodeConstants.java
View file @
d149b710
...
...
@@ -23,4 +23,6 @@ public interface ErrorCodeConstants {
ErrorCode
PARTNER_NOT_EXISTS
=
new
ErrorCode
(
1_040_016_000
,
"合作伙伴管理不存在"
);
ErrorCode
SOLUTION_NOT_EXISTS
=
new
ErrorCode
(
1_040_017_000
,
"解决方案不存在"
);
ErrorCode
GET_SOLUTION_ERROR
=
new
ErrorCode
(
1_040_017_001
,
"无法获取详情,请重试!"
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment