using com.hnshituo.core.webapp.vo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common
{
    public class PerAddWeightService
    {
        /// <summary>
        /// 根据预报编号查数据
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public RESTfulResult<List<PerAddWeight>> doQueryWf(PerAddWeight info)
        {
            DbHelper db = new DbHelper();
            RESTfulResult<PageList<List<PerAddWeight>>> rm = db.doOption<PageList<List<PerAddWeight>>>("peraddweights", "/", new object[] { info }, 0);

            RESTfulResult<List<PerAddWeight>> result = new RESTfulResult<List<PerAddWeight>>();
            result.Succeed = rm.Succeed;
            result.Status = rm.Status;
            result.Message = rm.Message;
            result.ResultMessage = rm.ResultMessage;
            result.Code = rm.Code;
            if (rm.Data != null && rm.Data.list != null && rm.Data.list.Count > 0)
            {
                result.Data = rm.Data.list;
            }

            return result;
        }
    }
}
