Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
c67ec4eb
Commit
c67ec4eb
authored
Nov 21, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改同步事项
parent
9417d5a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
36 deletions
+2
-36
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
...m/mortals/xhx/module/app/service/impl/AppServiceImpl.java
+2
-36
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
View file @
c67ec4eb
...
@@ -111,42 +111,8 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
...
@@ -111,42 +111,8 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
}
else
{
}
else
{
item
.
setAppIconUrl
(
item
.
getAppIconPath
());
item
.
setAppIconUrl
(
item
.
getAppIconPath
());
}
}
};
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
}
private
void
sortAppByIdList
(
AppEntity
params
,
List
<
AppEntity
>
list
)
{
if
(!
ObjectUtils
.
isEmpty
(
params
.
getIdList
()))
{
log
.
info
(
"请求的排序id列表:{}"
,
JSON
.
toJSONString
(
params
.
getIdList
()));
try
{
//去除idlist中不存在的
Set
<
Long
>
idSet
=
list
.
stream
().
map
(
item
->
item
.
getId
()).
collect
(
Collectors
.
toSet
());
List
<
Long
>
idList
=
params
.
getIdList
();
Iterator
<
Long
>
ite
=
idList
.
iterator
();
while
(
ite
.
hasNext
())
{
Long
next
=
ite
.
next
();
if
(!
idSet
.
contains
(
next
))
{
ite
.
remove
();
}
}
//根据idList进行排序
for
(
int
i
=
0
;
i
<
idList
.
size
();
i
++)
{
Long
id
=
idList
.
get
(
i
);
for
(
int
j
=
0
;
j
<
list
.
size
();
j
++)
{
if
(
id
.
equals
(
list
.
get
(
j
).
getId
()))
{
//判断位置是否一直
if
(
i
!=
j
)
{
//交换
Collections
.
swap
(
list
,
i
,
j
);
}
}
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"排序异常!"
,
e
);
}
}
}
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
}
}
private
void
checkDeviceBlackApp
(
AppEntity
params
,
List
<
AppEntity
>
list
)
{
private
void
checkDeviceBlackApp
(
AppEntity
params
,
List
<
AppEntity
>
list
)
{
...
@@ -453,7 +419,7 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
...
@@ -453,7 +419,7 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
versionEntity
.
initAttrValue
();
versionEntity
.
initAttrValue
();
versionEntity
.
setAppId
(
entity
.
getId
());
versionEntity
.
setAppId
(
entity
.
getId
());
versionEntity
.
setAppName
(
entity
.
getAppName
());
versionEntity
.
setAppName
(
entity
.
getAppName
());
versionEntity
.
setVersion
(
++
versionNum
);
versionEntity
.
setVersion
(
versionNum
);
versionEntity
.
setNotes
(
entity
.
getNotes
());
versionEntity
.
setNotes
(
entity
.
getNotes
());
versionEntity
.
setFileName
(
entity
.
getFileName
());
versionEntity
.
setFileName
(
entity
.
getFileName
());
versionEntity
.
setFilePath
(
entity
.
getFilePath
());
versionEntity
.
setFilePath
(
entity
.
getFilePath
());
...
...
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