package com.matrix.system.hive.bean;
|
|
import com.matrix.core.anotations.Extend;
|
import com.matrix.core.tools.DateUtil;
|
import com.matrix.core.tools.StringUtils;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
import java.util.List;
|
|
|
/**
|
* @date 2016-07-30 09:54
|
*/
|
public class ShoppingGoods implements Serializable {
|
|
/**
|
* 删除状态1表示正常
|
*/
|
public static final Integer NORMAL = 1;
|
/**
|
* 删除状态2表示已删除
|
*/
|
public static final Integer DELETED = 2;
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
/**
|
* 商城商品-套餐
|
*/
|
public final static String SHOPPING_GOODS_TYPE_TC = "套餐";
|
/**
|
* 商城商品-项目
|
*/
|
public final static String SHOPPING_GOODS_TYPE_XM = "项目";
|
|
/**
|
* 商城商品-家居产品
|
*/
|
public final static String SHOPPING_GOODS_TYPE_JJCP = "家居产品";
|
|
/**
|
* 商城商品-充值卡
|
*/
|
public final static String SHOPPING_GOODS_TYPE_CZK = "充值卡";
|
|
/**
|
* 商城商品-综合卡
|
*/
|
public final static String SHOPPING_GOODS_TYPE_ZHK = "综合卡";
|
|
|
|
private Long id;
|
/**
|
* 产品名称
|
*/
|
private String name;
|
|
/**
|
* 商品分类 组合商品/家居产品/项目/充值卡/综合卡
|
*
|
* @return
|
*/
|
private String goodType;
|
|
|
/**
|
* 产品编码
|
*/
|
private String code;
|
|
/**
|
* 产品助记码
|
*/
|
private String zjm;
|
|
//=====================存货基础信息=====================
|
|
/**
|
* 库存编号
|
*/
|
private String goodsNo;
|
|
/**
|
* 商品规格
|
*/
|
private String unit;
|
|
/**
|
* 存货分类
|
*/
|
private Long goodsSortId;
|
/**
|
* 存货分类名称
|
*/
|
private String goodsSortName;
|
/**
|
* 往来单位id
|
*/
|
private Long supplierId;
|
/**
|
* 计量单位
|
*/
|
private String measure;
|
/**
|
* 库存警戒值 sku旧值
|
*/
|
private Integer alarmNum;
|
/**
|
* 容积
|
*/
|
private int volume;
|
|
/**
|
* 成本价
|
*/
|
private Double price;
|
|
/**
|
* 批发价
|
*/
|
private Double wholesale;
|
|
//=====================存货基础信息END====================
|
|
|
|
//=====================项目服务信息END====================
|
/**
|
* 项目服务时长 单位分钟
|
*/
|
private Integer timeLength;
|
|
/**
|
* 提成
|
**/
|
private Double proReward;
|
//=====================项目服务信息END====================
|
|
/**
|
* 产品介绍
|
*/
|
private String introduction;
|
|
/**
|
* 详细描述
|
*/
|
private String description;
|
|
/**
|
* 上架、下架
|
*/
|
private String staus;
|
|
/**
|
* 售价/本金
|
*/
|
private Double sealPice;
|
|
/**
|
* 参考价/赠送金额
|
*/
|
private Double referencePice;
|
|
/**
|
* 产品图片
|
*/
|
private String img;
|
|
/**
|
* 销量
|
*/
|
private Integer sealCount;
|
/**
|
* 是否为组合商品 Y,N
|
*/
|
private String isAssemble;
|
|
/**
|
* 是否删除 Y,N,S内置对象,会籍卡充值使用
|
*/
|
private String deleted;
|
|
/**
|
* 商品分类id
|
*/
|
private Long cateId;
|
|
/**
|
* 积分兑换价格
|
*/
|
private Double jfPice;
|
|
/**
|
* 兑换商品需要的积分
|
*/
|
private Integer jfNumber;
|
|
|
/**
|
* 下架时间
|
*/
|
@DateTimeFormat(pattern = DateUtil.DATE_FORMAT_DD)
|
private Date saleOffTime;
|
|
/**
|
* 单会员是否只买一次
|
*/
|
private String isOnce;
|
|
/**
|
* 销售平台
|
*/
|
private String salePlatform;
|
/**
|
* 是否可赠送
|
*/
|
private String isPresent;
|
|
/**
|
* 微信端图片
|
*/
|
private String weiImg;
|
/**
|
* 微信端详细描述
|
*/
|
private String weiDescription;
|
|
|
/**
|
* 有效期,为数组,例如12,单位为月份
|
*/
|
private Integer validity;
|
|
|
/**
|
* 最大发卡数,0表示无限制
|
*/
|
private Integer carMaxSaleCount;
|
|
/**
|
* 是一卡通吗
|
*/
|
private String carIsAll;
|
|
/**
|
* 是会籍卡? 是 ,否
|
*/
|
private String isVipCar;
|
|
/**
|
* 会籍卡对应的会籍等级
|
*/
|
private Long vipGradId;
|
|
/**
|
* 最大消费次数
|
*/
|
private Integer carUseCount;
|
|
/**
|
* 是发布到积分商城(是、否)
|
*/
|
private String isIntegral;
|
|
/**
|
* 品种可用门店
|
*/
|
private String useShop;
|
|
/**
|
* 是否为总部产品,1是2不是
|
*/
|
private Integer headquarters;
|
|
|
/**
|
* 积分比例
|
*/
|
private Double commissionRate;
|
|
|
private Long shopId;
|
|
|
private Long companyId;
|
|
//扩展属性
|
@Extend
|
private String shopName;
|
|
/**
|
* 不显示某一个类型的产品
|
*/
|
@Extend
|
private String queryNoGoodsype;
|
|
/**
|
* 商品的组合的商品关系集合
|
*/
|
private List<ShoppingGoodsAssemble> assembleGoods;
|
|
/**
|
* 充值卡绑定产品或者分类
|
*/
|
private List<MoneyCardAssemble> cardAssembles;
|
|
/**
|
* 商品组合的家居产品
|
*/
|
private List<ShoppingGoodsAssemble> assembleJjcp;
|
|
|
/**
|
* 商品的组合的项目关系集合
|
*/
|
private List<ShoppingGoodsAssemble> assembleProj;
|
|
|
/**
|
* 综合商品组合产品
|
*/
|
private List<ShoppingGoodsAssemble> zongheCarGoods;
|
/**
|
* 所属分类名称
|
*/
|
private String cateName;
|
|
/**
|
* 真实销量
|
*/
|
private Integer realSealCount;
|
|
/**
|
* 库存
|
*/
|
private Integer store;
|
/**
|
* 是否是套餐卡
|
* 套餐卡:Y
|
*/
|
private String isCourse;
|
/**
|
* 是否为分销商品
|
*/
|
private String isDistribution;
|
/**
|
* 一等佣金
|
*/
|
private Double fristCommission;
|
/**
|
* 二等佣金
|
*/
|
private Double secondCommission;
|
/**
|
* 商品创建时间
|
*/
|
private Date createTime;
|
/**
|
* 扩展字段
|
*/
|
@DateTimeFormat(pattern = DateUtil.DATE_FORMAT_DD)
|
private Date startTime;
|
|
@DateTimeFormat(pattern = DateUtil.DATE_FORMAT_DD)
|
private Date endTime;
|
|
|
|
|
|
|
|
//页面绑定的对象
|
/**
|
* 充值卡绑定的分类
|
*/
|
private String cates;
|
|
/**
|
* 充值卡绑定是商品
|
*/
|
private String goodsIds;
|
|
|
private String params;
|
|
/**
|
* 是否被删除 1不是,2 是
|
*/
|
private Integer isDel;
|
|
/**
|
* 购买有效期
|
*/
|
private String buyValid;
|
|
/**
|
* 购买有效期单位 - 扩展字段用于参数接收 y/m/d
|
*/
|
private String buyDateUnit;
|
|
/**
|
* 购买有效期时长
|
*/
|
private Integer buyDateNum;
|
|
/**
|
* 消耗有效期
|
*/
|
private String useValid;
|
|
/**
|
* 消耗有效期单位 - 扩展字段用于参数接收 y/m/d
|
*/
|
private String useDateUnit;
|
|
/**
|
* 消耗有效期时长
|
*/
|
private Integer useDateNum;
|
|
/**
|
* 统一失效时间
|
*/
|
private Date invalidTime;
|
|
private String isInfinite;
|
|
/**
|
* 支付方式 1-充值本金 2-赠送金额 3-积分
|
*/
|
private String payMethods;
|
|
public String getPayMethods() {
|
return payMethods;
|
}
|
|
public void setPayMethods(String payMethods) {
|
this.payMethods = payMethods;
|
}
|
|
public String getIsInfinite() {
|
return isInfinite;
|
}
|
|
public void setIsInfinite(String isInfinite) {
|
this.isInfinite = isInfinite;
|
}
|
|
public Integer getBuyDateNum() {
|
return buyDateNum;
|
}
|
|
public void setBuyDateNum(Integer buyDateNum) {
|
this.buyDateNum = buyDateNum;
|
}
|
|
public Integer getUseDateNum() {
|
return useDateNum;
|
}
|
|
public void setUseDateNum(Integer useDateNum) {
|
this.useDateNum = useDateNum;
|
}
|
|
public String getBuyValid() {
|
return buyValid;
|
}
|
|
public void setBuyValid(String buyValid) {
|
if (StringUtils.isNotBlank(buyValid)) {
|
if (buyValid.contains("Y") || buyValid.contains("M") || buyValid.contains("D")) {
|
this.buyDateUnit = buyValid.substring(buyValid.length() - 1);
|
this.buyDateNum = Integer.parseInt(buyValid.substring(0, buyValid.length() - 1));
|
}
|
}
|
this.buyValid = buyValid;
|
}
|
|
public String getBuyDateUnit() {
|
return buyDateUnit;
|
}
|
|
public void setBuyDateUnit(String buyDateUnit) {
|
this.buyDateUnit = buyDateUnit;
|
}
|
|
public String getUseValid() {
|
return useValid;
|
}
|
|
public void setUseValid(String useValid) {
|
if (StringUtils.isNotBlank(useValid)) {
|
if (useValid.contains("Y") || useValid.contains("M") || useValid.contains("D")) {
|
this.useDateUnit = useValid.substring(useValid.length() - 1);
|
this.useDateNum = Integer.parseInt(useValid.substring(0, useValid.length() - 1));
|
}
|
}
|
this.useValid = useValid;
|
}
|
|
public String getUseDateUnit() {
|
return useDateUnit;
|
}
|
|
public void setUseDateUnit(String useDateUnit) {
|
this.useDateUnit = useDateUnit;
|
}
|
|
public Date getInvalidTime() {
|
return invalidTime;
|
}
|
|
public void setInvalidTime(Date invalidTime) {
|
this.invalidTime = invalidTime;
|
}
|
|
public Integer getIsDel() {
|
return isDel;
|
}
|
|
public void setIsDel(Integer isDel) {
|
this.isDel = isDel;
|
}
|
|
public String getQueryNoGoodsype() {
|
return queryNoGoodsype;
|
}
|
|
public void setQueryNoGoodsype(String queryNoGoodsype) {
|
this.queryNoGoodsype = queryNoGoodsype;
|
}
|
|
public String getUseShop() {
|
return useShop;
|
}
|
|
public void setUseShop(String useShop) {
|
this.useShop = useShop;
|
}
|
|
public Integer getHeadquarters() {
|
return headquarters;
|
}
|
|
public void setHeadquarters(Integer headquarters) {
|
this.headquarters = headquarters;
|
}
|
|
public Long getShopId() {
|
return shopId;
|
}
|
|
public void setShopId(Long shopId) {
|
this.shopId = shopId;
|
}
|
|
public Long getCompanyId() {
|
return companyId;
|
}
|
|
public void setCompanyId(Long companyId) {
|
this.companyId = companyId;
|
}
|
|
|
|
public List<ShoppingGoodsAssemble> getZongheCarGoods() {
|
return zongheCarGoods;
|
}
|
|
public void setZongheCarGoods(List<ShoppingGoodsAssemble> zongheCarGoods) {
|
this.zongheCarGoods = zongheCarGoods;
|
}
|
|
|
|
public List<MoneyCardAssemble> getCardAssembles() {
|
return cardAssembles;
|
}
|
|
public void setCardAssembles(List<MoneyCardAssemble> cardAssembles) {
|
this.cardAssembles = cardAssembles;
|
}
|
|
public List<ShoppingGoodsAssemble> getAssembleJjcp() {
|
return assembleJjcp;
|
}
|
|
public void setAssembleJjcp(List<ShoppingGoodsAssemble> assembleJjcp) {
|
this.assembleJjcp = assembleJjcp;
|
}
|
|
public String getCode() {
|
return code;
|
}
|
|
public void setCode(String code) {
|
this.code = code;
|
}
|
|
public Date getStartTime() {
|
return startTime;
|
}
|
|
public void setStartTime(Date startTime) {
|
this.startTime = startTime;
|
}
|
|
public Date getEndTime() {
|
return endTime;
|
}
|
|
public void setEndTime(Date endTime) {
|
this.endTime = endTime;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public String getIsDistribution() {
|
return isDistribution;
|
}
|
|
public void setIsDistribution(String isDistribution) {
|
this.isDistribution = isDistribution;
|
}
|
|
public Double getFristCommission() {
|
return fristCommission;
|
}
|
|
public void setFristCommission(Double fristCommission) {
|
this.fristCommission = fristCommission;
|
}
|
|
public Double getSecondCommission() {
|
return secondCommission;
|
}
|
|
public void setSecondCommission(Double secondCommission) {
|
this.secondCommission = secondCommission;
|
}
|
|
public Integer getRealSealCount() {
|
return realSealCount;
|
}
|
|
public void setRealSealCount(Integer realSealCount) {
|
this.realSealCount = realSealCount;
|
}
|
|
public Integer getStore() {
|
return store;
|
}
|
|
public void setStore(Integer store) {
|
this.store = store;
|
}
|
|
public Long getVipGradId() {
|
return vipGradId;
|
}
|
|
public void setVipGradId(Long vipGradId) {
|
this.vipGradId = vipGradId;
|
}
|
|
|
|
public String getGoodsNo() {
|
return goodsNo;
|
}
|
|
public void setGoodsNo(String goodsNo) {
|
this.goodsNo = goodsNo;
|
}
|
|
public String getUnit() {
|
return unit;
|
}
|
|
public void setUnit(String unit) {
|
this.unit = unit;
|
}
|
|
public Long getGoodsSortId() {
|
return goodsSortId;
|
}
|
|
public void setGoodsSortId(Long goodsSortId) {
|
this.goodsSortId = goodsSortId;
|
}
|
|
public String getGoodsSortName() {
|
return goodsSortName;
|
}
|
|
public void setGoodsSortName(String goodsSortName) {
|
this.goodsSortName = goodsSortName;
|
}
|
|
public Long getSupplierId() {
|
return supplierId;
|
}
|
|
public void setSupplierId(Long supplierId) {
|
this.supplierId = supplierId;
|
}
|
|
public String getMeasure() {
|
return measure;
|
}
|
|
public void setMeasure(String measure) {
|
this.measure = measure;
|
}
|
|
public Integer getAlarmNum() {
|
return alarmNum;
|
}
|
|
public void setAlarmNum(Integer alarmNum) {
|
this.alarmNum = alarmNum;
|
}
|
|
public int getVolume() {
|
return volume;
|
}
|
|
public void setVolume(int volume) {
|
this.volume = volume;
|
}
|
|
public Double getPrice() {
|
return price;
|
}
|
|
public void setPrice(Double price) {
|
this.price = price;
|
}
|
|
public Double getWholesale() {
|
return wholesale;
|
}
|
|
public void setWholesale(Double wholesale) {
|
this.wholesale = wholesale;
|
}
|
|
public Integer getTimeLength() {
|
return timeLength;
|
}
|
|
public void setTimeLength(Integer timeLength) {
|
this.timeLength = timeLength;
|
}
|
|
public Double getProReward() {
|
return proReward;
|
}
|
|
public void setProReward(Double proReward) {
|
this.proReward = proReward;
|
}
|
|
public String getParams() {
|
return params;
|
}
|
|
public void setParams(String params) {
|
this.params = params;
|
}
|
|
public String getCates() {
|
return cates;
|
}
|
|
public void setCates(String cates) {
|
this.cates = cates;
|
}
|
|
|
public String getIsVipCar() {
|
return isVipCar;
|
}
|
|
public void setIsVipCar(String isVipCar) {
|
this.isVipCar = isVipCar;
|
}
|
|
public String getGoodsIds() {
|
return goodsIds;
|
}
|
|
public void setGoodsIds(String goodsIds) {
|
this.goodsIds = goodsIds;
|
}
|
|
public String getGoodType() {
|
return goodType;
|
}
|
|
public String getCarIsAll() {
|
return carIsAll;
|
}
|
|
|
public void setCarIsAll(String carIsAll) {
|
this.carIsAll = carIsAll;
|
}
|
|
|
public Integer getCarMaxSaleCount() {
|
return carMaxSaleCount;
|
}
|
|
|
public void setCarMaxSaleCount(Integer carMaxSaleCount) {
|
this.carMaxSaleCount = carMaxSaleCount;
|
}
|
|
|
public Integer getCarUseCount() {
|
return carUseCount;
|
}
|
|
|
public void setCarUseCount(Integer carUseCount) {
|
this.carUseCount = carUseCount;
|
}
|
|
|
public void setGoodType(String goodType) {
|
this.goodType = goodType;
|
}
|
|
public String getIsAssemble() {
|
return isAssemble;
|
}
|
|
public void setIsAssemble(String isAssemble) {
|
this.isAssemble = isAssemble;
|
}
|
|
public String getDeleted() {
|
return deleted;
|
}
|
|
public void setDeleted(String deleted) {
|
this.deleted = deleted;
|
}
|
|
public Long getCateId() {
|
return cateId;
|
}
|
|
public void setCateId(Long cateId) {
|
this.cateId = cateId;
|
}
|
|
public Integer getJfNumber() {
|
return jfNumber;
|
}
|
|
public void setJfNumber(Integer jfNumber) {
|
this.jfNumber = jfNumber;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getIntroduction() {
|
return introduction;
|
}
|
|
public void setIntroduction(String introduction) {
|
this.introduction = introduction;
|
}
|
|
public String getDescription() {
|
return description;
|
}
|
|
public void setDescription(String description) {
|
this.description = description;
|
}
|
|
public String getStaus() {
|
return staus;
|
}
|
|
public void setStaus(String staus) {
|
this.staus = staus;
|
}
|
|
public Double getSealPice() {
|
return sealPice;
|
}
|
|
public void setSealPice(Double sealPice) {
|
this.sealPice = sealPice;
|
}
|
|
public Double getReferencePice() {
|
return referencePice;
|
}
|
|
public void setReferencePice(Double referencePice) {
|
this.referencePice = referencePice;
|
}
|
|
public String getImg() {
|
return img;
|
}
|
|
public void setImg(String img) {
|
this.img = img;
|
}
|
|
public Integer getSealCount() {
|
return sealCount;
|
}
|
|
public void setSealCount(Integer sealCount) {
|
this.sealCount = sealCount;
|
}
|
|
public List<ShoppingGoodsAssemble> getAssembleProj() {
|
return assembleProj;
|
}
|
|
public void setAssembleProj(List<ShoppingGoodsAssemble> assembleProj) {
|
this.assembleProj = assembleProj;
|
}
|
|
public List<ShoppingGoodsAssemble> getAssembleGoods() {
|
return assembleGoods;
|
}
|
|
public void setAssembleGoods(List<ShoppingGoodsAssemble> assembleGoods) {
|
this.assembleGoods = assembleGoods;
|
}
|
|
public Date getSaleOffTime() {
|
return saleOffTime;
|
}
|
|
public void setSaleOffTime(Date saleOffTime) {
|
this.saleOffTime = saleOffTime;
|
}
|
|
public String getIsOnce() {
|
return isOnce;
|
}
|
|
public void setIsOnce(String isOnce) {
|
this.isOnce = isOnce;
|
}
|
|
public String getIsPresent() {
|
return isPresent;
|
}
|
|
public void setIsPresent(String isPresent) {
|
this.isPresent = isPresent;
|
}
|
|
public String getSalePlatform() {
|
return salePlatform;
|
}
|
|
public void setSalePlatform(String salePlatform) {
|
this.salePlatform = salePlatform;
|
}
|
|
public String getWeiImg() {
|
return weiImg;
|
}
|
|
public void setWeiImg(String weiImg) {
|
this.weiImg = weiImg;
|
}
|
|
public String getWeiDescription() {
|
return weiDescription;
|
}
|
|
public void setWeiDescription(String weiDescription) {
|
this.weiDescription = weiDescription;
|
}
|
|
|
public Integer getValidity() {
|
return validity;
|
}
|
|
public void setValidity(Integer validity) {
|
this.validity = validity;
|
}
|
|
|
public String getCateName() {
|
return cateName;
|
}
|
|
public void setCateName(String cateName) {
|
this.cateName = cateName;
|
}
|
|
public void setJfPice(Double jfPice) {
|
this.jfPice = jfPice;
|
}
|
|
public Double getJfPice() {
|
return jfPice;
|
}
|
|
public String getIsIntegral() {
|
return isIntegral;
|
}
|
|
public void setIsIntegral(String isIntegral) {
|
this.isIntegral = isIntegral;
|
}
|
|
public Double getCommissionRate() {
|
return commissionRate;
|
}
|
|
public void setCommissionRate(Double commissionRate) {
|
this.commissionRate = commissionRate;
|
}
|
|
|
public String getIsCourse() {
|
return isCourse;
|
}
|
|
public void setIsCourse(String isCourse) {
|
this.isCourse = isCourse;
|
}
|
|
|
public String getShopName() {
|
return shopName;
|
}
|
|
public void setShopName(String shopName) {
|
this.shopName = shopName;
|
}
|
|
public String getZjm() {
|
return zjm;
|
}
|
|
public void setZjm(String zjm) {
|
this.zjm = zjm;
|
}
|
}
|