Quellcode durchsuchen

fix 删除标签

zoujiajian vor 2 Jahren
Ursprung
Commit
cb259af4f3

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/corp/impl/CorpEventActionServiceImpl.java

@@ -332,7 +332,7 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
 			if (corpTag != null) {
 				corpTagMapper.deleteById(corpTag.getId());
 
-				Integer count = corpTagMapper.delete(Wrappers.lambdaQuery(CorpTag.class)
+				Integer count = corpTagMapper.selectCount(Wrappers.lambdaQuery(CorpTag.class)
 						.eq(CorpTag::getGroupId, corpTag.getGroupId()));
 				if (count == 0) {
 					corpTagGroupMapper.delete(Wrappers.lambdaQuery(CorpTagGroup.class)