|
@@ -156,6 +156,10 @@ MAX(b."edb_info_type") "edb_info_type",
|
|
MAX(b."edb_type") "edb_type",
|
|
MAX(b."edb_type") "edb_type",
|
|
MAX(b."source") "source",
|
|
MAX(b."source") "source",
|
|
MAX(b."source_name") "source_name",
|
|
MAX(b."source_name") "source_name",
|
|
|
|
+MAX(b."latest_date") "latest_date",
|
|
|
|
+MAX(b."latest_value") "latest_value",
|
|
|
|
+MAX(b."sys_user_id") "sys_user_id",
|
|
|
|
+MAX(b."sys_user_real_name") "sys_user_real_name",
|
|
MAX(b."frequency") "frequency",
|
|
MAX(b."frequency") "frequency",
|
|
MAX(b."unit") "unit",
|
|
MAX(b."unit") "unit",
|
|
MAX(b."classify_id") "classify_id",
|
|
MAX(b."classify_id") "classify_id",
|
|
@@ -196,6 +200,10 @@ MAX(b."edb_info_type") "edb_info_type",
|
|
MAX(b."edb_type") "edb_type",
|
|
MAX(b."edb_type") "edb_type",
|
|
MAX(b."source") "source",
|
|
MAX(b."source") "source",
|
|
MAX(b."source_name") "source_name",
|
|
MAX(b."source_name") "source_name",
|
|
|
|
+MAX(b."latest_date") "latest_date",
|
|
|
|
+MAX(b."latest_value") "latest_value",
|
|
|
|
+MAX(b."sys_user_id") "sys_user_id",
|
|
|
|
+MAX(b."sys_user_real_name") "sys_user_real_name",
|
|
MAX(b."frequency") "frequency",
|
|
MAX(b."frequency") "frequency",
|
|
MAX(b."unit") "unit",
|
|
MAX(b."unit") "unit",
|
|
MAX(b."classify_id") "classify_id",
|
|
MAX(b."classify_id") "classify_id",
|
|
@@ -223,5 +231,13 @@ MAX(b."sort") AS "sort"
|
|
sql := baseSql + ` ORDER BY share_time DESC LIMIT ?,? `
|
|
sql := baseSql + ` ORDER BY share_time DESC LIMIT ?,? `
|
|
pars = append(pars, startSize, pageSize)
|
|
pars = append(pars, startSize, pageSize)
|
|
err = global.DmSQL["data"].Raw(sql, pars...).Scan(&list).Error
|
|
err = global.DmSQL["data"].Raw(sql, pars...).Scan(&list).Error
|
|
|
|
+
|
|
|
|
+ if err != nil {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ for _, v := range list {
|
|
|
|
+ v.ConvertToResp()
|
|
|
|
+ }
|
|
|
|
+
|
|
return
|
|
return
|
|
}
|
|
}
|