示例#1
0
 private void ParseProductFN(ref Entities.CrawlerProduct.RabbitMQ.MssLogFindNewProduct productFN, Row row)
 {
     productFN.CRC        = QT.Entities.Common.Obj2Int64(row.GetValue(typeof(object), "crc"));
     productFN.DateSearch = QT.Entities.Common.Obj2Int64(row.GetValue(typeof(object), "date_log"));
     productFN.is_OK      = QT.Entities.Common.Obj2Bool(row.GetValue(typeof(object), "is_ok"));
     productFN.Product_ID = QT.Entities.Common.Obj2Int64(row.GetValue(typeof(object), "product_id"));
     productFN.Session    = row.GetValue(typeof(object), "session").ToString();
     productFN.Detail_Url = row.GetValue(typeof(object), "url").ToString();
 }
示例#2
0
        public List <QT.Entities.CrawlerProduct.RabbitMQ.MssLogFindNewProduct> GetDetailSessionFN(string session)
        {
            List <QT.Entities.CrawlerProduct.RabbitMQ.MssLogFindNewProduct> lst = new List <Entities.CrawlerProduct.RabbitMQ.MssLogFindNewProduct>();
            string            query  = string.Format(this.querySelectBySessionFN, session);
            RowSet            rowSet = _session.Execute(query);
            IEnumerable <Row> rows   = rowSet.GetRows();

            foreach (Row row in rows)
            {
                QT.Entities.CrawlerProduct.RabbitMQ.MssLogFindNewProduct productFN = new Entities.CrawlerProduct.RabbitMQ.MssLogFindNewProduct();
                ParseProductFN(ref productFN, row);
                lst.Add(productFN);
            }
            return(lst);
        }