考试标签筛选问题

This commit is contained in:
tiger_zhou 2023-05-05 11:09:12 +08:00
parent e516ad0be4
commit 806718bb7e

View File

@ -95,8 +95,10 @@ public class Training2PublishService {
or.andStateEqualTo(BusinessConsts.STATUS_USE_INT);
if(!CollectionUtils.isEmpty(lables)){
for (String tag : lables) {
criteria.andLabelJsonLike(String.format("%%%s%%", tag));
or.andLabelJsonLike(String.format("%%%s%%", tag));
if(StringUtils.hasText(tag)){
criteria.andLabelJsonLike(String.format("%%%s%%", tag));
or.andLabelJsonLike(String.format("%%%s%%", tag));
}
}
}
// PublishedTraining2Example.Criteria or2 = example.or();