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
c486a859
Commit
c486a859
authored
Jul 10, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: 修改员工类型查询逻辑
parent
5984e9e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+8
-8
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 @
c486a859
...
...
@@ -1874,8 +1874,8 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
public
JSONArray
queryRYLX
(
JSONObject
params
)
{
JSONArray
result
=
new
JSONArray
();
JSONArray
type
=
params
.
containsKey
(
"type"
)
?
JSONObject
.
parseArray
(
JSONObject
.
toJSONString
(
params
.
get
(
"t
ype"
)))
:
new
JSONArray
();
String
subType
=
params
.
containsKey
(
"subType"
)
?
params
.
get
(
"subType
"
).
toString
()
:
""
;
JSONArray
unitType
=
params
.
containsKey
(
"unitType"
)
&&
!
""
.
equals
(
params
.
get
(
"unitType"
))
?
JSONObject
.
parseArray
(
JSONObject
.
toJSONString
(
params
.
get
(
"unitT
ype"
)))
:
new
JSONArray
();
String
newPost
=
params
.
containsKey
(
"newPost"
)
?
params
.
get
(
"newPost
"
).
toString
()
:
""
;
List
<
String
>
typeList
=
new
ArrayList
<>(
Arrays
.
asList
(
"QYRYGW"
,
...
...
@@ -1891,21 +1891,21 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
.
in
(
DataDictionary:
:
getType
,
typeList
)
.
list
();
if
(!
""
.
equals
(
subType
))
{
if
(!
""
.
equals
(
newPost
))
{
List
<
DataDictionary
>
childrenrylx
=
dataDictionaryService
.
lambdaQuery
()
.
in
(
DataDictionary:
:
getParent
,
subType
)
.
in
(
DataDictionary:
:
getParent
,
newPost
)
.
like
(
DataDictionary:
:
getType
,
"QYRYGW"
)
.
orderByAsc
(
DataDictionary:
:
getSortNum
)
.
list
();
result
=
deployDictionary
(
childrenrylx
);
}
if
(!
ObjectUtils
.
isEmpty
(
type
)
&&
!
t
ype
.
contains
(
"all"
))
{
if
(!
ObjectUtils
.
isEmpty
(
unitType
)
&&
!
unitT
ype
.
contains
(
"all"
))
{
try
{
ArrayList
<
String
>
postDictCodeList
=
new
ArrayList
<>();
JsonNode
jsonNode
=
new
ObjectMapper
().
readTree
(
unitTypeLimitUserType
.
getInputStream
());
type
.
forEach
(
unitType
->
{
JsonNode
companyTypeNode
=
jsonNode
.
get
(
unitType
.
toString
());
unitType
.
forEach
(
item
->
{
JsonNode
companyTypeNode
=
jsonNode
.
get
(
item
.
toString
());
if
(
companyTypeNode
!=
null
&&
companyTypeNode
.
isObject
())
{
Iterator
<
Map
.
Entry
<
String
,
JsonNode
>>
fields
=
companyTypeNode
.
fields
();
while
(
fields
.
hasNext
())
{
...
...
@@ -1923,7 +1923,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
}
}
if
(
""
.
equals
(
subType
)
&&
(
ObjectUtils
.
isEmpty
(
type
)
||
t
ype
.
contains
(
"all"
)))
{
if
(
""
.
equals
(
newPost
)
&&
(
ObjectUtils
.
isEmpty
(
unitType
)
||
unitT
ype
.
contains
(
"all"
)))
{
result
=
deployDictionary
(
allPost
);
}
...
...
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