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
5afb820d
Commit
5afb820d
authored
Feb 28, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加窗口无人值守
parent
827ad954
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowServiceImpl.java
...als/xhx/module/window/service/impl/WindowServiceImpl.java
+11
-8
base-manager/src/test/java/com/mortals/httpclient/app/AppController.http
...c/test/java/com/mortals/httpclient/app/AppController.http
+2
-2
No files found.
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowServiceImpl.java
View file @
5afb820d
...
@@ -91,11 +91,11 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
...
@@ -91,11 +91,11 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
if
(
ObjectUtils
.
isEmpty
(
windowId
))
{
if
(
ObjectUtils
.
isEmpty
(
windowId
))
{
throw
new
AppException
(
"请选择对应窗口"
);
throw
new
AppException
(
"请选择对应窗口"
);
}
}
List
<
Long
>
businessIdList
=
new
ArrayList
<>();
List
<
Long
>
businessIdList
=
new
ArrayList
<>();
if
(!
ObjectUtils
.
isEmpty
(
businessIds
))
{
if
(!
ObjectUtils
.
isEmpty
(
businessIds
))
{
businessIdList
=
Arrays
.
asList
(
businessIds
.
split
(
","
)).
stream
().
map
(
Long:
:
parseLong
).
collect
(
Collectors
.
toList
());
businessIdList
=
Arrays
.
asList
(
businessIds
.
split
(
","
)).
stream
().
map
(
Long:
:
parseLong
).
collect
(
Collectors
.
toList
());
}
}
WindowBusinessQuery
windowBusinessQuery
=
new
WindowBusinessQuery
();
WindowBusinessQuery
windowBusinessQuery
=
new
WindowBusinessQuery
();
//windowBusinessQuery.setSiteBusinessIdList(businessIdList);
//windowBusinessQuery.setSiteBusinessIdList(businessIdList);
//先删除后再新增
//先删除后再新增
...
@@ -124,7 +124,7 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
...
@@ -124,7 +124,7 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
return
null
;
return
null
;
}
}
return
windowBusinessEntity
;
return
windowBusinessEntity
;
}).
filter
(
f
->
f
!=
null
).
collect
(
Collectors
.
toList
());
}).
filter
(
f
->
f
!=
null
).
collect
(
Collectors
.
toList
());
windowBusinessService
.
save
(
windowBusinessEntities
,
context
);
windowBusinessService
.
save
(
windowBusinessEntities
,
context
);
}
}
...
@@ -136,13 +136,16 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
...
@@ -136,13 +136,16 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
WindowBusinessQuery
windowBusinessQuery
=
new
WindowBusinessQuery
();
WindowBusinessQuery
windowBusinessQuery
=
new
WindowBusinessQuery
();
windowBusinessQuery
.
setWindowIdList
(
Arrays
.
asList
(
ids
));
windowBusinessQuery
.
setWindowIdList
(
Arrays
.
asList
(
ids
));
List
<
WindowBusinessEntity
>
windowBusinessEntities
=
windowBusinessService
.
find
(
windowBusinessQuery
);
List
<
WindowBusinessEntity
>
windowBusinessEntities
=
windowBusinessService
.
find
(
windowBusinessQuery
);
windowBusinessService
.
removeList
(
windowBusinessEntities
,
context
);
if
(!
ObjectUtils
.
isEmpty
(
windowBusinessEntities
))
{
windowBusinessService
.
removeList
(
windowBusinessEntities
,
context
);
}
//级联删除窗口事项
//级联删除窗口事项
WindowMatterQuery
windowMatterQuery
=
new
WindowMatterQuery
();
WindowMatterQuery
windowMatterQuery
=
new
WindowMatterQuery
();
windowMatterQuery
.
setWindowIdList
(
Arrays
.
asList
(
ids
));
windowMatterQuery
.
setWindowIdList
(
Arrays
.
asList
(
ids
));
List
<
WindowMatterEntity
>
windowMatterEntities
=
windowMatterService
.
find
(
windowMatterQuery
);
List
<
WindowMatterEntity
>
windowMatterEntities
=
windowMatterService
.
find
(
windowMatterQuery
);
windowMatterService
.
removeList
(
windowMatterEntities
,
context
);
if
(!
ObjectUtils
.
isEmpty
(
windowMatterEntities
))
{
windowMatterService
.
removeList
(
windowMatterEntities
,
context
);
}
}
}
Arrays
.
asList
(
ids
).
forEach
(
id
->
{
Arrays
.
asList
(
ids
).
forEach
(
id
->
{
pushChangeMsg
(
id
);
pushChangeMsg
(
id
);
...
...
base-manager/src/test/java/com/mortals/httpclient/app/AppController.http
View file @
5afb820d
...
@@ -4,7 +4,7 @@ Content-Type: application/json
...
@@ -4,7 +4,7 @@ Content-Type: application/json
{
{
"loginName":"admin",
"loginName":"admin",
"password":"
adsmile
",
"password":"
ybsmzx@2023
",
"securityCode":"8888"
"securityCode":"8888"
}
}
...
@@ -87,7 +87,7 @@ Accept: application/json
...
@@ -87,7 +87,7 @@ Accept: application/json
###自助终端应用删除
###自助终端应用删除
GET {{baseUrl}}/app/delete?id=1
8
GET {{baseUrl}}/app/delete?id=1
4
Authorization: {{authToken}}
Authorization: {{authToken}}
Accept: application/json
Accept: application/json
...
...
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