xiachuang 1 år sedan
förälder
incheckning
175306399c

+ 1 - 1
src/main/java/com/palmnest/dao/airconditioner/impl/AirConditionerAddTimeOrderHistoryDaoImpl.java

@@ -24,6 +24,6 @@ public class AirConditionerAddTimeOrderHistoryDaoImpl extends GenericDaoHibernat
     public List<AirConditionerAddTimeOrderHistory> getByOrderNo(String orderNo) {
         String sql = "select * from tb_airconditioner_addtime_order_history where order_no = ?";
         logger.info("根据空调加时订单获取历史记录 sql: " + sql);
-        return getSession().createSQLQuery(sql).setString(0, orderNo).list();
+        return (List<AirConditionerAddTimeOrderHistory>)getSession().createSQLQuery(sql).addEntity(AirConditionerAddTimeOrderHistory.class).setString(0, orderNo).list();
     }
 }

+ 1 - 1
src/main/java/com/palmnest/dao/airconditioner/impl/ConditionerAddTimeOrderExtendDaoImpl.java

@@ -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();
     }
 }