|
@@ -37,10 +37,10 @@ func AddReferencedExcelConfig(items []*ReferencedExcelConfig) (err error) {
|
|
|
}
|
|
|
|
|
|
// getByCode
|
|
|
-func GetReferencedExcelConfig(referencedId, fromScene int, uuid string) (item ReferencedExcelConfig, err error) {
|
|
|
+func GetReferencedExcelConfig(referencedId, fromScene int, uniqueCode, uuid string) (item ReferencedExcelConfig, err error) {
|
|
|
o := orm.NewOrmUsingDB("data")
|
|
|
- sql := ` SELECT * FROM referenced_excel_config WHERE referenced_id = ? AND from_scene = ? AND uuid = ? `
|
|
|
- err = o.Raw(sql, referencedId, fromScene, uuid).QueryRow(&item)
|
|
|
+ sql := ` SELECT * FROM referenced_excel_config WHERE referenced_id = ? AND from_scene = ? AND uuid = ? AND unique_code = ? `
|
|
|
+ err = o.Raw(sql, referencedId, fromScene, uniqueCode, uuid).QueryRow(&item)
|
|
|
return
|
|
|
}
|
|
|
|