using HH.WMS.Entitys.Algorithm; using HH.WMS.Entitys.Basic; using HH.WMS.Entitys.Common; using HW.DAL; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HW.BLL { /// /// 同步记录表业务逻辑层 /// /// /// [HanHe(XDL)] CREATED 2018/06/12 public class TN_AB_B_SYNCH_LOGBLL : BaseBLL { #region 根据表名获取同步记录集合 /// /// 根据表名获取同步记录集合 /// /// 表名 /// 同步记录集合 /// [HanHe(XDL)] CREATED 2018/06/12 public List GetsynchLogList(string tableName) { return CreateDAL().GetsynchLogList(tableName); } #endregion #region 获取需要删除的数据 /// /// 获取需要删除的数据 /// /// /// [HanHe(XDL)] CREATED 2018/06/13 public List GetRemoveDataList() { return CreateDAL().GetRemoveDataList(); } #endregion #region 根据仓库编码删除 /// /// 根据仓库编码删除 /// /// /// 字段值 /// 字段名称 /// 表名 /// /// [HanHe(XDL)] CREATED 2018/06/13 public bool RemoveDataByCode(string fieldValue, string fieldName, string collectionName) { return CreateDAL().RemoveDataByCode(fieldValue, fieldName, collectionName); } #endregion #region 删除中间表标识为已删除的数据 /// /// 删除中间表标识为已删除的数据 /// /// /// /// [HanHe(XDL)] CREATED 2018/06/13 public SqlExecuteResult RemoveData(List stockRemoveList, string tableName) { return CreateDAL().RemoveData(stockRemoveList, tableName); } #endregion #region 判断mongo中是否存在该条记录 /// /// 判断mongo中是否存在该条记录 /// /// /// 字段值 /// 字段名称 /// 表名 /// /// [HanHe(XDL)] CREATED 2018/06/13 public bool IsExistsMongo(string fieldValue, string fieldName, string collectionName) { return CreateDAL().IsExistsMongo(fieldValue, fieldName, collectionName); } #endregion #region 新增一个集合到mongo数据库 /// /// 新增一个集合到mongo数据库 /// /// 实体类 /// 实体类集合数据 /// 对象名称 /// /// [HanHe(XDL)] CREATED 2018/06/13 public bool AddList(List lstEntity, string collectionName) { return CreateDAL().AddList(lstEntity, collectionName); } #endregion #region 删除已同步数据 /// /// 删除已同步数据 /// /// 集合名称 /// public SqlExecuteResult RemoveSynchLogData(string tableName) { return CreateDAL().RemoveSynchLogData(tableName); } #endregion public List GetSynchDataList() { return CreateDAL().GetSynchDataList(); } public void ClearMongo(string date) { CreateDAL().ClearMongo(date); } public bool ClearMongoCollection(string collectionName) { return CreateDAL().ClearMongoCollection(collectionName); } public bool IsExistsMongoSafty(TN_AB_B_ITEM_SAFETYEntity tN_AB_B_ITEM_SAFETYEntity, string collectionName) { return CreateDAL().IsExistsMongoSafty(tN_AB_B_ITEM_SAFETYEntity, collectionName); } public bool RemoveDataByCodeSafty(TN_AB_B_ITEM_SAFETYEntity tN_AB_B_ITEM_SAFETYEntity, string collectionName) { return CreateDAL().RemoveDataByCodeSafty(tN_AB_B_ITEM_SAFETYEntity, collectionName); } } }