耗材记录中添加商品信息

This commit is contained in:
牛叉闪闪 2024-07-20 16:53:27 +08:00
parent 7e4299eecc
commit 4c153a2bfb
2 changed files with 21 additions and 0 deletions

View File

@ -73,6 +73,19 @@ public class ViewConInfoFlow implements Serializable {
@ApiModelProperty(value = "balance")
private BigDecimal balance;
@Column(name = "`product_id`")
@ApiModelProperty(value = "商品id")
private String productId;
@Column(name = "`product_name`")
@ApiModelProperty(value = "商品名称")
private String productName;
public void copy(ViewConInfoFlow source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}

View File

@ -15,7 +15,10 @@
*/
package cn.ysk.cashier.cons.service.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.Column;
import java.math.BigDecimal;
import java.io.Serializable;
@ -41,4 +44,9 @@ public class ViewConInfoFlowDto implements Serializable {
private BigDecimal conOut;
private BigDecimal balance;
private String productId;
private String productName;
}