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
dca6d69c
Commit
dca6d69c
authored
Mar 31, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
a990f907
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletions
+40
-1
AuditDTO.java
...src/main/java/com/gic/haoban/manage/api/dto/AuditDTO.java
+11
-1
AuditController.java
...com/gic/haoban/manage/web/controller/AuditController.java
+29
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/AuditDTO.java
View file @
dca6d69c
...
@@ -40,9 +40,19 @@ public class AuditDTO implements Serializable {
...
@@ -40,9 +40,19 @@ public class AuditDTO implements Serializable {
private
Integer
statusFlag
;
private
Integer
statusFlag
;
private
String
detail
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getAuditId
()
{
public
String
getDetail
()
{
return
detail
;
}
public
void
setDetail
(
String
detail
)
{
this
.
detail
=
detail
;
}
public
String
getAuditId
()
{
return
auditId
;
return
auditId
;
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/AuditController.java
View file @
dca6d69c
...
@@ -3,11 +3,13 @@ package com.gic.haoban.manage.web.controller;
...
@@ -3,11 +3,13 @@ package com.gic.haoban.manage.web.controller;
import
java.util.List
;
import
java.util.List
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.ctrip.framework.apollo.spring.annotation.ApolloConfig
;
import
com.ctrip.framework.apollo.spring.annotation.ApolloConfig
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.common.utils.GlobalVar
;
import
com.gic.haoban.common.utils.GlobalVar
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.enums.StoreFieldEnum
;
import
com.gic.haoban.manage.api.service.ApplicationSettingApiService
;
import
com.gic.haoban.manage.api.service.ApplicationSettingApiService
;
import
com.gic.haoban.manage.api.service.AuditApiService
;
import
com.gic.haoban.manage.api.service.AuditApiService
;
import
com.gic.haoban.manage.api.service.AuditSettingApiService
;
import
com.gic.haoban.manage.api.service.AuditSettingApiService
;
...
@@ -77,6 +79,33 @@ public class AuditController extends WebBaseController{
...
@@ -77,6 +79,33 @@ public class AuditController extends WebBaseController{
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
}
Page
<
AuditDTO
>
page
=
auditApiService
.
page
(
auditType
,
search
,
wxEnterpriseId
,
enterpriseId
,
auditStatus
,
pageInfo
);
Page
<
AuditDTO
>
page
=
auditApiService
.
page
(
auditType
,
search
,
wxEnterpriseId
,
enterpriseId
,
auditStatus
,
pageInfo
);
List
<
AuditDTO
>
list
=
page
.
getResult
();
for
(
AuditDTO
dto:
list
){
String
t
=
dto
.
getChangeField
();
String
detail
=
""
;
if
(
StoreFieldEnum
.
STORE_NAME
.
getValue
().
equals
(
t
)){
detail
=
"将"
+
"门店名称"
+
dto
.
getOldValue
()+
"修改为"
+
dto
.
getNewValue
();
}
else
if
(
StoreFieldEnum
.
STORE_AREA
.
getValue
().
equals
(
t
)){
detail
=
"将"
+
"门店面积"
+
dto
.
getOldValue
()+
"修改为"
+
dto
.
getNewValue
();
}
else
if
(
StoreFieldEnum
.
CONACTS_PHONE
.
getValue
().
equals
(
t
)){
detail
=
"将"
+
"联系电话"
+
dto
.
getOldValue
()+
"修改为"
+
dto
.
getNewValue
();
}
else
if
(
StoreFieldEnum
.
BUSINESS_TIME_STRING
.
getValue
().
equals
(
t
)){
detail
=
"将"
+
"营业时间"
+
dto
.
getOldValue
()+
"修改为"
+
dto
.
getNewValue
();
}
else
if
(
StoreFieldEnum
.
STORE_ADDRESS
.
getValue
().
equals
(
t
)){
String
oldValue
=
dto
.
getOldValue
();
String
newValue
=
dto
.
getNewValue
();
JSONObject
oldJSONObject
=
JSONObject
.
parseObject
(
oldValue
);
String
oldAddress
=
oldJSONObject
.
get
(
"storeAddress"
).
toString
();
JSONObject
newJSONObject
=
JSONObject
.
parseObject
(
newValue
);
String
newAddress
=
newJSONObject
.
get
(
"storeAddress"
).
toString
();
detail
=
"将"
+
"门店地址"
+
oldAddress
+
"修改为"
+
newAddress
;
}
else
if
(
StoreFieldEnum
.
STORE_IMAG
.
getValue
().
equals
(
t
)){
detail
=
"门店图片变更"
;
}
dto
.
setDetail
(
detail
);
}
page
.
setResult
(
list
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
page
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
page
);
}
}
//审核拒绝
//审核拒绝
...
...
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