fusenapi/model/gmodel/fs_order_detail_template_logic.go
laodaming 47bf9580da fix
2023-06-16 15:11:37 +08:00

17 lines
354 B
Go
Executable File

package gmodel
import (
"context"
)
func (dt *FsOrderDetailTemplateModel) GetListByIds(ctx context.Context, ids []int64) (resp []FsOrderDetailTemplate, err error) {
if len(ids) == 0 {
return
}
err = dt.db.WithContext(ctx).Model(&FsOrderDetailTemplate{}).Where("`id` in (?)", ids).Find(&resp).Error
if err != nil {
return nil, err
}
return
}