|
@@ -21,6 +21,6 @@ public class ConditionerAddTimeOrderExtendDaoImpl extends GenericDaoHibernate<Ai
|
|
|
public AirConditionerAddTimeOrderExtend getByOrderNo(String orderNo) {
|
|
|
String sql = "select * from tb_airconditioner_addtime_order_extend where code = ?";
|
|
|
logger.info("根据空调加时订单获取扩展信息 sql: " + sql);
|
|
|
- return (AirConditionerAddTimeOrderExtend) getSession().createSQLQuery(sql).setString(0, orderNo).uniqueResult();
|
|
|
+ return (AirConditionerAddTimeOrderExtend) getSession().createSQLQuery(sql).addEntity(AirConditionerAddTimeOrderExtend.class).setString(0, orderNo).uniqueResult();
|
|
|
}
|
|
|
}
|