[init]创建能辉erp 系统

master
NH-LHG 2 years ago
parent c6974ceac4
commit 510a48e7e4

@ -32,15 +32,21 @@ public class OrderDetail implements Serializable {
private java.lang.Long id;
/**主单id*/
@ApiModelProperty(value = "主单id")
@JsonSerialize(using = ToStringSerializer.class)
private java.lang.Long orderId;
/**产品id*/
@Excel(name = "产品id", width = 15)
@ApiModelProperty(value = "产品id")
@JsonSerialize(using = ToStringSerializer.class)
private java.lang.Long goodsId;
/**产品名称*/
@Excel(name = "产品名称", width = 15)
@ApiModelProperty(value = "产品名称")
private java.lang.String goodsName;
/**价格*/
@Excel(name = "价格", width = 15)
@ApiModelProperty(value = "价格")
private java.math.BigDecimal price;
/**产品数量*/
@Excel(name = "产品数量", width = 15)
@ApiModelProperty(value = "产品数量")

@ -13,5 +13,4 @@ public class OrderDetailExt extends OrderDetail {
private java.lang.String category;
private java.lang.String unit;
private java.lang.String url;
private java.math.BigDecimal price;
}

@ -16,7 +16,7 @@
<select id="selectByMainIdExt" parameterType="java.lang.String" resultType="org.jeecg.modules.demo.erp.entity.ext.OrderDetailExt">
SELECT o.*,g.factory,g.specs,g.unit,g.url,g.category,g.price
SELECT o.*,g.factory,g.specs,g.unit,g.url,g.category,o.price
FROM order_detail o,goods g
<where>
o.goods_id = g.id

Loading…
Cancel
Save