@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Goods implements Serializable {
private static final long serialVersionUID = -2737659835949653933L;
/**
- 商品编号
*/
@ExcelProperty(value = “编号”)
private Integer id;
/**
- 商品名称
*/
@ExcelProperty(“商品名称”)
private String name;
/**
- 市场价格
*/
@ExcelProperty(“市场价格”)
private double price1;
/**
- 会员价格
*/
@ExcelProperty(“会员价格”)
private double price2;
/**
- 商品库存数量
*/
@ExcelProperty(“库存数量”)
private Integer amount;
}
public static void main(String[] args) {
final ArrayList arrayList = new