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
16bd674d
Commit
16bd674d
authored
May 28, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加同步删除事项接口
parent
0fde10c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
base-manager/src/main/java/com/mortals/xhx/module/matter/web/MatterExtController.java
...om/mortals/xhx/module/matter/web/MatterExtController.java
+14
-4
No files found.
base-manager/src/main/java/com/mortals/xhx/module/matter/web/MatterExtController.java
View file @
16bd674d
...
...
@@ -4,7 +4,11 @@ import com.mortals.framework.common.Rest;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.module.matter.model.MatterQuery
;
import
com.mortals.xhx.module.site.model.SiteEntity
;
import
com.mortals.xhx.module.site.model.SiteQuery
;
import
com.mortals.xhx.module.site.service.SiteService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.checkerframework.checker.units.qual.A
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -35,10 +39,13 @@ import static com.mortals.framework.ap.SysConstains.*;
*/
@RestController
@RequestMapping
(
"matter/ext"
)
@Slf4j
public
class
MatterExtController
extends
BaseCRUDJsonBodyMappingController
<
MatterExtService
,
MatterExtEntity
,
Long
>
{
@Autowired
private
ParamService
paramService
;
@Autowired
private
SiteService
siteService
;
public
MatterExtController
(){
super
.
setModuleDesc
(
"事项扩展"
);
...
...
@@ -54,15 +61,18 @@ public class MatterExtController extends BaseCRUDJsonBodyMappingController<Matte
@GetMapping
(
value
=
"delMattersBySiteId"
)
@UnAuth
public
Rest
<
Object
>
delMattersBySiteId
(
@RequestParam
(
value
=
"siteId"
)
Long
siteId
)
{
public
Rest
<
Object
>
delMattersBySiteId
()
{
Rest
<
Object
>
ret
=
new
Rest
<>();
Map
<
String
,
Object
>
model
=
new
HashMap
<>();
String
busiDesc
=
"删除"
+
this
.
getModuleDesc
();
int
code
=
VALUE_RESULT_SUCCESS
;
try
{
SiteQuery
siteQuery
=
new
SiteQuery
();
siteQuery
.
setId
(
siteId
);
this
.
service
.
syncDelMatterBySiteId
(
siteQuery
,
getContext
());
List
<
SiteEntity
>
siteEntities
=
siteService
.
find
(
new
SiteEntity
());
for
(
SiteEntity
siteEntity
:
siteEntities
)
{
log
.
info
(
"开始同步删除站点事项==》{}"
,
siteEntity
.
getSiteName
());
this
.
service
.
syncDelMatterBySiteId
(
siteEntity
,
getContext
());
}
model
.
put
(
MESSAGE_INFO
,
busiDesc
+
"成功"
);
}
catch
(
Exception
e
)
{
...
...
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