xiatian 5 lat temu
rodzic
commit
b9449da890

+ 1 - 1
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/impl/ExportTemplateServiceImpl.java

@@ -66,7 +66,7 @@ public class ExportTemplateServiceImpl implements ExportTemplateService {
 				predicates.add(cb.like(root.get("fileName"), toSqlSearchPattern(fileName)));
 			}
 			if (StringUtils.isNotBlank(type)) {
-				predicates.add(cb.like(root.get("type"), toSqlSearchPattern(type)));
+				predicates.add(cb.equal(root.get("type"), type));
 			}
 
 			return cb.and(predicates.toArray(new Predicate[predicates.size()]));