Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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
base_platform_enterprise
gic-store
Commits
8ed371f1
Commit
8ed371f1
authored
Jun 21, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购角色引用调整
parent
d4c0ffa6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
pom.xml
gic-store-service/pom.xml
+6
-0
ClerkApiServiceImpl.java
...com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
+21
-0
pom.xml
gic-store-web/pom.xml
+6
-0
No files found.
gic-store-service/pom.xml
View file @
8ed371f1
...
...
@@ -161,6 +161,12 @@
<artifactId>
gic-member-api
</artifactId>
<version>
${gic-member-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-popup-sdk
</artifactId>
<version>
${gic-popup-sdk}
</version>
</dependency>
</dependencies>
<build>
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
View file @
8ed371f1
...
...
@@ -15,6 +15,10 @@ import com.gic.member.api.service.StoreUpdateApiService;
import
com.gic.member.config.api.dto.UserOwnerDefaultDTO
;
import
com.gic.member.config.api.service.CardAscriptionConfigService
;
import
com.gic.mq.sdk.GicMQClient
;
import
com.gic.popup.config.InitPopupConfig
;
import
com.gic.popup.config.PopupUtil
;
import
com.gic.popup.dto.PopupDTO
;
import
com.gic.popup.dto.RelationBusinessInfoDTO
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.spark.api.service.SparkJobApiService
;
import
com.gic.store.constant.*
;
...
...
@@ -33,6 +37,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Import
;
import
org.springframework.stereotype.Service
;
import
java.util.*
;
...
...
@@ -46,6 +51,7 @@ import java.util.stream.Stream;
* @date 2019/7/16
*/
@Service
(
"clerkApiService"
)
@Import
(
value
=
InitPopupConfig
.
class
)
public
class
ClerkApiServiceImpl
implements
ClerkApiService
{
private
static
final
Logger
logger
=
LogManager
.
getLogger
(
ClerkApiServiceImpl
.
class
);
...
...
@@ -166,6 +172,8 @@ public class ClerkApiServiceImpl implements ClerkApiService {
clerkDTO
.
getRemark
(),
clerkDTO
.
getOperatorId
(),
clerkDTO
.
getOperatorName
());
storeLogByAddClerk
(
clerkDTO
);
synClerkInfoToWeimobMq
(
clerkDTO
);
saveRefer
(
id
,
clerkDTO
.
getPositionId
());
}
else
{
TabClerk
oldClerk
=
this
.
clerkService
.
getById
(
clerkDTO
.
getClerkId
());
clerkService
.
update
(
clerkDTO
);
...
...
@@ -173,6 +181,7 @@ public class ClerkApiServiceImpl implements ClerkApiService {
clerkDTO
.
getClerkId
(),
clerkDTO
.
getReason
(),
clerkDTO
.
getRemark
(),
clerkDTO
.
getOperatorId
(),
clerkDTO
.
getOperatorName
());
saveRefer
(
clerkDTO
.
getClerkId
(),
clerkDTO
.
getPositionId
());
synClerkInfoToWeimobMq
(
clerkDTO
);
}
return
ServiceResponse
.
success
(
clerkDTO
.
getClerkId
());
...
...
@@ -1052,4 +1061,15 @@ public class ClerkApiServiceImpl implements ClerkApiService {
}
}
private
void
saveRefer
(
Integer
businessId
,
Integer
positionId
)
{
PopupDTO
popupDTO
=
new
PopupDTO
();
popupDTO
.
setBusinessId
(
Long
.
valueOf
(
businessId
));
popupDTO
.
setBusinessName
(
"导购"
);
popupDTO
.
setBusinessType
(
10
);
popupDTO
.
setRelationBusinessIdList
(
new
RelationBusinessInfoDTO
(
6
,
Long
.
valueOf
(
positionId
)));
ServiceResponse
response
=
PopupUtil
.
savePopupLog
(
popupDTO
);
logger
.
info
(
"导购角色保存数据引用结果:{}"
,
JSON
.
toJSONString
(
response
));
}
}
\ No newline at end of file
gic-store-web/pom.xml
View file @
8ed371f1
...
...
@@ -153,6 +153,12 @@
<artifactId>
gic-member-api
</artifactId>
<version>
${gic-member-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-popup-sdk
</artifactId>
<version>
${gic-popup-sdk}
</version>
</dependency>
</dependencies>
<build>
...
...
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