|
@@ -558,7 +558,7 @@ public class RepalCustomerServiceImpl extends ServiceImpl<RepalCustomerMapper, R
|
|
if(ObjectUtil.isNull(dto.getId())){
|
|
if(ObjectUtil.isNull(dto.getId())){
|
|
int count = repalLinkService.count(Wrappers.lambdaQuery(RepalLink.class).eq(RepalLink::getCustId,dto.getCustId()).eq(RepalLink::getDeleted,Dict.DeletedStatusEnunm.否.getCode()));
|
|
int count = repalLinkService.count(Wrappers.lambdaQuery(RepalLink.class).eq(RepalLink::getCustId,dto.getCustId()).eq(RepalLink::getDeleted,Dict.DeletedStatusEnunm.否.getCode()));
|
|
if(count > 4){
|
|
if(count > 4){
|
|
- throw new CommonException(CodeMsg.FAILED,"负责人已满5人");
|
|
|
|
|
|
+ throw new CommonException(CodeMsg.FAILED,"联系人已满5人");
|
|
}
|
|
}
|
|
RepalLink repalLink = new RepalLink();
|
|
RepalLink repalLink = new RepalLink();
|
|
BeanUtils.copyProperties(dto,repalLink);
|
|
BeanUtils.copyProperties(dto,repalLink);
|
|
@@ -585,7 +585,7 @@ public class RepalCustomerServiceImpl extends ServiceImpl<RepalCustomerMapper, R
|
|
}else {
|
|
}else {
|
|
RepalLink repalLink = repalLinkService.getById(dto.getId());
|
|
RepalLink repalLink = repalLinkService.getById(dto.getId());
|
|
if(ObjectUtil.isNull(repalLink)){
|
|
if(ObjectUtil.isNull(repalLink)){
|
|
- throw new CommonException(CodeMsg.FAILED,"负责人不存在");
|
|
|
|
|
|
+ throw new CommonException(CodeMsg.FAILED,"联系人不存在");
|
|
}
|
|
}
|
|
String oldValue = JSON.toJSONString(repalLink);
|
|
String oldValue = JSON.toJSONString(repalLink);
|
|
repalLink.setName(dto.getName());
|
|
repalLink.setName(dto.getName());
|