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
a7b080f2
Commit
a7b080f2
authored
Apr 01, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
e149fd0e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
AuditApiService.java
...va/com/gic/haoban/manage/api/service/AuditApiService.java
+2
-2
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+4
-2
TabHaobanAuditMapper.xml
...ervice/src/main/resources/mapper/TabHaobanAuditMapper.xml
+1
-0
AuditController.java
...com/gic/haoban/manage/web/controller/AuditController.java
+5
-5
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/AuditApiService.java
View file @
a7b080f2
...
...
@@ -14,9 +14,9 @@ public interface AuditApiService {
Page
<
AuditDTO
>
page
(
Integer
auditType
,
String
search
,
String
wxEnterpriseId
,
String
enterpriseId
,
Integer
auditStatus
,
Integer
auditFlag
,
BasePageInfo
pageInfo
);
void
audit
(
String
auditId
);
void
audit
(
String
auditId
,
String
aduitName
);
void
refuse
(
String
auditId
,
String
auditReason
);
void
refuse
(
String
auditId
,
String
auditReason
,
String
aduitName
);
int
save
(
Integer
auditType
,
String
wxEnterpriseId
,
String
enterpriseId
,
String
commitStaffId
,
String
commitStoreId
,
String
changeField
,
String
oldValue
,
String
newValue
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
a7b080f2
...
...
@@ -74,7 +74,7 @@ public class AuditApiServiceImpl implements AuditApiService{
}
@Transactional
@Override
public
void
audit
(
String
auditId
)
{
public
void
audit
(
String
auditId
,
String
auditName
)
{
TabHaobanAudit
tab
=
auditMapper
.
selectByPrimaryKey
(
auditId
);
if
(
tab
==
null
){
return
;
...
...
@@ -82,6 +82,7 @@ public class AuditApiServiceImpl implements AuditApiService{
tab
.
setAuditId
(
auditId
);
tab
.
setAuditStatus
(
1
);
tab
.
setUpdateTime
(
new
Date
());
tab
.
setAuditName
(
auditName
);
auditMapper
.
updateByPrimaryKeySelective
(
tab
);
String
storeId
=
tab
.
getCommitStoreId
();
String
oldValue
=
tab
.
getOldValue
();
...
...
@@ -90,12 +91,13 @@ public class AuditApiServiceImpl implements AuditApiService{
this
.
editStoreInfo
(
storeId
,
changeField
,
oldValue
,
newValue
);
}
@Override
public
void
refuse
(
String
auditId
,
String
auditReason
)
{
public
void
refuse
(
String
auditId
,
String
auditReason
,
String
auditName
)
{
TabHaobanAudit
tab
=
new
TabHaobanAudit
();
tab
.
setAuditId
(
auditId
);
tab
.
setAuditStatus
(
2
);
tab
.
setUpdateTime
(
new
Date
());
tab
.
setAuditReason
(
auditReason
);
tab
.
setAuditName
(
auditName
);
auditMapper
.
updateByPrimaryKeySelective
(
tab
);
}
@Override
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanAuditMapper.xml
View file @
a7b080f2
...
...
@@ -297,6 +297,7 @@
</if>
<include
refid=
"storeSql"
/>
<include
refid=
"staffSql"
/>
order by commit_time desc
</select>
<select
id=
"listByStoreId"
resultMap=
"BaseResultMap"
>
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/AuditController.java
View file @
a7b080f2
...
...
@@ -149,21 +149,21 @@ public class AuditController extends WebBaseController{
//审核拒绝
@HttpLimit
@RequestMapping
(
"refuse"
)
public
HaobanResponse
refuse
(
String
auditId
,
String
auditReason
)
{
if
(
StringUtils
.
isAnyBlank
(
auditId
,
auditReason
)){
public
HaobanResponse
refuse
(
String
auditId
,
String
auditReason
,
String
auditName
)
{
if
(
StringUtils
.
isAnyBlank
(
auditId
,
auditReason
,
auditName
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
auditApiService
.
refuse
(
auditId
,
auditReason
);
auditApiService
.
refuse
(
auditId
,
auditReason
,
auditName
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
//审核同意
@HttpLimit
@RequestMapping
(
"audit"
)
public
HaobanResponse
audit
(
String
auditId
)
{
public
HaobanResponse
audit
(
String
auditId
,
String
auditName
)
{
if
(
StringUtils
.
isAnyBlank
(
auditId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
auditApiService
.
audit
(
auditId
);
auditApiService
.
audit
(
auditId
,
auditName
);
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