|
|
|
|
@ -45,12 +45,11 @@ public class ContactServiceImpl implements ContactService {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private CrmCustomerService customerService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private AdminUserApi adminUserApi;
|
|
|
|
|
private CrmPermissionService crmPermissionService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private CrmPermissionService crmPermissionService;
|
|
|
|
|
private AdminUserApi adminUserApi;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Long createContact(ContactCreateReqVO createReqVO, Long userId) {
|
|
|
|
|
@ -126,6 +125,7 @@ public class ContactServiceImpl implements ContactService {
|
|
|
|
|
return contactMapper.selectList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TODO 芋艿:后面在看下这个方法;
|
|
|
|
|
private void validateDataExist(ContactBaseVO contactBaseVO){
|
|
|
|
|
// 1.校验客户
|
|
|
|
|
if (contactBaseVO.getCustomerId() != null) {
|
|
|
|
|
@ -140,4 +140,5 @@ public class ContactServiceImpl implements ContactService {
|
|
|
|
|
Optional.ofNullable(contactMapper.selectById(contactBaseVO.getParentId())).orElseThrow(() -> exception(CONTACT_NOT_EXISTS));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|