package gok.lesson.dao.bean; /** * 购物车 * @author setter * 商品信息 * 数量 */ public class BuyCarBean { private McProductsBean mcProductsBean;//商品表信息 private int count;//数量 public BuyCarBean() { // TODO Auto-generated constructor stub } /** * 商品表信息 * @param mcProductsBean * @param count */ public BuyCarBean(McProductsBean mcProductsBean, int count) { super(); this.mcProductsBean = mcProductsBean; this.count = count; } /** * 商品表信息 * @return the mcProductsBean */ public McProductsBean getMcProductsBean() { return mcProductsBean; } /** * 商品表信息 * @param mcProductsBean the mcProductsBean to set * */ public void setMcProductsBean(McProductsBean mcProductsBean) { this.mcProductsBean = mcProductsBean; } /** * 数量 * @return the count */ public int getCount() { return count; } /** * 数量 * @param count the count to set * */ public void setCount(int count) { this.count = count; } /** * 判断购物车集合中是否存在重复的商品信息 */ public boolean equals(Object obj) { //super.equals(obj); if (this == obj) { return true; } if (obj instanceof BuyCarBean) { BuyCarBean carBean = (BuyCarBean) obj; // 商品编号相等则相等 return this.mcProductsBean.getNid().equals(carBean.mcProductsBean.getNid()); } return false; } }

微信网友_6465745773727744 LV5
2023年5月8日
彩色天空 LV5
2023年4月11日
95194489 LV4
2023年3月6日
fall_jda LV1
2022年11月24日
263648 LV7
2022年6月23日
zhao1546 LV3
2022年5月5日
某贤的小迷妹 LV3
2022年5月2日
wanghuili LV3
2022年4月7日
MU123456LV LV6
2022年4月5日
zhllzhll LV7
2021年12月29日

wwy000 LV2
4月29日
b1uccc LV2
2024年12月14日
微信网友_7290996505972736 LV4
2024年12月11日
Daima000 LV4
2024年12月3日
suhe_5254
2024年12月1日
暂无贡献等级
曾显示 LV6
2024年7月7日
微信网友_7052938295398400 LV1
2024年6月25日
hlFDGd LV1
2024年6月11日
郭宇航裹裹 LV5
2024年6月9日
2064423810 LV1
2024年6月8日