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
a427c9ed
Commit
a427c9ed
authored
Nov 14, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加已经部署脚本
parent
34b5c84e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
base-manager/src/main/java/com/mortals/xhx/module/site/web/SiteController.java
.../java/com/mortals/xhx/module/site/web/SiteController.java
+11
-8
No files found.
base-manager/src/main/java/com/mortals/xhx/module/site/web/SiteController.java
View file @
a427c9ed
...
@@ -545,13 +545,18 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
...
@@ -545,13 +545,18 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
if
(
ObjectUtils
.
isEmpty
(
areaCode
))
{
if
(
ObjectUtils
.
isEmpty
(
areaCode
))
{
throw
new
AppException
(
"区域编码不能为空!"
);
throw
new
AppException
(
"区域编码不能为空!"
);
}
}
SiteEntity
one
=
this
.
service
.
selectOne
(
new
SiteQuery
().
areaCode
(
areaCode
).
siteName
(
siteName
),
getContext
());
SiteEntity
one
=
this
.
service
.
selectOne
(
new
SiteQuery
().
areaCode
(
areaCode
).
siteName
(
siteName
),
getContext
());
if
(!
ObjectUtils
.
isEmpty
(
one
))
throw
new
AppException
(
"当前区域下站点名称已存在!"
);
if
(!
ObjectUtils
.
isEmpty
(
one
))
throw
new
AppException
(
"当前区域下站点名称已存在!"
);
AreaEntity
areaEntity
=
areaService
.
selectOne
(
new
AreaQuery
().
areaCode
(
areaCode
),
getContext
());
AreaEntity
areaEntity
=
areaService
.
selectOne
(
new
AreaQuery
().
areaCode
(
areaCode
),
getContext
());
siteEntity
.
initAttrValue
();
siteEntity
.
initAttrValue
();
//查询是否有站点了,如果有站点,这强制更新为站点 id=1的数据
SiteEntity
site
=
this
.
service
.
get
(
1L
);
if
(!
ObjectUtils
.
isEmpty
(
site
))
{
siteEntity
.
setId
(
site
.
getId
());
}
siteEntity
.
setAreaCode
(
areaCode
);
siteEntity
.
setAreaCode
(
areaCode
);
siteEntity
.
setSiteName
(
siteName
);
siteEntity
.
setSiteName
(
siteName
);
if
(!
ObjectUtils
.
isEmpty
(
areaEntity
))
{
if
(!
ObjectUtils
.
isEmpty
(
areaEntity
))
{
...
@@ -562,7 +567,7 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
...
@@ -562,7 +567,7 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
SiteEntity
save
=
this
.
service
.
save
(
siteEntity
,
getContext
());
SiteEntity
save
=
this
.
service
.
save
(
siteEntity
,
getContext
());
//todo 更新相关表中的站点名称,站点编码,站点ID
//todo 更新相关表中的站点名称,站点编码,站点ID
this
.
service
.
updateSiteInfo
(
siteEntity
,
getContext
());
this
.
service
.
updateSiteInfo
(
siteEntity
,
getContext
());
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
...
@@ -577,6 +582,4 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
...
@@ -577,6 +582,4 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
}
}
}
}
\ No newline at end of file
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