下面的是我的Model定义,没再继续写属性。请问查出的Model大家是如何转成传统待属性的JavaBean的?感谢指点。
public class FscOrders extends BaseModel<FscOrders> { private static final long serialVersionUID = 2942274075596366828L; public static final FscOrders dao = new FscOrders(); /** * 根据orderId 获取订单详情 * * @param customer_serialid * @return */ public List<FscOrders> getOrderByCustomerSerialid(Object customer_serialid) { return this.find(" select * from t_ord_book_order where 1=1 AND is_del=0 AND customer_serialid= ?", customer_serialid); } }
PS:
查询出的Model或Record,像下面的方式取值太麻烦,字段太多记不住影响效率。
String customer_serialid = fscOrders.getStr("customer_serialid");