天津麦格纳BUG修复

yun-zuoyi
puxiao.liao 5 years ago
parent 7b8038d516
commit cfd0cb03ff

@ -9,7 +9,12 @@ import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Version;
import java.util.List;
/**
@ -115,10 +120,10 @@ public class WmsStockQuan extends BaseBean {
@ApiParam(value = "报废数量")
private Double scrapQty;
// @Version
// @Column(name = "LOCK_VERSION")
// @ApiParam(value = "乐观锁", example = "1")
// public Integer lockVersion;
@Version
@Column(name = "LOCK_VERSION", columnDefinition = "int default 0")
@ApiParam(value = "乐观锁", defaultValue = "0")
public Integer lockVersion;
@Transient
@ApiParam(value = "总数量")
@ -221,6 +226,10 @@ public class WmsStockQuan extends BaseBean {
return this.boxQty == null ? 0 : this.boxQty;
}
public Integer getLockVersion() {
return this.lockVersion == null ? 0 : this.lockVersion;
}
public WmsStockQuan() {
}

Loading…
Cancel
Save