|
|
@@ -223,6 +223,11 @@ public class AitagTagInfoServiceImpl extends ServiceImpl<AitagTagInfoDao, AitagT
|
|
|
public void removeTags(List<String> list) {
|
|
|
AitagTagInfoEntity aitagTagInfoEntity = new AitagTagInfoEntity();
|
|
|
for (String id:list){
|
|
|
+ LambdaQueryWrapper<AitagTagInfoEntity> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(AitagTagInfoEntity::getParentId,id);
|
|
|
+ if(this.baseMapper.selectCount(queryWrapper)>0){
|
|
|
+ throw BizException.of("E011");
|
|
|
+ }
|
|
|
aitagTagInfoEntity.setId(id);
|
|
|
aitagTagInfoEntity.setIsDelete(TAG_DELETED);
|
|
|
aitagTagInfoEntity.setReviser(SessionCommonUtil.getUserInfo());
|