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
4838ac12
Commit
4838ac12
authored
May 26, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX
parent
17084ebb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+16
-16
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
4838ac12
...
...
@@ -142,14 +142,14 @@ public class MessageApiServiceImpl implements MessageApiService {
}
departmentDTO
.
setWxEnterpriseId
(
enterprise
.
getWxEnterpriseId
());
if
(
dto
.
getChangeType
()
==
GicEditType
.
ADD
.
getCode
()){
//
Integer isStore = departmentDTO.getIsStore();
//
if(isStore == 1){
//
//不是线上门店 不新增
//
StoreDTO store = storeService.getStore(departmentDTO.getRelatedId());
//
if(store == null || store.getStatus() != 2){
//
return;
//
}
//
}
Integer
isStore
=
departmentDTO
.
getIsStore
();
if
(
isStore
==
1
){
//不是线上门店 不新增
StoreDTO
store
=
storeService
.
getStore
(
departmentDTO
.
getRelatedId
());
if
(
store
==
null
||
store
.
getStatus
()
!=
2
){
return
;
}
}
ServiceResponse
response
=
this
.
departmentApiService
.
add
(
departmentDTO
);
GicClerkDTO
gicClerkDTO
=
dto
.
getGicClerkDTO
();
if
(
gicClerkDTO
!=
null
){
...
...
@@ -160,14 +160,14 @@ public class MessageApiServiceImpl implements MessageApiService {
}
else
if
(
dto
.
getChangeType
()
==
GicEditType
.
UPDATE
.
getCode
()){
TabHaobanDepartment
department
=
this
.
departmentService
.
selectByRelatedId
(
dto
.
getId
());
if
(
department
==
null
){
//
Integer isStore = departmentDTO.getIsStore();
//
if(isStore == 1){
//
//不是线上门店 不新增
//
StoreDTO store = storeService.getStore(departmentDTO.getRelatedId());
//
if(store == null || store.getStatus() != 2){
//
return;
//
}
//
}
Integer
isStore
=
departmentDTO
.
getIsStore
();
if
(
isStore
==
1
){
//不是线上门店 不新增
StoreDTO
store
=
storeService
.
getStore
(
departmentDTO
.
getRelatedId
());
if
(
store
==
null
||
store
.
getStatus
()
!=
2
){
return
;
}
}
ServiceResponse
response
=
this
.
departmentApiService
.
add
(
departmentDTO
);
log
.
info
(
"添加结果:{}"
,
JSON
.
toJSONString
(
response
));
}
else
{
...
...
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