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
6dcdba3c
Commit
6dcdba3c
authored
Mar 01, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加业务修改通知php
parent
c78eb922
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
17 deletions
+32
-17
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
...m/mortals/xhx/module/app/service/impl/AppServiceImpl.java
+32
-17
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
View file @
6dcdba3c
...
...
@@ -63,13 +63,25 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
private
AppInfoTempleteFieldService
appInfoTempleteFieldService
;
@Autowired
private
AppVersionService
appVersionService
;
@Override
protected
void
findAfter
(
AppEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
AppEntity
>
list
)
throws
AppException
{
//排序
/* if (!ObjectUtils.isEmpty(params.getIdList())) {
if
(!
ObjectUtils
.
isEmpty
(
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 < params.getIdList()
.size(); i++) {
Long id = params.getIdList()
.get(i);
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
()))
{
//判断位置是否一直
...
...
@@ -80,7 +92,10 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
}
}
}
}*/
}
catch
(
Exception
e
)
{
log
.
error
(
"排序异常!"
,
e
);
}
}
//统计站点
list
.
forEach
(
item
->
{
List
<
AppEntity
>
appEntityList
=
this
.
find
(
new
AppQuery
().
appCode
(
item
.
getAppCode
()),
context
);
...
...
@@ -130,11 +145,11 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
FileUtil
.
del
(
disPath
);
}
//ZipUtils.unzip(new File(targetFilePath), disPath);
String
fileEncode
=
"UTF-8"
;
String
fileEncode
=
"UTF-8"
;
try
{
fileEncode
=
EncodeUtil
.
getEncode
(
targetFilePath
,
true
);
fileEncode
=
EncodeUtil
.
getEncode
(
targetFilePath
,
true
);
}
catch
(
Exception
e
)
{
log
.
error
(
"异常"
,
e
);
log
.
error
(
"异常"
,
e
);
}
ZipUtil
.
unzip
(
targetFilePath
,
disPath
,
Charset
.
forName
(
fileEncode
));
//更新
...
...
@@ -164,11 +179,11 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
FileUtil
.
del
(
disPath
);
}
// ZipUtils.unzip(new File(targetFilePath), disPath);
String
fileEncode
=
"UTF-8"
;
String
fileEncode
=
"UTF-8"
;
try
{
fileEncode
=
EncodeUtil
.
getEncode
(
targetFilePath
,
true
);
fileEncode
=
EncodeUtil
.
getEncode
(
targetFilePath
,
true
);
}
catch
(
Exception
e
)
{
log
.
error
(
"异常"
,
e
);
log
.
error
(
"异常"
,
e
);
}
ZipUtil
.
unzip
(
targetFilePath
,
disPath
,
Charset
.
forName
(
fileEncode
));
...
...
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