/// <summary>
 /// 设置修改信息
 /// </summary>
 /// <param name="model">模型</param>
 public static void SetModifyInfo(this PersonTimeInfo model)
 {
     if (UserTool.CurrUser != null)
     {
         model.ModifierId = UserTool.CurrUser.Id;
         model.Modifier   = UserTool.CurrUser.Name;
         model.ModifyTime = DateTime.Now;
     }
 }
        /// <summary>
        /// 设置修改信息
        /// </summary>
        /// <param name="model">模型</param>
        /// <param name="currUser">当前用户</param>
        public static void SetModifyInfo(this PersonTimeInfo model, BasicUserInfo currUser = null)
        {
            var user = UserTool.GetCurrUser(currUser);

            if (user == null)
            {
                return;
            }

            model.ModifierId = user.Id;
            model.Modifier   = user.Name;
            model.ModifyTime = DateTime.Now;
        }
        /// <summary>
        /// 设置创建信息
        /// </summary>
        /// <typeparam name="IdT">ID类型</typeparam>
        /// <param name="model">模型</param>
        /// <param name="currUser">当前用户</param>
        public static void SetCreateInfo <IdT>(this PersonTimeInfo <IdT> model, BasicUserInfo <IdT> currUser = null)
        {
            var user = UserTool <IdT> .GetCurrUser(currUser);

            if (user == null)
            {
                return;
            }

            model.CreaterId  = model.ModifierId = user.Id;
            model.Creater    = model.Modifier = user.Name;
            model.CreateTime = model.ModifyTime = DateTime.Now;
        }