Browse Source

商品信息映射

master
xyiege 3 years ago
parent
commit
88b1b9c28d
  1. 47
      src/main/java/cn/chjyj/szwh/vo/GoodsListVo.java
  2. 3
      src/main/resources/mapper/szwh/GoodsMapper.xml

47
src/main/java/cn/chjyj/szwh/vo/GoodsListVo.java

@ -1,5 +1,7 @@
package cn.chjyj.szwh.vo;
import java.math.BigDecimal;
/**
* 商品列表映射
* goods+goods_detail
@ -18,6 +20,11 @@ public class GoodsListVo {
private Integer entrust_status; //商品委托类型;1:转让;2:许可 \goods_detail
//处理其他操作
private String key;
private Integer charges_type; //付费类型 1:免费 2:付费
private Integer goods_entrust;//委托类型
private BigDecimal price; //gd 价格
private String canceltime; //撤销时间
private String goods_ownership_str;
public Integer getId() {
return id;
@ -114,4 +121,44 @@ public class GoodsListVo {
public void setKey(String key) {
this.key = key;
}
public Integer getCharges_type() {
return charges_type;
}
public void setCharges_type(Integer charges_type) {
this.charges_type = charges_type;
}
public Integer getGoods_entrust() {
return goods_entrust;
}
public void setGoods_entrust(Integer goods_entrust) {
this.goods_entrust = goods_entrust;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public String getCanceltime() {
return canceltime;
}
public void setCanceltime(String canceltime) {
this.canceltime = canceltime;
}
public String getGoods_ownership_str() {
return goods_ownership_str;
}
public void setGoods_ownership_str(String goods_ownership_str) {
this.goods_ownership_str = goods_ownership_str;
}
}

3
src/main/resources/mapper/szwh/GoodsMapper.xml

@ -66,7 +66,8 @@
<select id="getGoodsVoList" parameterType="java.util.Map" resultType="cn.chjyj.szwh.vo.GoodsListVo">
SELECT g.id,g.createtime,g.goods_islicode,
gd.goods_name, g.username,g.user_islicode,
gd.goods_type, g.goods_status, g.goods_detail_id,
gd.goods_type, g.goods_status, g.goods_detail_id,g.canceltime,
gd.charges_type,gd.goods_entrust,gd.price,gd.goods_ownership_str,
g.is_recommend as isRecommend, g.entrust_status
FROM goods as g
INNER JOIN goods_detail as gd ON g.goods_detail_id=gd.id

Loading…
Cancel
Save