Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-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
赵啸非
device-new-platform
Commits
cc3ed4a6
Commit
cc3ed4a6
authored
Aug 28, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新资源部署
parent
145183b0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
97 additions
and
29 deletions
+97
-29
device-manager/src/main/java/com/mortals/xhx/busiz/web/DeviceApiController.java
...n/java/com/mortals/xhx/busiz/web/DeviceApiController.java
+93
-27
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceModuleDistributeServiceImpl.java
...evice/service/impl/DeviceModuleDistributeServiceImpl.java
+4
-2
No files found.
device-manager/src/main/java/com/mortals/xhx/busiz/web/DeviceApiController.java
View file @
cc3ed4a6
This diff is collapsed.
Click to expand it.
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceModuleDistributeServiceImpl.java
View file @
cc3ed4a6
...
...
@@ -80,9 +80,11 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D
String
path
=
GlobalSysInfo
.
getParamValue
(
Constant
.
DISTRIBUTE_PATH
,
"/home/publish/app/homeDeviceUrl"
);
String
siteCode
=
distributeEntity
.
getSiteCode
();
Long
siteId
=
distributeEntity
.
getSiteId
();
String
code
=
distributeEntity
.
getProductCode
();
String
imageRe
=
distributeEntity
.
getImageResolutionValue
();
String
disPath
=
path
+
"/"
+
siteCode
+
"/"
+
code
+
"/"
+
imageRe
;
String
disPath
=
path
+
"/"
+
siteId
+
"/"
+
code
+
"/"
+
imageRe
;
//判断目标目录是否存在 如果存在 这删除
if
(
FileUtil
.
isDirectory
(
disPath
))
{
FileUtil
.
del
(
disPath
);
...
...
@@ -129,7 +131,6 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D
}
//查询同类资源,变更为非默认值后 再更新
DeviceModuleDistributeQuery
query
=
new
DeviceModuleDistributeQuery
();
...
...
@@ -185,6 +186,7 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D
moduleDistributeEntity
.
setSiteCode
(
sitePdu
.
getSiteCode
());
moduleDistributeEntity
.
setDistributeFilePath
(
""
);
moduleDistributeEntity
.
setDistribute
(
YesNoEnum
.
NO
.
getValue
());
moduleDistributeEntity
.
setSelected
(
YesNoEnum
.
NO
.
getValue
());
this
.
save
(
moduleDistributeEntity
,
context
);
}
}
...
...
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