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
e6420008
Commit
e6420008
authored
Oct 17, 2023
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】政府采购
parent
54961e05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
ApplicationCaseController.java
.../modules/manage/controller/ApplicationCaseController.java
+8
-7
ApplicationCaseServiceImpl.java
...dules/manage/service/impl/ApplicationCaseServiceImpl.java
+1
-1
No files found.
src/main/java/io/office/modules/manage/controller/ApplicationCaseController.java
View file @
e6420008
...
@@ -11,6 +11,7 @@ import io.office.modules.manage.service.ApplicationCaseService;
...
@@ -11,6 +11,7 @@ import io.office.modules.manage.service.ApplicationCaseService;
import
io.office.modules.manage.service.TokenCountService
;
import
io.office.modules.manage.service.TokenCountService
;
import
io.office.modules.sys.controller.AbstractController
;
import
io.office.modules.sys.controller.AbstractController
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
@@ -41,7 +42,7 @@ public class ApplicationCaseController extends AbstractController {
...
@@ -41,7 +42,7 @@ public class ApplicationCaseController extends AbstractController {
* 列表
* 列表
*/
*/
@RequestMapping
(
"/list"
)
@RequestMapping
(
"/list"
)
//@RequiresPermissions("manage:applicationcase
:list")
@RequiresPermissions
(
"publicmanage:cases
:list"
)
public
R
list
(
@RequestBody
Map
<
String
,
Object
>
params
)
{
public
R
list
(
@RequestBody
Map
<
String
,
Object
>
params
)
{
PageUtils
page
=
applicationCaseService
.
queryPage
(
params
);
PageUtils
page
=
applicationCaseService
.
queryPage
(
params
);
...
@@ -52,7 +53,7 @@ public class ApplicationCaseController extends AbstractController {
...
@@ -52,7 +53,7 @@ public class ApplicationCaseController extends AbstractController {
@RequestMapping
(
"/api/list"
)
@RequestMapping
(
"/api/list"
)
//@RequiresPermissions("manage:applicationcase:list")
//@RequiresPermissions("manage:applicationcase:list")
public
R
getList
(
@RequestBody
Map
<
String
,
Object
>
params
)
{
public
R
getList
(
@RequestBody
Map
<
String
,
Object
>
params
)
{
PageUtils
page
=
applicationCaseService
.
queryPage
(
params
);
PageUtils
page
=
applicationCaseService
.
getList
(
params
);
return
R
.
ok
().
put
(
"data"
,
page
);
return
R
.
ok
().
put
(
"data"
,
page
);
}
}
...
@@ -61,7 +62,7 @@ public class ApplicationCaseController extends AbstractController {
...
@@ -61,7 +62,7 @@ public class ApplicationCaseController extends AbstractController {
* 信息
* 信息
*/
*/
@RequestMapping
(
"/info/{id}"
)
@RequestMapping
(
"/info/{id}"
)
//@RequiresPermissions("manage:applicationcase
:info")
@RequiresPermissions
(
"publicmanage:cases
:info"
)
public
R
info
(
@PathVariable
(
"id"
)
String
id
)
{
public
R
info
(
@PathVariable
(
"id"
)
String
id
)
{
ApplicationCaseEntity
applicationCase
=
applicationCaseService
.
getById
(
id
);
ApplicationCaseEntity
applicationCase
=
applicationCaseService
.
getById
(
id
);
return
R
.
ok
().
put
(
"data"
,
applicationCase
);
return
R
.
ok
().
put
(
"data"
,
applicationCase
);
...
@@ -72,7 +73,7 @@ public class ApplicationCaseController extends AbstractController {
...
@@ -72,7 +73,7 @@ public class ApplicationCaseController extends AbstractController {
*/
*/
@SysLog
(
"保存政府采购应用案例"
)
@SysLog
(
"保存政府采购应用案例"
)
@RequestMapping
(
"/save"
)
@RequestMapping
(
"/save"
)
//@RequiresPermissions("manage:applicationcase
:save")
@RequiresPermissions
(
"publicmanage:cases
:save"
)
public
R
save
(
@RequestBody
ApplicationCaseEntity
applicationCaseEntity
)
{
public
R
save
(
@RequestBody
ApplicationCaseEntity
applicationCaseEntity
)
{
//校验参数
//校验参数
// ValidatorUtils.validateEntity(applicationCase, AddGroup.class);
// ValidatorUtils.validateEntity(applicationCase, AddGroup.class);
...
@@ -89,7 +90,7 @@ public class ApplicationCaseController extends AbstractController {
...
@@ -89,7 +90,7 @@ public class ApplicationCaseController extends AbstractController {
*/
*/
@SysLog
(
"修改政府采购应用案例"
)
@SysLog
(
"修改政府采购应用案例"
)
@RequestMapping
(
"/update"
)
@RequestMapping
(
"/update"
)
//@RequiresPermissions("manage:applicationcase
:update")
@RequiresPermissions
(
"publicmanage:cases
:update"
)
public
R
update
(
@RequestBody
ApplicationCaseEntity
applicationCaseEntity
)
{
public
R
update
(
@RequestBody
ApplicationCaseEntity
applicationCaseEntity
)
{
applicationCaseService
.
updateApplicationCaseById
(
applicationCaseEntity
,
getUser
());
applicationCaseService
.
updateApplicationCaseById
(
applicationCaseEntity
,
getUser
());
return
R
.
ok
();
return
R
.
ok
();
...
@@ -100,7 +101,7 @@ public class ApplicationCaseController extends AbstractController {
...
@@ -100,7 +101,7 @@ public class ApplicationCaseController extends AbstractController {
*/
*/
@SysLog
(
"删除政府采购应用案例"
)
@SysLog
(
"删除政府采购应用案例"
)
@RequestMapping
(
"/delete"
)
@RequestMapping
(
"/delete"
)
//@RequiresPermissions("manage:applicationcase
:delete")
@RequiresPermissions
(
"publicmanage:cases
:delete"
)
public
R
delete
(
@RequestBody
String
[]
ids
)
{
public
R
delete
(
@RequestBody
String
[]
ids
)
{
for
(
String
id
:
ids
)
{
for
(
String
id
:
ids
)
{
UpdateWrapper
<
ApplicationCaseEntity
>
applicationCaseEntityUpdateWrapper
=
new
UpdateWrapper
<>();
UpdateWrapper
<
ApplicationCaseEntity
>
applicationCaseEntityUpdateWrapper
=
new
UpdateWrapper
<>();
...
@@ -114,7 +115,7 @@ public class ApplicationCaseController extends AbstractController {
...
@@ -114,7 +115,7 @@ public class ApplicationCaseController extends AbstractController {
@SysLog
(
"审批政府采购应用案例"
)
@SysLog
(
"审批政府采购应用案例"
)
@RequestMapping
(
"/check"
)
@RequestMapping
(
"/check"
)
//@RequiresPermissions("manage:applicationcase:delete
")
@RequiresPermissions
(
"publicmanage:cases:check
"
)
public
R
check
(
@RequestBody
ApplicationCaseEntity
applicationCaseEntity
)
{
public
R
check
(
@RequestBody
ApplicationCaseEntity
applicationCaseEntity
)
{
applicationCaseService
.
checkApplicationCaseById
(
applicationCaseEntity
,
getUser
());
applicationCaseService
.
checkApplicationCaseById
(
applicationCaseEntity
,
getUser
());
return
R
.
ok
();
return
R
.
ok
();
...
...
src/main/java/io/office/modules/manage/service/impl/ApplicationCaseServiceImpl.java
View file @
e6420008
...
@@ -61,7 +61,7 @@ public class ApplicationCaseServiceImpl extends ServiceImpl<ApplicationCaseDao,
...
@@ -61,7 +61,7 @@ public class ApplicationCaseServiceImpl extends ServiceImpl<ApplicationCaseDao,
QueryWrapper
<
ApplicationCaseEntity
>
applicationCaseEntityQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
ApplicationCaseEntity
>
applicationCaseEntityQueryWrapper
=
new
QueryWrapper
<>();
applicationCaseEntityQueryWrapper
.
gt
(
"status"
,
0
);
applicationCaseEntityQueryWrapper
.
gt
(
"status"
,
0
);
applicationCaseEntityQueryWrapper
.
orderByAsc
(
"levels"
);
applicationCaseEntityQueryWrapper
.
orderByAsc
(
"levels"
);
applicationCaseEntityQueryWrapper
.
orderByDesc
(
"show_
dat
e"
);
applicationCaseEntityQueryWrapper
.
orderByDesc
(
"show_
tim
e"
);
IPage
<
ApplicationCaseEntity
>
page
=
this
.
page
(
IPage
<
ApplicationCaseEntity
>
page
=
this
.
page
(
new
Query
<
ApplicationCaseEntity
>().
getPage
(
params
),
new
Query
<
ApplicationCaseEntity
>().
getPage
(
params
),
applicationCaseEntityQueryWrapper
applicationCaseEntityQueryWrapper
...
...
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