|
@@ -103,7 +103,7 @@ public class CusFollowService extends BaseService<CusFollow> {
|
|
|
Customer customer = customerMapper.selectById(cusFollowVO.getCusId());
|
|
Customer customer = customerMapper.selectById(cusFollowVO.getCusId());
|
|
|
|
|
|
|
|
// 查询跟进人是否存在
|
|
// 查询跟进人是否存在
|
|
|
- CusFollowStaff followStaff = cusFollowStaffMapper.selectByCusFollowStaffId(cusFollowVO.getCusId(), cusFollowVO.getFollowStaff());
|
|
|
|
|
|
|
+ CusFollowStaff followStaff = cusFollowStaffMapper.selectByCusFollowStaffId(cusFollowVO.getCusId(), authUtils.getStaff().getStaffId());
|
|
|
//追加跟进人表
|
|
//追加跟进人表
|
|
|
if (followStaff == null) {
|
|
if (followStaff == null) {
|
|
|
cusFollowStaffMapper.insert(new CusFollowStaff()
|
|
cusFollowStaffMapper.insert(new CusFollowStaff()
|
|
@@ -126,6 +126,8 @@ public class CusFollowService extends BaseService<CusFollow> {
|
|
|
if (users == null || users.size() == 0 || (users != null && users.stream().allMatch(Objects::isNull))) {
|
|
if (users == null || users.size() == 0 || (users != null && users.stream().allMatch(Objects::isNull))) {
|
|
|
users = new ArrayList<>();
|
|
users = new ArrayList<>();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
//公海客户跟进后 变成潜客状态
|
|
//公海客户跟进后 变成潜客状态
|
|
|
if (Constant.saleCustomerStatusConstant.SALE_STATUS_INTE.getName().equals(customer.getSaleStatus())) {
|
|
if (Constant.saleCustomerStatusConstant.SALE_STATUS_INTE.getName().equals(customer.getSaleStatus())) {
|
|
|
customer.setSaleStatus(Constant.saleCustomerStatusConstant.SALE_STATUS_POTE.getName());
|
|
customer.setSaleStatus(Constant.saleCustomerStatusConstant.SALE_STATUS_POTE.getName());
|
|
@@ -260,11 +262,11 @@ public class CusFollowService extends BaseService<CusFollow> {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * @desc : 保存跟进信息到xxl job
|
|
|
|
|
- * @author : 于继渤海
|
|
|
|
|
- * @date : 2022-05-27 09:53
|
|
|
|
|
- */
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * @desc : 保存跟进信息到xxl job
|
|
|
|
|
+ * @author : 于继渤海
|
|
|
|
|
+ * @date : 2022-05-27 09:53
|
|
|
|
|
+ */
|
|
|
// @Transactional(rollbackFor = {Exception.class})
|
|
// @Transactional(rollbackFor = {Exception.class})
|
|
|
// public void saveToXxlJob(CusFollow cusFollow) {
|
|
// public void saveToXxlJob(CusFollow cusFollow) {
|
|
|
//
|
|
//
|