using HH.MData; using HH.WMS.Entitys.Algorithm; using MongoDB.Bson; using MongoDB.Driver; using MongoDB.Driver.Builders; /******************************************************************************** ** auth: DBS ** date: 2019/1/15 17:19:03 ** desc: 尚未编写描述 ** Ver.: V1.0.0 *********************************************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WMS.DAL.Basic { public class TN_AB_B_ITEM_PRICEDAL : BaseDAL { public List GetItemList(List itemCodes) { var itemCode = itemCodes.ConvertAll(x => x); List queryList = new List(); queryList.Add(Query.EQ("CN_S_PRICE_TYPE", "标准成本")); queryList.Add(Query.In("CN_S_ITEM_CODE", itemCode)); IMongoQuery query = null; if (queryList.Any()) query = Query.And(queryList); return MongoDBSingleton.Instance.Find(query, "TN_AB_B_ITEM_PRICE"); } } }