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 ff9e432b
authored
Jan 13, 2022
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改客户继承bug
1 parent
0c626b24
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeAllocateCustomerMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
View file @
ff9e432
...
@@ -420,7 +420,8 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
...
@@ -420,7 +420,8 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
);
);
if
(
jobExtendsCustomer
.
getErrcode
().
equals
(
WeConstans
.
WE_SUCCESS_CODE
)){
if
(
jobExtendsCustomer
.
getErrcode
().
equals
(
WeConstans
.
WE_SUCCESS_CODE
)){
iWeAllocateCustomerService
.
save
(
iWeAllocateCustomerService
.
batchAddOrUpdate
(
ListUtil
.
toList
(
WeAllocateCustomer
.
builder
()
WeAllocateCustomer
.
builder
()
.
allocateTime
(
new
Date
())
.
allocateTime
(
new
Date
())
.
extentType
(
new
Integer
(
1
))
.
extentType
(
new
Integer
(
1
))
...
@@ -429,6 +430,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
...
@@ -429,6 +430,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
.
takeoverUserid
(
weOnTheJobCustomerVo
.
getTakeoverUserId
())
.
takeoverUserid
(
weOnTheJobCustomerVo
.
getTakeoverUserId
())
.
failReason
(
"在职继承"
)
.
failReason
(
"在职继承"
)
.
build
()
.
build
()
)
);
);
}
}
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeAllocateCustomerMapper.xml
View file @
ff9e432
...
@@ -19,11 +19,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -19,11 +19,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
(#{item.takeoverUserid},#{item.externalUserid},#{item.allocateTime},#{item.handoverUserid},#{item.status},#{item.takeoverTime},#{item.failReason})
(#{item.takeoverUserid},#{item.externalUserid},#{item.allocateTime},#{item.handoverUserid},#{item.status},#{item.takeoverTime},#{item.failReason})
</foreach>
</foreach>
ON DUPLICATE KEY UPDATE
ON DUPLICATE KEY UPDATE
takeover_userid=IF
(TRIM(VALUES(takeover_userid)) != '',
VALUES(takeover_userid),we_allocate_customer.takeover_userid),
takeover_userid=IF
NULL(
VALUES(takeover_userid),we_allocate_customer.takeover_userid),
allocate_time=IF
(VALUES(allocate_time), VALUES(allocate_time)
, we_allocate_customer.allocate_time),
allocate_time=IF
NULL(VALUES(allocate_time)
, we_allocate_customer.allocate_time),
takeover_time=IF
(VALUES(takeover_time),
VALUES(takeover_time), we_allocate_customer.takeover_time),
takeover_time=IF
NULL(
VALUES(takeover_time), we_allocate_customer.takeover_time),
status=IF
(VALUES(status),
VALUES(status),we_allocate_customer.status),
status=IF
NULL(
VALUES(status),we_allocate_customer.status),
fail_reason=IF
(TRIM(VALUES(fail_reason)) !='',
VALUES(fail_reason),we_allocate_customer.fail_reason);
fail_reason=IF
NULL(
VALUES(fail_reason),we_allocate_customer.fail_reason);
</insert>
</insert>
...
...
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