This commit is contained in:
aozhiwei 2024-11-13 10:45:17 +08:00
parent d928411d30
commit 3f2b75f00e

View File

@ -18,6 +18,7 @@ func (this *chip) unInit() {
func (this *chip) List(accountId string) (error, []*model.Chip) { func (this *chip) List(accountId string) (error, []*model.Chip) {
chips := []*model.Chip{} chips := []*model.Chip{}
f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table("").Where("").Find(chips) f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table(new(model.Chip).TableName()).Where(
"account_id = ?", accountId).Find(chips)
return nil, []*model.Chip{} return nil, []*model.Chip{}
} }