You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
997 B
28 lines
997 B
package enterprise
|
|
|
|
import "recook/internal/v2/lib/db"
|
|
|
|
type CompanyCreditCodeModel struct {
|
|
db.BaseModel
|
|
ID uint `gorm:"column:id;primary_key" json:"id"`
|
|
CompanyID uint `gorm:"column:company_id" json:"companyId"`
|
|
Name string `gorm:"column:name" json:"name"`
|
|
CreditCode string `gorm:"column:creditcode" json:"creditcode"`
|
|
EconKind string `gorm:"column:econkind" json:"econkind"`
|
|
Status string `gorm:"column:status" json:"status"`
|
|
Address string `gorm:"column:address" json:"address"`
|
|
Tel string `gorm:"column:tel" json:"tel"`
|
|
Bank string `gorm:"column:bank" json:"bank"`
|
|
BankAccount string `gorm:"column:bankaccount" json:"bankaccount"`
|
|
OrderID string `gorm:"column:orderid" json:"orderid"`
|
|
}
|
|
|
|
func (*CompanyCreditCodeModel) TableName() string {
|
|
return "gys_company_creditcode"
|
|
}
|
|
|
|
func (m *CompanyCreditCodeModel) FindByCompanyID(by uint) (result CompanyCreditCodeModel) {
|
|
m.GetDb().Table(m.TableName()).First(&result)
|
|
return
|
|
}
|