123456789101112131415 |
- package predict_edb_conf
- import "hongze/hongze_yb/global"
- func GetPredictEdbConfById(edbInfoId int) (item *PredictEdbConf, err error) {
- err = global.MYSQL["data"].Where("predict_edb_info_id = ? ", edbInfoId).First(&item).Error
- return
- }
- func GetPredictEdbConfListById(edbInfoId int) (items []*PredictEdbConf, err error) {
- err = global.MYSQL["data"].Where("predict_edb_info_id = ? ", edbInfoId).Order("config_id asc").Find(&items).Error
- return
- }
|