修改耗材

This commit is contained in:
韩鹏辉
2024-07-05 16:37:02 +08:00
parent c8ebe7fcfb
commit b9fd6aed7a
3 changed files with 14 additions and 2 deletions

View File

@@ -11,6 +11,8 @@ public class TbConsInfoFlow implements Serializable {
private Integer consId;
private Integer proSkuId;
private String conName;
private BigDecimal amount;
@@ -53,6 +55,14 @@ public class TbConsInfoFlow implements Serializable {
this.consId = consId;
}
public Integer getProSkuId() {
return proSkuId;
}
public void setProSkuId(Integer proSkuId) {
this.proSkuId = proSkuId;
}
public String getConName() {
return conName;
}

View File

@@ -70,6 +70,7 @@ public class ConsService {
flow.setConsId(tbConsInfo.getId());
flow.setShopId(tbConsInfo.getShopId());
flow.setConName(tbConsInfo.getConName());
flow.setProSkuId(proskuCon.getProductSkuId());
if("create".equals(type)){
amount=proskuCon.getSurplusStock().multiply(new BigDecimal(orderDetail.getNum()));