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
b6a346f4
Commit
b6a346f4
authored
Jul 04, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
0930fc7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
ConditionEnum.java
.../amos/boot/module/statistics/api/enums/ConditionEnum.java
+2
-2
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+18
-0
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/enums/ConditionEnum.java
View file @
b6a346f4
...
@@ -14,9 +14,9 @@ public enum ConditionEnum {
...
@@ -14,9 +14,9 @@ public enum ConditionEnum {
* 类型枚举
* 类型枚举
*/
*/
like
(
"包含"
,
"like"
,
TechnicalParameter
.
ParamType
.
STRING
),
notLike
(
"不包含"
,
"notLike"
,
TechnicalParameter
.
ParamType
.
STRING
),
stringEq
(
"等于"
,
"eq"
,
TechnicalParameter
.
ParamType
.
STRING
),
stringEq
(
"等于"
,
"eq"
,
TechnicalParameter
.
ParamType
.
STRING
),
like
(
"匹配"
,
"like"
,
TechnicalParameter
.
ParamType
.
STRING
),
notLike
(
"不匹配"
,
"notLike"
,
TechnicalParameter
.
ParamType
.
STRING
),
numberEq
(
"等于"
,
"eq"
,
TechnicalParameter
.
ParamType
.
BIG_DECIMAL
),
numberEq
(
"等于"
,
"eq"
,
TechnicalParameter
.
ParamType
.
BIG_DECIMAL
),
numberGt
(
"大于"
,
"gt"
,
TechnicalParameter
.
ParamType
.
BIG_DECIMAL
),
numberGt
(
"大于"
,
"gt"
,
TechnicalParameter
.
ParamType
.
BIG_DECIMAL
),
numberLt
(
"小于"
,
"lt"
,
TechnicalParameter
.
ParamType
.
BIG_DECIMAL
),
numberLt
(
"小于"
,
"lt"
,
TechnicalParameter
.
ParamType
.
BIG_DECIMAL
),
...
...
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 @
b6a346f4
...
@@ -732,6 +732,24 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -732,6 +732,24 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
}
else
{
}
else
{
JSONArray
leftGroup
=
filterParams
.
getJSONArray
(
"group1"
);
JSONArray
leftGroup
=
filterParams
.
getJSONArray
(
"group1"
);
JSONArray
rightGroup
=
filterParams
.
getJSONArray
(
"group2"
);
JSONArray
rightGroup
=
filterParams
.
getJSONArray
(
"group2"
);
JSONArray
equListCodes
=
new
JSONArray
();
leftGroup
.
forEach
(
item
->
{
JSONObject
left
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
item
));
String
leftField
=
left
.
getString
(
"field"
);
String
leftValue
=
left
.
getString
(
"value"
);
if
(!
ObjectUtils
.
isEmpty
(
leftField
)
&&
leftField
.
equals
(
"EQU_LIST_CODE"
)
&&
!
ObjectUtils
.
isEmpty
(
leftValue
))
{
equListCodes
.
add
(
leftValue
);
}
});
rightGroup
.
forEach
(
item
->
{
JSONObject
left
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
item
));
String
rightField
=
left
.
getString
(
"field"
);
String
rightValue
=
left
.
getString
(
"value"
);
if
(!
ObjectUtils
.
isEmpty
(
rightField
)
&&
rightField
.
equals
(
"EQU_LIST_CODE"
)
&&
!
ObjectUtils
.
isEmpty
(
rightValue
))
{
equListCodes
.
add
(
rightValue
);
}
});
filterParams
.
put
(
"EQU_LIST"
,
equListCodes
);
Boolean
isOrGroup
=
or
.
equals
(
filterParams
.
getString
(
"groupAndOr"
))
?
Boolean
.
TRUE
:
Boolean
.
FALSE
;
Boolean
isOrGroup
=
or
.
equals
(
filterParams
.
getString
(
"groupAndOr"
))
?
Boolean
.
TRUE
:
Boolean
.
FALSE
;
handleAdvancedFilter
(
boolMust
,
leftGroup
,
rightGroup
,
isOrGroup
);
handleAdvancedFilter
(
boolMust
,
leftGroup
,
rightGroup
,
isOrGroup
);
}
}
...
...
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