1234567891011121314151617181920212223 |
- package chart_variety
- import (
- "hongze/hongze_yb/global"
- )
- func GetVarietyListByIdList(idList []int) (items []*ChartVariety, err error) {
- num := len(idList)
- if num <= 0 {
- return
- }
- sql := ` SELECT * FROM chart_variety WHERE 1 = 1 AND chart_variety_id in (?)`
- err = global.MYSQL["data"].Raw(sql, idList).Find(&items).Error
- return
- }
|