cl
2 天以前 0b3cdb1e0c2f495edb971c585bd6b4b0456bf93a
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Stock.java
@@ -28,6 +28,7 @@
import com.vincent.rsf.server.system.service.UserService;
import com.vincent.rsf.server.system.entity.User;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
@@ -71,13 +72,22 @@
     * 业务类型
     */
    @ApiModelProperty(value= "业务类型")
    private Short wkType;
    private String wkType;
    /**
     * 库存数量
     */
    @ApiModelProperty(value= "库存数量")
    private Double anfme;
    @ApiModelProperty(value= "重量")
    private BigDecimal weight;
    @ApiModelProperty(value= "条形码")
    private String barcode;
    @ApiModelProperty("库位")
    private String locCode;
    /**
     * 状态 1: 正常  0: 冻结  
@@ -134,7 +144,7 @@
    public Stock() {}
    public Stock(String code,String sourceCode,Long sourceId,String type,Short wkType,Double anfme,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
    public Stock(String code,String sourceCode,Long sourceId,String type,String wkType,Double anfme,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
        this.code = code;
        this.sourceCode = sourceCode;
        this.sourceId = sourceId;
@@ -225,20 +235,6 @@
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
    public Boolean getStatusBool(){
        if (null == this.status){ return null; }
        switch (this.status){
            case 1:
                return true;
            case 0:
                return false;
            default:
                return null;
        }
    }
}