public void UpdateCollect(InsertCollectDto input)
        {
            if (!input.Id.HasValue)
            {
                throw new UserFriendlyException("数据采集不存在");
            }
            var collect = _collectRepository.FirstOrDefault(t => t.Id == input.Id && t.IsDeleted == false);

            if (collect == null)
            {
                throw new UserFriendlyException("数据采集不存在");
            }

            if (collect.SchoolYear != input.SchoolYear)
            {
                CheckSchoolYearIsExist(input.SchoolYear);
            }

            var userClaim = _userService.UserClaim();

            collect.UpdateTime   = Clock.Now;
            collect.UpdateUserId = userClaim.UserId;

            collect.SchoolYear             = input.SchoolYear;
            collect.DeadlineSubmission     = (DateTime)input.DeadlineSubmission;
            collect.Description            = input.Description;
            collect.BaseDescription        = input.BaseDescription;
            collect.CooperationDescription = input.CooperationDescription;
            _collectRepository.UpdateAsync(collect);
        }
        public void InsertCollect(InsertCollectDto input)
        {
            CheckSchoolYearIsExist(input.SchoolYear);
            var userClaim = _userService.UserClaim();
            var Collect   = input.MapTo <CollectEntity>();

            Collect.Id           = Guid.NewGuid();
            Collect.CreateUserId = userClaim.UserId;
            _collectRepository.InsertAsync(Collect);
        }