版权声明:原创不易,转载请注明出处~ https://blog.csdn.net/qq_34266804/article/details/87901914
public List<RoundRobinChartData> queryList(RoundRobinChartData conData)
throws Exception {
Object[] params=new Object[] {};
String hql="from RoundRobinChartData u where 1=1 ";
if(conData!=null){
if(conData.getType()!=null &&!"".equals(conData.getType())){
hql+="and u.type = ? ";
params=new Object[] {conData.getType()};
}
}
hql+=" order by u.keyId desc";
return baseDao.getJpaTemplate().find(hql,params);
}