自定义表单功能优化

yun-zuoyi
wei.peng 5 years ago
parent 7b78ebb791
commit 22c1e27131

@ -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