Commit d4ab0c4a by zhangchen

改造拼接参数方式解决隐式转换导致索引失效问题

parent 2243ab22
......@@ -1085,7 +1085,7 @@ public class OrderDao extends GenericHibernateDao<Order, Integer> {
}
public Order getOrderByOutTradeId(String outTradeId) {
String hsql = "from Order t where t.outTradeId=" + outTradeId;
String hsql = "from Order t where t.outTradeId= '"+outTradeId+"'";
return this.get(hsql);
}
......
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