Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
189ff9a8
Commit
189ff9a8
authored
Mar 19, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
ec2fb0b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
AuditController.java
...com/gic/haoban/manage/web/controller/AuditController.java
+21
-3
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/AuditController.java
View file @
189ff9a8
...
...
@@ -42,6 +42,7 @@ public class AuditController extends WebBaseController{
private
AuditSettingApiService
auditSettingApiService
;
@Autowired
private
AuditApiService
auditApiService
;
//设置保存
@RequestMapping
(
"open-or-close"
)
public
HaobanResponse
openOrClose
(
String
wxEnterpriseId
,
Integer
auditFlag
)
{
if
(
StringUtils
.
isAnyBlank
(
wxEnterpriseId
)){
...
...
@@ -53,7 +54,7 @@ public class AuditController extends WebBaseController{
auditSettingApiService
.
saveSetting
(
wxEnterpriseId
,
auditFlag
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
//设置查看
@RequestMapping
(
"find-setting"
)
public
HaobanResponse
findSetting
(
String
wxEnterpriseId
)
{
if
(
StringUtils
.
isAnyBlank
(
wxEnterpriseId
)){
...
...
@@ -62,7 +63,7 @@ public class AuditController extends WebBaseController{
auditSettingApiService
.
findSettingByWxEnterpriseId
(
wxEnterpriseId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
//分页查找
@RequestMapping
(
"find-page"
)
public
HaobanResponse
findPage
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
search
,
BasePageInfo
pageInfo
,
Integer
auditType
,
Integer
auditStatus
)
{
if
(
auditStatus
==
null
){
...
...
@@ -71,5 +72,22 @@ public class AuditController extends WebBaseController{
Page
<
AuditDTO
>
page
=
auditApiService
.
page
(
auditType
,
search
,
wxEnterpriseId
,
enterpriseId
,
auditStatus
,
pageInfo
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
page
);
}
//审核拒绝
@RequestMapping
(
"refuse"
)
public
HaobanResponse
refuse
(
String
auditId
,
String
auditReason
)
{
if
(
StringUtils
.
isAnyBlank
(
auditId
,
auditReason
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
auditApiService
.
refuse
(
auditId
,
auditReason
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
//审核同意
@RequestMapping
(
"audit"
)
public
HaobanResponse
audit
(
String
auditId
)
{
if
(
StringUtils
.
isAnyBlank
(
auditId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
auditApiService
.
audit
(
auditId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_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