Commit b93acafe by chongli

修复资源无法设置价格的问题

parent f6333632
......@@ -129,7 +129,7 @@ public class ResourcePriceDao extends GenericHibernateDao<ResourcePrice, Integer
query.setParameter("priceDate", date);
query.setParameter("resourceId", resourceId);
List<ResourcePrice> list = (List<ResourcePrice>)query.list();
return list.get(0);
return list.size()>0?list.get(0):null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment