|
@ -154,15 +154,21 @@ public class AiLablePostServiceImpl implements IAiLabelPostService { |
|
|
public Boolean insertByBatchBo(AiLabelPostBindBo aiLabelPostBindBo) { |
|
|
public Boolean insertByBatchBo(AiLabelPostBindBo aiLabelPostBindBo) { |
|
|
delPostId(aiLabelPostBindBo.getPostId()); |
|
|
delPostId(aiLabelPostBindBo.getPostId()); |
|
|
List<AiLabelPost> resultlist = new ArrayList<>(); |
|
|
List<AiLabelPost> resultlist = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(aiLabelPostBindBo.getLableIdList())){ |
|
|
for (Long labelId : aiLabelPostBindBo.getLableIdList()) { |
|
|
for (Long labelId : aiLabelPostBindBo.getLableIdList()) { |
|
|
AiLabelPost ailabelPost = new AiLabelPost(); |
|
|
AiLabelPost ailabelPost = new AiLabelPost(); |
|
|
ailabelPost.setPostId(aiLabelPostBindBo.getPostId()); |
|
|
ailabelPost.setPostId(aiLabelPostBindBo.getPostId()); |
|
|
ailabelPost.setLabelId(labelId); |
|
|
ailabelPost.setLabelId(labelId); |
|
|
resultlist.add(ailabelPost); |
|
|
resultlist.add(ailabelPost); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return this.baseMapper.insertBatch(resultlist); |
|
|
return this.baseMapper.insertBatch(resultlist); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<AiLabelPostVo> getAiLabelList() { |
|
|
public List<AiLabelPostVo> getAiLabelList() { |
|
|
return ObjectUtil.isNotEmpty(this.baseMapper.selectAiLabelPost())?this.baseMapper.selectAiLabelPost(): ListUtil.empty(); |
|
|
return ObjectUtil.isNotEmpty(this.baseMapper.selectAiLabelPost())?this.baseMapper.selectAiLabelPost(): ListUtil.empty(); |
|
|