Commit 8d18ce63 authored by lanbaoming's avatar lanbaoming

2024-07-04-6提交

parent 9fa0ae71
...@@ -647,7 +647,7 @@ public class TargetLogServiceImpl extends ...@@ -647,7 +647,7 @@ public class TargetLogServiceImpl extends
s_gsf = "收货人付运费,归收货客户"; s_gsf = "收货人付运费,归收货客户";
if (consigneeDO == null) { if (consigneeDO == null) {
s_gsf += ",收货客户为空。"; s_gsf += ",收货客户为空。";
saleManid=0L; saleManid = 0L;
TargetLogDO targetLogDO = targetLogMapper.selectById(targetId); TargetLogDO targetLogDO = targetLogMapper.selectById(targetId);
//客户ID //客户ID
targetLogDO.setCustomerId(customerId); targetLogDO.setCustomerId(customerId);
...@@ -662,12 +662,13 @@ public class TargetLogServiceImpl extends ...@@ -662,12 +662,13 @@ public class TargetLogServiceImpl extends
} }
if (consigneeDO.getCustomerService() == null || if (consigneeDO.getCustomerService() == null ||
consigneeDO.getCustomerService() == 0) { consigneeDO.getCustomerService() == 0 &&
consigneeDO.getSource() == 12) {
//收货人客户经理为空时不算业绩 //收货人客户经理为空时不算业绩
//客户来源是发货人推荐,不保留业绩记录 customer_source //客户来源是发货人推荐,不保留业绩记录 customer_source
//2024-06-03 添加的逻辑 //2024-06-03 添加的逻辑
s_gsf += ",收货人客户经理为空,不算奖金。"; s_gsf += ",收货人客户经理为空,发货人推荐,不算奖金。";
saleManid=0L; saleManid = 0L;
//删除业绩记录 //删除业绩记录
orderService.updateOrderSalesmanId(info.getOrderId(), orderService.updateOrderSalesmanId(info.getOrderId(),
0L); 0L);
...@@ -695,21 +696,19 @@ public class TargetLogServiceImpl extends ...@@ -695,21 +696,19 @@ public class TargetLogServiceImpl extends
} }
} }
if (consigneeDO.getSource() == 12) { s_gsf += ",发货人带来的收货人,有客户经理,归收货人客户经理。";
s_gsf += ",发货人带来的收货人,有客户经理,归收货人客户经理。"; TargetLogDO targetLogDO = targetLogMapper.selectById(targetId);
TargetLogDO targetLogDO = targetLogMapper.selectById(targetId); //客户ID
//客户ID targetLogDO.setCustomerId(customerId);
targetLogDO.setCustomerId(customerId); //客户经理ID
//客户经理ID saleManid = consigneeDO.getCustomerService();
saleManid=consigneeDO.getCustomerService(); targetLogDO.setUserId(saleManid);
targetLogDO.setUserId(saleManid); targetLogDO.setLoglev(loglev);
targetLogDO.setLoglev(loglev); targetLogDO.setGsf(s_gsf);
targetLogDO.setGsf(s_gsf); targetLogDO.setGstype(n_gstype);
targetLogDO.setGstype(n_gstype); targetLogDO.setUpdateTime(new Date());
targetLogDO.setUpdateTime(new Date()); targetLogMapper.updateById(targetLogDO);
targetLogMapper.updateById(targetLogDO); return;
return;
}
} else if (info.getDrawee() == 3) { } else if (info.getDrawee() == 3) {
//自定义付款 //自定义付款
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment