Merge remote-tracking branch 'origin/dev' into zs

This commit is contained in:
SongZhang 2024-08-14 11:31:31 +08:00
commit 9bfa67d71b
6 changed files with 22 additions and 0 deletions

View File

@ -101,6 +101,12 @@ public class TbConsInfo implements Serializable {
@ApiModelProperty(value = "消耗总量")
private BigDecimal stockConsume;
@Column(name = "`is_check`")
@ApiModelProperty(value = "是否检测库存")
private String isCheck;
public void copy(TbConsInfo source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}

View File

@ -110,6 +110,12 @@ public class ViewConInfoFlow implements Serializable {
@Column(name = "`is_check`")
@ApiModelProperty(value = "是否检测库存")
private String isCheck;
public void copy(ViewConInfoFlow source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}

View File

@ -77,4 +77,7 @@ public class TbConsInfoDto implements Serializable {
private String contypeCode;
private String isCheck;
}

View File

@ -68,4 +68,6 @@ public class TbConsInfoFlowDto implements Serializable {
private Integer orderId;
private String orderNo;
}

View File

@ -62,4 +62,7 @@ public class ViewConInfoFlowDto implements Serializable {
private String conWarning;
private Integer conTypeId;
private String isCheck;
}

View File

@ -160,7 +160,9 @@ public class TbConsInfoServiceImpl implements TbConsInfoService {
tbConsInfo.setConUnit(resource.getConUnit());
tbConsInfo.setConWarning(resource.getConWarning());
tbConsInfo.setStatus(resource.getStatus());
tbConsInfo.setIsCheck(resource.getIsCheck());
tbConsInfo.setUpdateTime(new Timestamp(System.currentTimeMillis()));
tbConsInfoRepository.save(tbConsInfo);
}