yun-zuoyi
汪云昊 5 years ago
commit 6b15fcc83a

@ -32,7 +32,7 @@ public class ReportDaoImpl implements IReportDao {
LOGGER.info(" find HQL:{} \n find params :{}", hql, findParam);
Query queryObject = entityManager.createQuery(hql);
if(CollectionUtils.isEmpty(findParam)){
if(!CollectionUtils.isEmpty(findParam)){
findParam.forEach((K, V) -> queryObject.setParameter(K, V));
}
@ -45,7 +45,7 @@ public class ReportDaoImpl implements IReportDao {
LOGGER.info(" find HQL:{} \n find params :{}", hql, findParam);
Query queryObject = entityManager.createQuery(hql);
if(CollectionUtils.isEmpty(findParam)){
if(!CollectionUtils.isEmpty(findParam)){
findParam.forEach((K, V) -> queryObject.setParameter(K, V));
}

Loading…
Cancel
Save