|
|
@ -289,8 +289,8 @@ public class CustomerWorkbenchServiceImpl extends ServiceImpl<CustomerWorkbenchD |
|
|
|
@Transactional |
|
|
|
@Transactional |
|
|
|
public Boolean insertCompany(CompanyCustomerRequest companyCustomerReq) { |
|
|
|
public Boolean insertCompany(CompanyCustomerRequest companyCustomerReq) { |
|
|
|
|
|
|
|
|
|
|
|
Long userId = Long.parseLong(this.getUserId()); |
|
|
|
// Long userId = Long.parseLong(this.getUserId());
|
|
|
|
companyCustomerReq.setManager(userId); // 从redis获取当前登录用户
|
|
|
|
// companyCustomerReq.setManager(userId); // 从redis获取当前登录用户
|
|
|
|
boolean result = customerService.insertCompany(companyCustomerReq); |
|
|
|
boolean result = customerService.insertCompany(companyCustomerReq); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
@ -301,8 +301,8 @@ public class CustomerWorkbenchServiceImpl extends ServiceImpl<CustomerWorkbenchD |
|
|
|
@Transactional |
|
|
|
@Transactional |
|
|
|
public Boolean updateCompanyNew(CompanyCustomerRequest companyCustomerReq) { |
|
|
|
public Boolean updateCompanyNew(CompanyCustomerRequest companyCustomerReq) { |
|
|
|
|
|
|
|
|
|
|
|
Long userId = Long.parseLong(this.getUserId()); |
|
|
|
// Long userId = Long.parseLong(this.getUserId());
|
|
|
|
companyCustomerReq.setManager(userId); |
|
|
|
// companyCustomerReq.setManager(userId);
|
|
|
|
return customerService.updateCompanyNew(companyCustomerReq); |
|
|
|
return customerService.updateCompanyNew(companyCustomerReq); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|