日期:2014-05-16  浏览次数:20717 次

发生在linux下发生的如此怪事
本人在windows下跑起来查询出来的数据一切都正常。这些语句放在linux下。没跑多久,数据查询只有9条。这是为何?而我对sql语句改了多次还是如此。 这我还是头一次碰到。是否有人曾碰到过?
public List systemProductPriceList(int status)throws Exception{
// return getHibernateTemplate().find("select p.productPriceTrendsId,p.priceTrendsName,p.sortOrder from ProductPriceTrends p where p.status=? order by p.sortOrder", Integer.valueOf(status));
Map<String, Object> hashMap = new HashMap<String, Object>();
String hql = "select ppt.productPriceTrendsId,ppt.priceTrendsName,ppt.sortOrder from ProductPriceTrends ppt ";
String where = " where 1>0 and ppt.status=:status";
String orderby =" order by ppt.sortOrder";
hashMap.put("status", Integer.valueOf(status));
return findQueryList(hql+where+orderby, hashMap);
}

?