|
@@ -344,7 +344,7 @@ public class MarkLibraryServiceImpl extends BaseQueryService<MarkLibrary> implem
|
|
|
if (query.getTagId() == 0) {
|
|
|
sql.append(" and t.id is not null ");
|
|
|
} else {
|
|
|
- sql.append(" and m.tags like '").append(query.getTagId()).append("'");
|
|
|
+ sql.append(" and m.tags like '%").append(query.getTagId()).append("%'");
|
|
|
}
|
|
|
Query qCount = em.createNativeQuery(sql.toString(), MarkLibrary.class);
|
|
|
int totalCount = qCount.getResultList().size();
|