发生在linux下发生的如此怪事

本人在windows下跑起来查询出来的数据一切都正常。这些语句放在linux下。没跑多久,数据查询只有9条。这是为何?而我对sql语句改了多次还是如此。这我还是头一次碰到。是否有人曾碰到过?

publicListsystemProductPriceList(intstatus)throwsException{

//returngetHibernateTemplate().find("selectp.productPriceTrendsId,p.priceTrendsName,p.sortOrderfromProductPriceTrendspwherep.status=?orderbyp.sortOrder",Integer.valueOf(status));

Map<String,Object>hashMap=newHashMap<String,Object>();

Stringhql="selectppt.productPriceTrendsId,ppt.priceTrendsName,ppt.sortOrderfromProductPriceTrendsppt";

Stringwhere="where1>0andppt.status=:status";

Stringorderby="orderbyppt.sortOrder";

hashMap.put("status",Integer.valueOf(status));

returnfindQueryList(hql+where+orderby,hashMap);

}

相关推荐