Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
afddff05
Commit
afddff05
authored
Nov 30, 2021
by
rongkailun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】法律法规首页接口新增
parent
e88d22a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
PolicyController.java
...io/office/modules/manage/controller/PolicyController.java
+28
-0
No files found.
src/main/java/io/office/modules/manage/controller/PolicyController.java
View file @
afddff05
...
@@ -136,5 +136,33 @@ public class PolicyController extends AbstractController {
...
@@ -136,5 +136,33 @@ public class PolicyController extends AbstractController {
return
R
.
error
(
e
.
getMessage
());
return
R
.
error
(
e
.
getMessage
());
}
}
}
}
@Login
@PostMapping
(
"/api/policyList"
)
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public
R
policyList
()
{
try
{
QueryWrapper
<
PolicyEntity
>
policyEntityQueryWrapper
=
new
QueryWrapper
<>();
policyEntityQueryWrapper
.
eq
(
"class"
,
"法律法规"
);
policyEntityQueryWrapper
.
gt
(
"levels"
,
"0"
);
policyEntityQueryWrapper
.
eq
(
"status "
,
"1"
);
policyEntityQueryWrapper
.
orderByDesc
(
"levels"
);
policyEntityQueryWrapper
.
orderByDesc
(
"releasedate "
);
policyEntityQueryWrapper
.
orderByDesc
(
"id"
);
return
R
.
ok
().
put
(
"data"
,
policyService
.
list
(
policyEntityQueryWrapper
));
}
catch
(
Exception
e
)
{
log
.
error
(
"policyList error: {}"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@Login
@GetMapping
(
"/api/info/{id}"
)
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public
R
getDetail
(
@PathVariable
(
"id"
)
Integer
id
){
PolicyEntity
policy
=
policyService
.
getById
(
id
);
return
R
.
ok
().
put
(
"policy"
,
policy
);
}
}
}
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