Commit e87c9507 by 泽锋 李

fix

parent 9e93a20e
......@@ -27,6 +27,7 @@ namespace AutoTurnOver.Models
/// </summary>
public int type { get; set; }
public int stocks { get; set; }
private int _stocks;
public int stocks { get { return Math.Max(0, _stocks); } set { _stocks = value; } }
}
}
......@@ -16,6 +16,7 @@ namespace AutoTurnOver.Models
public DateTime push_time { get; set; }
public int stocks { get; set; }
private int _stocks;
public int stocks { get { return Math.Max(0, _stocks); } set { _stocks = value; } }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment