云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 汽车销售网站设计与实现 详细设计与代码实现毕业设计论文

汽车销售网站设计与实现 详细设计与代码实现毕业设计论文

  • 62 次阅读
  • 3 次下载
  • 2025/6/24 15:07:06

/**定金**/

private Float barginMoney; /** 是否可见 **/ private Boolean visible = true;

/** 产品类型(大型车,中型车....) **/ private ProductType type; /** 上架日期 **/

private Date createdate = new Date(); /** 人气指数 **/ private Integer clickcount = 1; /** 销售量 **/

private Integer sellcount = 0; /**是否最新车型**/ private Boolean isNew=false; /**是否热销车型**/ private Boolean isHot=false; /** 是否推荐(活动车型) **/ private Boolean isActivity=false; /** 产品样式 **/

private Set styles = new HashSet(); /**产品首页图片展示**/ private String viewImagePathFront; /**产品详细页图片组**/ private

Set

viewImages=new

HashSet();

/**产品评价**/

private Set comments=new HashSet();

public ProductInfo() {}

第9页(共49页)

public ProductInfo(String productCode) { }

this.code=productCode;

@OneToMany(cascade={CascadeType.ALL}, mappedBy=\@SearchableComponent

public Set getStyles() { }

public void setStyles(Set styles) { } /**

* 从样式集合中删除指定样式 * @param style */

public void removeProductStyle(ProductStyle style){ }

if(this.styles.contains(style)){ }

this.styles.remove(style); style.setProduct(null); this.styles = styles; return styles;

/**

* 添加样式到样式集合 * @param style */

public void addProductStyle(ProductStyle style){

if(!this.styles.contains(style)){

this.styles.add(style);

第10页(共49页)

}

style.setProduct(this);

} /**

* 添加图片组到集合 * @param style */

public void addImageGroup(ProductImgGroup group){ }

if(!this.viewImages.contains(group)){ }

this.viewImages.add(group); group.setProduct(this);

@Id @SearchableId public String getCode() { }

public void setCode(String code) { }

@Column(length=50,nullable=false)

@SearchableProperty(boost=2,name=\public String getName() { }

public void setName(String name) { }

@ManyToOne(cascade=CascadeType.REFRESH)

第11页(共49页)

this.name = name; return name; this.code = code; return code;

YES)

@JoinColumn(name=\public Brand getBrand() { }

public void setBrand(Brand brand) { }

this.brand = brand;

return brand;

@Column(nullable=false)@SearchableProperty(index=Index.NO,store=Store.

public String getInnerSellPrice() { }

@Transient @SearchableProperty(index=Index.NO,store=Store.YES) public Integer getInventory(){ }

public void setInnerSellPrice(String innerSellPrice) { }

@Lob @Column(nullable=false) @SearchableProperty public String getDescription() { }

public void setDescription(String description) {

this.description = description;

第12页(共49页)

return description;

this.innerSellPrice = innerSellPrice; Integer inventory=0;

for(ProductStyle style:getStyles()){ }

return inventory;

inventory+=style.getInventory(); return innerSellPrice;

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

/**定金**/ private Float barginMoney; /** 是否可见 **/ private Boolean visible = true; /** 产品类型(大型车,中型车....) **/ private ProductType type; /** 上架日期 **/ private Date createdate = new Date(); /** 人气指数 **/ private Integer clickcount = 1; /** 销售量 **/ private Integer sellcount = 0; /**是否最新车型**/ private Boolean isNew=false; /**是否热销车型**/ private Bo

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com