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
61b49b93
Commit
61b49b93
authored
Jul 04, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-07-04-2提交
parent
d098224f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
TargetLogDO.java
...ao/module/order/dal/dataobject/targetLog/TargetLogDO.java
+5
-0
TargetLogServiceImpl.java
.../module/order/service/targetLog/TargetLogServiceImpl.java
+14
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dal/dataobject/targetLog/TargetLogDO.java
View file @
61b49b93
...
...
@@ -71,4 +71,9 @@ public class TargetLogDO extends BaseDO {
private
Long
deptId
;
private
int
loglev
;
/*
归属方,发货还是收货方
*/
private
String
gsf
;
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/targetLog/TargetLogServiceImpl.java
View file @
61b49b93
...
...
@@ -357,6 +357,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
Long
customerId
=
0L
;
Long
saleManid
=
info
.
getSalesmanId
();
int
loglev
=
0
;
String
s_gsf
=
"n"
;
CustomerDO
consignorDO
=
customerService
.
getCustomer
(
info
.
getConsignorVO
().
getCustomerId
());
...
...
@@ -372,6 +373,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
//二期需求修改
customerId
=
consignorDO
.
getId
();
loglev
=
1
;
s_gsf
=
"f"
;
//客户的客户经理为空,就把业绩归属设为0
if
(
consignorDO
.
getCustomerService
()
==
null
||
consignorDO
.
getCustomerService
()
==
0
||
...
...
@@ -404,6 +406,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
if
(
consignorDO
!=
null
)
{
customerId
=
consignorDO
.
getId
();
loglev
=
2
;
s_gsf
=
"f"
;
//校验客户的客户经理
if
(
consignorDO
.
getCustomerService
()
==
null
||
consignorDO
.
getCustomerService
()
==
0
||
...
...
@@ -424,6 +427,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
//如果是发货人付款且关联报价单,业绩归属发货人 --层级3 第一个
customerId
=
consignorDO
.
getId
();
loglev
=
3
;
s_gsf
=
"f"
;
//校验客户的客户经理
if
(
consignorDO
.
getCustomerService
()
==
null
||
consignorDO
.
getCustomerService
()
==
0
||
...
...
@@ -438,6 +442,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
//如果是发货人付款且档案设置默认付运费 --层级4 第一个
customerId
=
consignorDO
.
getId
();
loglev
=
4
;
s_gsf
=
"f"
;
//校验客户的客户经理
if
(
consignorDO
.
getCustomerService
()
==
null
||
consignorDO
.
getCustomerService
()
==
0
||
...
...
@@ -451,6 +456,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
//业绩归属方是收货人
loglev
=
5
;
customerId
=
orderConsigneeDO
.
getCustomerId
();
s_gsf
=
"s"
;
//校验客户的客户经理
if
(
consigneeDO
.
getCustomerService
()
==
null
||
consigneeDO
.
getCustomerService
()
==
0
||
...
...
@@ -468,6 +474,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
customerId
=
orderConsigneeDO
.
getCustomerId
()
!=
null
?
orderConsigneeDO
.
getCustomerId
()
:
consigneeDO
.
getId
();
loglev
=
5
;
s_gsf
=
"s"
;
if
(
consigneeDO
!=
null
&&
(
consigneeDO
.
getCustomerService
()
==
null
||
consigneeDO
.
getCustomerService
()
==
0
))
{
...
...
@@ -508,6 +515,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
consignorDO
.
getCustomerService
()
==
0
||
consignorDO
.
getIsInOpenSea
()
==
true
)
{
saleManid
=
0L
;
s_gsf
=
"f"
;
orderService
.
updateOrderSalesmanId
(
info
.
getOrderId
(),
0L
);
loglev
=
31
;
...
...
@@ -523,6 +531,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
consignorDO
.
getCustomerService
()
==
0
||
consignorDO
.
getIsInOpenSea
()
==
true
)
{
saleManid
=
0L
;
s_gsf
=
"f"
;
orderService
.
updateOrderSalesmanId
(
info
.
getOrderId
(),
0L
);
loglev
=
32
;
...
...
@@ -533,6 +542,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
//层级4 第二个 发货人档案设置默认付运费 且发货人付运费 业绩归属 发货人
customerId
=
orderConsignorDO
.
getCustomerId
();
loglev
=
3
;
s_gsf
=
"f"
;
//校验客户的客户经理
if
(
consignorDO
.
getCustomerService
()
==
null
||
consignorDO
.
getCustomerService
()
==
0
||
...
...
@@ -549,6 +559,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
// 层级4 第三个 发货人档案设置默认付运费 且发货人付清关费 业绩归属发货人
loglev
=
4
;
customerId
=
orderConsignorDO
.
getCustomerId
();
s_gsf
=
"f"
;
//校验客户的客户经理
if
(
consignorDO
.
getCustomerService
()
==
null
||
consignorDO
.
getCustomerService
()
==
0
||
...
...
@@ -562,6 +573,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
}
else
{
customerId
=
orderConsigneeDO
.
getCustomerId
();
loglev
=
5
;
s_gsf
=
"s"
;
//校验客户的客户经理
if
(
consigneeDO
.
getCustomerService
()
==
null
||
consigneeDO
.
getCustomerService
()
==
0
||
...
...
@@ -582,6 +594,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
orderConsigneeDO
.
getCustomerId
()
:
0
;
loglev
=
5
;
s_gsf
=
"s"
;
//校验客户的客户经理
if
(
consigneeDO
!=
null
)
{
if
(
consigneeDO
.
getCustomerService
()
==
null
||
...
...
@@ -608,6 +621,7 @@ public class TargetLogServiceImpl extends AbstractService<TargetLogMapper, Targe
loglev
=-
1
;
}
targetLogDO
.
setLoglev
(
loglev
);
targetLogDO
.
setGsf
(
s_gsf
);
targetLogDO
.
setUpdateTime
(
new
Date
());
targetLogMapper
.
updateById
(
targetLogDO
);
}
...
...
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