|
|
@@ -54,6 +54,7 @@ public class SysCorpFollowServiceImpl extends ServiceImpl<SysCorpFollowMapper, S
|
|
|
String followId = sysCorpFollowRelate.getFollowId();
|
|
|
Integer selectCount = sysCorpFollowRelateMapper.selectCount(Wrappers.lambdaQuery(SysCorpFollowRelate.class)
|
|
|
.eq(SysCorpFollowRelate::getFollowId, followId)
|
|
|
+ .ne(sysCorpFollowRelate.getId() != null, SysCorpFollowRelate::getId, sysCorpFollowRelate.getId())
|
|
|
.eq(SysCorpFollowRelate::getDeleted, 1));
|
|
|
if (selectCount > 0) {
|
|
|
throw BusinessRuntimeException.getInstance("已添加该客服");
|