public async Task <APIResultDto> CreateForecastRecordAsync(ForecastRecordWXEditDto input)
 {
     try
     {
         foreach (var item in input.List)
         {
             var entity = new ForecastRecord();
             entity.OpenId           = input.OpenId;
             entity.DemandForecastId = input.DemandForecastId;
             entity.PredictiveValue  = item.PredictiveValue;
             entity.DemandDetailId   = item.DemandDetailId;
             await _entityRepository.InsertAsync(entity);
         }
         return(new APIResultDto()
         {
             Code = 0, Msg = "保存成功"
         });
     }
     catch (Exception)
     {
         return(new APIResultDto()
         {
             Code = 901, Msg = "保存失败,请重试"
         });
     }
 }
        public async Task <bool> GetIsFillInDemandAsync(ForecastRecordWXEditDto input)
        {
            int num = await _entityRepository.CountAsync(v => v.DemandForecastId == input.DemandForecastId && v.OpenId == input.OpenId);

            if (num != 0)
            {
                return(true);
            }
            return(false);
        }