Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
ead53099
Commit
ead53099
authored
Jul 04, 2025
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(amos-boot-module-statistics): 修改技术参数查询异常抛出方式
- 将 BadRequest 异常替换为 BaseException -保持错误信息不变,添加状态码参数
parent
db16110d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+2
-1
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
View file @
ead53099
...
@@ -55,6 +55,7 @@ import org.springframework.util.ObjectUtils;
...
@@ -55,6 +55,7 @@ import org.springframework.util.ObjectUtils;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
...
@@ -1831,7 +1832,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -1831,7 +1832,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
public
JSONArray
queryTechParam
(
String
type
)
{
public
JSONArray
queryTechParam
(
String
type
)
{
if
(
ValidationUtil
.
isEmpty
(
type
))
{
if
(
ValidationUtil
.
isEmpty
(
type
))
{
throw
new
Ba
dRequest
(
"需要先选择设备品种,才能选择技术参数"
);
throw
new
Ba
seException
(
"需要先选择设备品种,才能选择技术参数"
,
"200"
,
"需要先选择设备品种,才能选择技术参数"
);
}
}
List
<
TechParamItem
>
paramMetaList
=
TechParamUtil
.
getParamMetaList
(
type
);
List
<
TechParamItem
>
paramMetaList
=
TechParamUtil
.
getParamMetaList
(
type
);
JSONArray
list
=
new
JSONArray
();
JSONArray
list
=
new
JSONArray
();
...
...
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