|
@@ -1950,7 +1950,7 @@ func GetChartInfoByUniqueCode(uniqueCode string) (item *ChartInfo, err error) {
|
|
|
func GetChartInfoViewByUniqueCode(uniqueCode string) (item *ChartInfoView, err error) {
|
|
|
o := global.DmSQL["data"]
|
|
|
sql := ` SELECT * FROM chart_info WHERE unique_code=? `
|
|
|
- err = o.Raw(sql, uniqueCode).Scan(&item).Error
|
|
|
+ err = o.Raw(sql, uniqueCode).First(&item).Error
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|