using HH.MData; using HH.WMS.Entitys.Basic; using MongoDB.Driver.Builders; 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_SAFETYDAL : DapperBaseDAL { #region 根据物料编码获取安全库存信息 /// /// 根据物料编码获取安全库存信息 /// /// /// /// [HANHE(XDL)] CREATED BY 2018-11-16 public TN_AB_B_ITEM_SAFETYEntity GetItemSafetyDetail(string itemBarCode) { try { TN_AB_B_ITEM_SAFETYEntity entity = new TN_AB_B_ITEM_SAFETYEntity(); var query = Query.EQ("CN_S_ITEM_CODE", itemBarCode); entity = MongoDBSingleton.Instance.FindOne(query, "TN_AB_B_ITEM_SAFETY"); return entity; } catch (Exception ex) { return null; } } #endregion } }