错误描述: DEBUG [org.hibernate.SQL] - SELECT orp.ATTR6 FROM DISTRIBUT_VIEW d WHERE d.state = '1' AND d.oper_log LIKE '%下单%' GROUP BY orp.ATTR6 ERROR [org. Read More
问题:根据id查询订单报错,查出来多个。order = orderService.findById(n.getOrderId()); 原因:hibernate映射关系一对多,回根据id查出来多条记录,然后抛出异常。 解决方案: 使用原生sql查询。select * from order where Read More