添加盘点备注
This commit is contained in:
@@ -72,6 +72,11 @@ public class TbConCheck implements Serializable {
|
||||
@ApiModelProperty(value = "createTime")
|
||||
private Timestamp createTime;
|
||||
|
||||
|
||||
@Column(name = "`remark`")
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
public void copy(TbConCheck source){
|
||||
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
||||
}
|
||||
|
||||
@@ -44,4 +44,6 @@ public class TbConCheckDto implements Serializable {
|
||||
private BigDecimal acStockNumber;
|
||||
|
||||
private Timestamp createTime;
|
||||
|
||||
private String remark;
|
||||
}
|
||||
@@ -82,6 +82,7 @@ public class TbConCheckServiceImpl implements TbConCheckService {
|
||||
conCheck.setLpNum(resources.getLpNum());
|
||||
conCheck.setLpAmount(consInfo.getPrice().multiply(resources.getLpNum()));
|
||||
conCheck.setCreateTime(new Timestamp(System.currentTimeMillis()));
|
||||
conCheck.setRemark(resources.getRemark());
|
||||
return tbConCheckMapper.toDto(tbConCheckRepository.save(conCheck));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user