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
ca51680e
Commit
ca51680e
authored
Jan 03, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改应用版本更新
parent
76775986
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
...m/mortals/xhx/module/app/service/impl/AppServiceImpl.java
+4
-4
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
View file @
ca51680e
...
@@ -180,7 +180,7 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
...
@@ -180,7 +180,7 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
}
}
//部署路径是否存在 如果不存在 创建目录,
//部署路径是否存在 如果不存在 创建目录,
//文件构成目录 /home/publish/app/common
//文件构成目录 /home/publish/app/common
String
disPath
=
"/home/publish/app
/common
"
;
String
disPath
=
"/home/publish/app"
;
//判断目标目录是否存在 如果存在 这删除
//判断目标目录是否存在 如果存在 这删除
if
(
FileUtil
.
isDirectory
(
disPath
))
{
if
(
FileUtil
.
isDirectory
(
disPath
))
{
...
@@ -394,8 +394,8 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
...
@@ -394,8 +394,8 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
String
originFilePath
=
appEntity
.
getFilePath
();
String
originFilePath
=
appEntity
.
getFilePath
();
String
filePath
=
entity
.
getFilePath
();
String
filePath
=
entity
.
getFilePath
();
String
fileName
=
entity
.
getFileName
();
String
fileName
=
entity
.
getFileName
();
entity
.
setFilePath
(
null
);
//
entity.setFilePath(null);
entity
.
setFileName
(
null
);
//
entity.setFileName(null);
//判断如果应用下架,通知自助服务终端
//判断如果应用下架,通知自助服务终端
if
(
entity
.
getShelves
()
==
YesNoEnum
.
NO
.
getValue
())
{
if
(
entity
.
getShelves
()
==
YesNoEnum
.
NO
.
getValue
())
{
...
@@ -411,7 +411,7 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
...
@@ -411,7 +411,7 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
entity
.
setFilePath
(
filePath
);
entity
.
setFilePath
(
filePath
);
this
.
updateAfter
(
entity
,
context
);
this
.
updateAfter
(
entity
,
context
);
//判断只有附件地址不等时候,才更新版本
//判断只有附件地址不等时候,才更新版本
if
(!
ObjectUtils
.
isEmpty
(
originFilePath
)
&&
!
originFilePath
.
equals
(
f
ilePath
))
{
if
(!
ObjectUtils
.
isEmpty
(
filePath
)
&&
!
filePath
.
equals
(
originF
ilePath
))
{
AppVersionQuery
appVersionQuery
=
new
AppVersionQuery
();
AppVersionQuery
appVersionQuery
=
new
AppVersionQuery
();
appVersionQuery
.
setAppId
(
entity
.
getId
());
appVersionQuery
.
setAppId
(
entity
.
getId
());
List
<
OrderCol
>
orderColList
=
new
ArrayList
<>();
List
<
OrderCol
>
orderColList
=
new
ArrayList
<>();
...
...
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