using System; using WeApp.BaseInfo; namespace WeApp.CommonManager.AppGuids { public class RecordId { public AppGuidType IdType { get; set; } public int Step { get; set; } public int LastId { get; set; } public DateTime LastDate { get; set; } /// /// 获取下一个ID /// /// public int GetNextId() { var id = LastId; LastId += Step; LastDate = DateTime.Now; return id; } } }