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
15564f51
Commit
15564f51
authored
Apr 01, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
a32fc57c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+19
-20
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
15564f51
...
@@ -154,12 +154,11 @@ public class AuditApiServiceImpl implements AuditApiService{
...
@@ -154,12 +154,11 @@ public class AuditApiServiceImpl implements AuditApiService{
if
(!
StoreFieldEnum
.
STORE_IMAG
.
getValue
().
equals
(
changeField
)){
if
(!
StoreFieldEnum
.
STORE_IMAG
.
getValue
().
equals
(
changeField
)){
//非门店图片修改
//非门店图片修改
logger
.
info
(
"===================进222"
);
logger
.
info
(
"===================进222"
);
StoreDTO
newStore
=
new
StoreDTO
();
StoreDetailDTO
detailDTO
=
new
StoreDetailDTO
();
newStore
.
setStoreId
(
store
.
getStoreId
());
detailDTO
.
setStoreId
(
storeId
);
getStoreDTO
(
newStore
,
changeField
,
oldValue
,
newValue
);
StoreDetailDTO
detailDTO
=
EntityUtil
.
changeEntityByJSON
(
StoreDetailDTO
.
class
,
newStore
);
detailDTO
.
setEnterpriseId
(
store
.
getEnterpriseId
());
detailDTO
.
setEnterpriseId
(
store
.
getEnterpriseId
());
getStoreDTO
(
detailDTO
,
changeField
,
oldValue
,
newValue
);
logger
.
info
(
"detailDTO====================>为{}"
,
JSONObject
.
toJSONString
(
detailDTO
));
logger
.
info
(
"detailDTO====================>为{}"
,
JSONObject
.
toJSONString
(
detailDTO
));
storeService
.
saveStore
(
detailDTO
);
storeService
.
saveStore
(
detailDTO
);
// storeService.saveOrUpdateStore(store);
// storeService.saveOrUpdateStore(store);
...
@@ -169,7 +168,7 @@ public class AuditApiServiceImpl implements AuditApiService{
...
@@ -169,7 +168,7 @@ public class AuditApiServiceImpl implements AuditApiService{
storeService
.
updateStorePhotos
(
storeId
,
newValue
);
storeService
.
updateStorePhotos
(
storeId
,
newValue
);
}
}
}
}
void
getStoreDTO
(
StoreDTO
store
,
String
changeField
,
String
oldValue
,
String
newValue
){
void
getStoreDTO
(
StoreD
etailD
TO
store
,
String
changeField
,
String
oldValue
,
String
newValue
){
logger
.
info
(
"==========================>changeField={}"
,
changeField
);
logger
.
info
(
"==========================>changeField={}"
,
changeField
);
if
(
StoreFieldEnum
.
BUSINESS_TIME_STRING
.
getValue
().
equals
(
changeField
)){
if
(
StoreFieldEnum
.
BUSINESS_TIME_STRING
.
getValue
().
equals
(
changeField
)){
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"HH:mm"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"HH:mm"
);
...
@@ -177,20 +176,20 @@ public class AuditApiServiceImpl implements AuditApiService{
...
@@ -177,20 +176,20 @@ public class AuditApiServiceImpl implements AuditApiService{
String
[]
newValues
=
newValue
.
split
(
"-"
);
String
[]
newValues
=
newValue
.
split
(
"-"
);
String
openTime
=
newValues
[
0
];
String
openTime
=
newValues
[
0
];
String
closeTime
=
newValues
[
1
];
String
closeTime
=
newValues
[
1
];
Date
date1
=
null
;
//
Date date1 = null;
Date
date2
=
null
;
//
Date date2 = null;
try
{
//
try {
date1
=
sdf
.
parse
(
openTime
);
//
date1 = sdf.parse(openTime);
}
catch
(
ParseException
e
)
{
//
} catch (ParseException e) {
e
.
printStackTrace
();
//
e.printStackTrace();
}
//
}
try
{
//
try {
date2
=
sdf
.
parse
(
closeTime
);
//
date2 = sdf.parse(closeTime);
}
catch
(
ParseException
e
)
{
//
} catch (ParseException e) {
e
.
printStackTrace
();
//
e.printStackTrace();
}
//
}
store
.
setOpenTime
(
date1
);
store
.
setOpenTime
(
openTime
);
store
.
setCloseTime
(
date2
);
store
.
setCloseTime
(
closeTime
);
}
else
if
(
StoreFieldEnum
.
CONACTS_PHONE
.
getValue
().
equals
(
changeField
)){
}
else
if
(
StoreFieldEnum
.
CONACTS_PHONE
.
getValue
().
equals
(
changeField
)){
//联系电话
//联系电话
store
.
setConactsPhone
(
newValue
);
store
.
setConactsPhone
(
newValue
);
...
...
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