CCN.Modules.Car.DataAccess.CarDataAccess.GetSupplierInfoById C# (CSharp) Method

GetSupplierInfoById() public method

根据id获取供应商的信息
public GetSupplierInfoById ( string innerid ) : CarSupplierModel
innerid string
return CCN.Modules.Car.BusinessEntity.CarSupplierModel
        public CarSupplierModel GetSupplierInfoById(string innerid)
        {
            const string sql = @"select innerid, suppliername, address, introduction, contacts, contactsphone, remark, extend, isenabled, createrid, createdtime, modifierid, modifiedtime from car_supplier where innerid=@innerid;";
            var list = Helper.Query<CarSupplierModel>(sql,new {innerid}).FirstOrDefault();
            return list;
        }
CarDataAccess