コード例 #1
0
        /// <summary>
        /// 添加各平台用户对应关系
        /// </summary>
        /// <param name="model">各平台用户对应关系实体</param>
        /// <returns>返回1成功,其他失败</returns>
        public int AddMUser(Model.OpenStructure.MUserInfo model)
        {
            if (model == null)
            {
                return(0);
            }

            return(dal.AddMUser(model));
        }
コード例 #2
0
        /// <summary>
        /// 添加各平台用户对应关系
        /// </summary>
        /// <param name="model">各平台用户对应关系实体</param>
        /// <returns>返回1成功,其他失败</returns>
        public virtual int AddMUser(Model.OpenStructure.MUserInfo model)
        {
            if (model == null)
            {
                return(0);
            }

            DbCommand dc = this._db.GetSqlStringCommand(Sql_UserOpenRelation_Insert);

            this._db.AddInParameter(dc, "SystemUserId", DbType.Int32, model.SystemUserId);
            this._db.AddInParameter(dc, "PlatformUserId", DbType.AnsiStringFixedLength, model.PlatformUserId);
            this._db.AddInParameter(dc, "SystemType", DbType.Byte, model.SystemType);
            this._db.AddInParameter(dc, "PlatformCompanyId", DbType.AnsiStringFixedLength, model.PlatformCompanyId);

            return(DbHelper.ExecuteSql(dc, this._db) > 0 ? 1 : 0);
        }