You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package com.itbaizhan.orm ;
/**
* TorderItem - 订单明细实体类
*
* 该类表示一个订单中的具体商品项, 用于记录每个商品在订单中的明细信息, 包括商品ID、商品数量、所属订单ID等。
* 订单明细通常用于记录订单中包含的所有商品及其数量等信息,是订单和商品之间的关联。
*/
public class TorderItem {
private String id ; // 订单明细ID, 唯一标识每个订单明细项
private String order_id ; // 订单ID, 表示该订单明细项所属的订单
private String goods_id ; // 商品ID, 表示该明细项对应的商品
private int goods_quantity ; // 商品数量,表示该商品在该订单中的数量
private Tgoods goods ; // 商品对象,关联商品详细信息(额外的字段)
/**
* 获取商品数量
*
* @return 商品数量
*/
public int getGoods_quantity ( ) {
return goods_quantity ;
}
/**
* 设置商品数量
*
* @param goods_quantity 商品数量
*/
public void setGoods_quantity ( int goods_quantity ) {
this . goods_quantity = goods_quantity ;
}
/**
* 获取商品ID
*
* @return 商品ID
*/
public String getGoods_id ( ) {
return goods_id ;
}
/**
* 设置商品ID
*
* @param goods_id 商品ID
*/
public void setGoods_id ( String goods_id ) {
this . goods_id = goods_id ;
}
/**
* 获取订单明细ID
*
* @return 订单明细ID
*/
public String getId ( ) {
return id ;
}
/**
* 设置订单明细ID
*
* @param id 订单明细ID
*/
public void setId ( String id ) {
this . id = id ;
}
/**
* 获取订单ID
*
* @return 订单ID
*/
public String getOrder_id ( ) {
return order_id ;
}
/**
* 设置订单ID
*
* @param order_id 订单ID
*/
public void setOrder_id ( String order_id ) {
this . order_id = order_id ;
}
/**
* 获取商品对象(详细信息)
*
* @return 商品对象
*/
public Tgoods getGoods ( ) {
return goods ;
}
/**
* 设置商品对象(详细信息)
*
* @param goods 商品对象
*/
public void setGoods ( Tgoods goods ) {
this . goods = goods ;
}
}