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
81d3f5df
Commit
81d3f5df
authored
May 11, 2023
by
彭松
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.scsmile.cn/zxf/smart_gov_platform
parents
2820f7b0
a2698750
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
6 deletions
+48
-6
base-manager/src/main/java/com/mortals/xhx/module/app/model/vo/AppVo.java
.../main/java/com/mortals/xhx/module/app/model/vo/AppVo.java
+10
-0
base-manager/src/main/java/com/mortals/xhx/module/app/service/AppService.java
...n/java/com/mortals/xhx/module/app/service/AppService.java
+4
-0
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppController.java
...in/java/com/mortals/xhx/module/app/web/AppController.java
+26
-0
base-manager/src/main/java/com/mortals/xhx/module/dept/model/DeptEntity.java
...in/java/com/mortals/xhx/module/dept/model/DeptEntity.java
+8
-6
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/model/vo/AppVo.java
View file @
81d3f5df
...
...
@@ -45,4 +45,14 @@ public class AppVo extends BaseEntityLong {
*/
private
String
deviceCode
;
/**
* 源app
*/
private
Long
sourceAppId
;
/**
* 目标app
*/
private
Long
targetAppId
;
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/app/service/AppService.java
View file @
81d3f5df
...
...
@@ -27,6 +27,10 @@ public interface AppService extends ICRUDService<AppEntity, Long> {
Rest
<
String
>
cloneAppsBySites
(
List
<
AppEntity
>
appList
,
List
<
SiteEntity
>
siteList
,
Context
context
);
Rest
<
String
>
cloneAppBySameSite
(
AppEntity
appEntity
,
Context
context
);
AppDao
getAppDao
();
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppController.java
View file @
81d3f5df
...
...
@@ -168,6 +168,32 @@ public class AppController extends BaseCRUDJsonBodyMappingController<AppService,
return
rest
;
}
/**
* app应用克隆给本站点
*/
@PostMapping
(
value
=
"cloneAppBySameSite"
)
public
Rest
<
Void
>
cloneAppBySameSite
(
@RequestBody
AppEntity
appQuery
)
{
String
busiDesc
=
this
.
getModuleDesc
()
+
"自助服务应用部署克隆"
;
Rest
<
Void
>
rest
=
Rest
.
ok
(
busiDesc
+
" 【成功】"
);
try
{
if
(
ObjectUtils
.
isEmpty
(
appQuery
.
getSourceAppId
()))
{
throw
new
AppException
(
"源appId不能为空!"
);
}
if
(
ObjectUtils
.
isEmpty
(
appQuery
.
getTargetAppId
()))
{
throw
new
AppException
(
"目标appId不能为空!"
);
}
Rest
<
String
>
cloneRest
=
this
.
service
.
cloneAppBySameSite
(
appQuery
,
getContext
());
if
(
YesNoEnum
.
NO
.
getValue
()==
cloneRest
.
getCode
()){
return
Rest
.
fail
(
cloneRest
.
getMsg
());
}
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"应用克隆异常"
,
e
);
rest
=
Rest
.
fail
(
super
.
convertException
(
e
));
}
return
rest
;
}
public
static
void
main
(
String
[]
args
)
{
...
...
base-manager/src/main/java/com/mortals/xhx/module/dept/model/DeptEntity.java
View file @
81d3f5df
...
...
@@ -3,6 +3,7 @@ package com.mortals.xhx.module.dept.model;
import
java.util.List
;
import
java.util.ArrayList
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.dept.model.vo.DeptVo
;
...
...
@@ -43,6 +44,7 @@ public class DeptEntity extends DeptVo {
/**
* 部门电话
*/
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
private
String
deptTelphone
;
/**
* 部门编号
...
...
@@ -391,19 +393,19 @@ public class DeptEntity extends DeptVo {
this
.
tid
=
null
;
this
.
tname
=
null
;
this
.
tname
=
""
;
this
.
name
=
null
;
this
.
name
=
""
;
this
.
simpleName
=
null
;
this
.
simpleName
=
""
;
this
.
siteId
=
null
;
this
.
deptAbb
=
null
;
this
.
deptAbb
=
""
;
this
.
deptTelphone
=
null
;
this
.
deptTelphone
=
""
;
this
.
deptNumber
=
null
;
this
.
deptNumber
=
""
;
this
.
isAutotable
=
1
;
...
...
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