Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4a48bccd
authored
Apr 12, 2021
by
danmo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
任务bug修改
1 parent
ca01f7c5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionController.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/factory/impl/customer/WeCallBackAddExternalContactImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionController.java
View file @
4a48bcc
...
@@ -229,7 +229,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -229,7 +229,7 @@ public class WeTaskFissionController extends BaseController {
public
AjaxResult
<
JSONObject
>
upload
(
@RequestParam
(
value
=
"file"
)
MultipartFile
file
)
throws
IOException
{
public
AjaxResult
<
JSONObject
>
upload
(
@RequestParam
(
value
=
"file"
)
MultipartFile
file
)
throws
IOException
{
String
url
=
FileUploadUtils
.
upload2Cos
(
file
,
cosConfig
);
String
url
=
FileUploadUtils
.
upload2Cos
(
file
,
cosConfig
);
JSONObject
json
=
new
JSONObject
();
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"rewardImageUrl"
,
url
);
json
.
put
(
"rewardImageUrl"
,
cosConfig
.
getImgUrlPrefix
()+
url
);
return
AjaxResult
.
success
(
json
);
return
AjaxResult
.
success
(
json
);
}
}
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/factory/impl/customer/WeCallBackAddExternalContactImpl.java
View file @
4a48bcc
...
@@ -48,14 +48,15 @@ public class WeCallBackAddExternalContactImpl extends WeEventStrategy {
...
@@ -48,14 +48,15 @@ public class WeCallBackAddExternalContactImpl extends WeEventStrategy {
private
IWeTaskFissionRewardService
weTaskFissionRewardService
;
private
IWeTaskFissionRewardService
weTaskFissionRewardService
;
@Autowired
@Autowired
private
IWeTaskFissionService
weTaskFissionService
;
private
IWeTaskFissionService
weTaskFissionService
;
@Autowired
private
ThreadLocal
<
WeFlowerCustomerRel
>
weFlowerCustomerRelThreadLocal
=
new
ThreadLocal
<>();
private
ThreadLocal
<
WeCustomer
>
weCustomerThreadLocal
=
new
ThreadLocal
<>();
@Override
@Override
public
void
eventHandle
(
WxCpXmlMessageVO
message
)
{
public
void
eventHandle
(
WxCpXmlMessageVO
message
)
{
if
(
message
.
getExternalUserId
()
!=
null
)
{
if
(
message
.
getExternalUserId
()
!=
null
)
{
WeCustomer
weCustomer
=
weCustomerService
.
getOne
(
new
LambdaQueryWrapper
<
WeCustomer
>().
eq
(
WeCustomer:
:
getExternalUserid
,
message
.
getExternalUserId
()));
WeFlowerCustomerRel
weFlowerCustomerRel
=
weFlowerCustomerRelService
.
getOne
(
new
LambdaQueryWrapper
<
WeFlowerCustomerRel
>()
weCustomerThreadLocal
.
set
(
weCustomer
);
.
eq
(
WeFlowerCustomerRel:
:
getExternalUserid
,
message
.
getExternalUserId
())
.
eq
(
WeFlowerCustomerRel:
:
getUserId
,
message
.
getUserId
()));
weFlowerCustomerRelThreadLocal
.
set
(
weFlowerCustomerRel
);
weCustomerService
.
getCustomersInfoAndSynchWeCustomer
(
message
.
getExternalUserId
());
weCustomerService
.
getCustomersInfoAndSynchWeCustomer
(
message
.
getExternalUserId
());
}
}
if
(
message
.
getState
()
!=
null
&&
message
.
getWelcomeCode
()
!=
null
)
{
if
(
message
.
getState
()
!=
null
&&
message
.
getWelcomeCode
()
!=
null
)
{
...
@@ -78,7 +79,7 @@ public class WeCallBackAddExternalContactImpl extends WeEventStrategy {
...
@@ -78,7 +79,7 @@ public class WeCallBackAddExternalContactImpl extends WeEventStrategy {
WeTaskFission
weTaskFission
=
weTaskFissionService
WeTaskFission
weTaskFission
=
weTaskFissionService
.
selectWeTaskFissionById
(
weTaskFissionRecord
.
getTaskFissionId
());
.
selectWeTaskFissionById
(
weTaskFissionRecord
.
getTaskFissionId
());
Long
fissNum
=
weTaskFissionRecord
.
getFissNum
();
Long
fissNum
=
weTaskFissionRecord
.
getFissNum
();
if
(
we
CustomerThreadLocal
.
get
()
!
=
null
){
if
(
we
FlowerCustomerRelThreadLocal
.
get
()
=
=
null
){
fissNum
++;
fissNum
++;
weTaskFissionRecord
.
setFissNum
(
fissNum
);
weTaskFissionRecord
.
setFissNum
(
fissNum
);
}
}
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
View file @
4a48bcc
...
@@ -482,6 +482,8 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
...
@@ -482,6 +482,8 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
//客户入库
//客户入库
WeCustomer
weCustomer
=
new
WeCustomer
();
WeCustomer
weCustomer
=
new
WeCustomer
();
BeanUtils
.
copyPropertiesASM
(
externalUserDetail
.
getExternal_contact
(),
weCustomer
);
BeanUtils
.
copyPropertiesASM
(
externalUserDetail
.
getExternal_contact
(),
weCustomer
);
weCustomer
.
setCreateTime
(
new
Date
());
weCustomer
.
setUpdateTime
(
new
Date
());
this
.
saveOrUpdate
(
weCustomer
);
this
.
saveOrUpdate
(
weCustomer
);
//客户与通讯录客户关系
//客户与通讯录客户关系
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment