/// <summary> /// 添加各平台公司对应关系 /// </summary> /// <param name="model">各平台公司对应关系实体</param> /// <returns>返回1成功,其他失败</returns> public int AddMCompany(Model.OpenStructure.MCompanyInfo model) { if (model == null) { return(0); } return(dal.AddMCompany(model)); }
/// <summary> /// 添加各平台公司对应关系 /// </summary> /// <param name="model">各平台公司对应关系实体</param> /// <returns>返回1成功,其他失败</returns> public virtual int AddMCompany(Model.OpenStructure.MCompanyInfo model) { if (model == null) { return(0); } DbCommand dc = this._db.GetSqlStringCommand(Sql_SystemOpenRelation_Insert); this._db.AddInParameter(dc, "SystemCompanyId", DbType.Int32, model.SystemCompanyId); this._db.AddInParameter(dc, "PlatformCompanyId", DbType.AnsiStringFixedLength, model.PlatformCompanyId); this._db.AddInParameter(dc, "SystemType", DbType.Byte, model.SystemType); this._db.AddInParameter(dc, "SystemCompanyType", DbType.Byte, model.SystemCompanyType); return(DbHelper.ExecuteSql(dc, this._db) > 0 ? 1 : 0); }