Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
d5c60328
Commit
d5c60328
authored
Aug 09, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: #195 客户业绩类型字段,判断条件变更
parent
33f4286a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
CustomerMapper.xml
...ore/src/main/resources/mapper/customer/CustomerMapper.xml
+16
-7
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/resources/mapper/customer/CustomerMapper.xml
View file @
d5c60328
...
...
@@ -765,7 +765,11 @@
-- 捞取时间置为空
a.catch_time = null,
-- 移交客户重置报价延期次数为0
a.create_offer_postpone_num = 0
a.create_offer_postpone_num = 0,
-- 20240809修改 zendao #195 客户业绩类型字段,判断条件变更
-- 新客户置为1
a.is_new = (case when a.status = 3 then 0 else 1 end)
WHERE id in
<foreach
item=
'customer'
index=
'index'
collection=
'customerList'
open=
'('
separator=
','
close=
')'
>
#{customer.id}
...
...
@@ -828,8 +832,6 @@
a.is_in_open_sea = 0,
a.enter_open_sea_time = null,
-- 客户经理
a.customer_service = #{loginUserId},
-- 确认接收置为true #2201 公海池捞取客户后,捞取客户直接进入我的客户
a.is_customer_service_confirmed = 1,
-- 分配时间
...
...
@@ -843,7 +845,14 @@
a.status = if(a.status = 2, 1, a.status),
-- 预计进入公海池时间
a.estimate_enter_open_sea_time = #{estimateEnterOpenSeaTime}
a.estimate_enter_open_sea_time = #{estimateEnterOpenSeaTime},
-- 20240809修改 zendao #195 客户业绩类型字段,判断条件变更
-- 不同客户经理更新为新客户; 同一客户经理,成交为老客户,非已成交状态为新客户
a.is_new = (case when a.customer_service != #{loginUserId} then 1 else (if(a.status = 3, 0, 1)) end),
-- 客户经理 (这个要放到后面,因为前面有用到这条件)
a.customer_service = #{loginUserId}
WHERE id = #{customerId}
</update>
...
...
@@ -853,9 +862,9 @@
update ecw_customer a
set a.is_new = 0
where a.deleted = 0 and a.is_new = 1 and a.id = #{customerId}
and exists(
select 1 from ecw_target_log where deleted = 0 and customer_id = a.id
)
-- 20240809修改 zendao #195 客户业绩类型字段,判断条件变更
and a.status = 3
-- and exists(select 1 from ecw_target_log where deleted = 0 and customer_id = a.id
)
</update>
<sql
id=
"orderQuery"
>
...
...
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