平台物料分类
This commit is contained in:
15
business/model/dao/dao_matter.go
Normal file
15
business/model/dao/dao_matter.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
)
|
||||
|
||||
func GetVendorMatterCategory(db *DaoDB, vendorID int) (vendorMatterCat []*model.VendorMatterCategory, err error) {
|
||||
sql := `
|
||||
SELECT * FROM vendor_matter_catgory WHERE deleted_at = ? AND vendor_id = ?
|
||||
`
|
||||
sqlParams := []interface{}{utils.DefaultTimeValue, vendorID}
|
||||
err = GetRows(db, &vendorMatterCat, sql, sqlParams)
|
||||
return vendorMatterCat, err
|
||||
}
|
||||
Reference in New Issue
Block a user