|
@@ -34,6 +34,6 @@ func GetCalculateStlConfigMappingIdByEdbInfoId(edbInfoId int) (configId int, err
|
|
|
// GetCalculateStlConfigMappingByConfigId 根据配置文件id获取配置文件映射信息
|
|
|
func GetCalculateStlConfigMappingByConfigId(configId int) (items []*CalculateStlConfigMapping, err error) {
|
|
|
sql := `SELECT * FROM calculate_stl_config_mapping WHERE calculate_stl_config_id=?`
|
|
|
- err = global.DbMap[utils.DbNameIndex].Raw(sql).Find(&items).Error
|
|
|
+ err = global.DbMap[utils.DbNameIndex].Raw(sql, configId).Find(&items).Error
|
|
|
return
|
|
|
}
|