fix: retern kpiC report data:[]
This commit is contained in:
@@ -34,7 +34,7 @@ func (k *KpiCReport) Get(c *gin.Context) {
|
||||
|
||||
if querys.NeID != "" {
|
||||
conditions = append(conditions, "rm_uid = (select n.rm_uid from ne_info n where n.ne_type=? and n.ne_id=? and n.status=1)")
|
||||
params = append(params, querys.NeType, querys.NeID)
|
||||
params = append(params, strings.ToUpper(querys.NeType), querys.NeID)
|
||||
} else {
|
||||
c.JSON(http.StatusBadRequest, services.ErrResp("Not found required parameter NE ID"))
|
||||
return
|
||||
@@ -79,7 +79,6 @@ func (k *KpiCReport) Get(c *gin.Context) {
|
||||
|
||||
func (k *KpiCReport) GetReport2FE(c *gin.Context) {
|
||||
var results []KpiCReport
|
||||
|
||||
var conditions []string
|
||||
var params []any
|
||||
|
||||
@@ -142,7 +141,7 @@ func (k *KpiCReport) GetReport2FE(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
var reports []map[string]any
|
||||
reports := []map[string]any{}
|
||||
for _, r := range results {
|
||||
report := map[string]any{
|
||||
// kip_id ...
|
||||
|
||||
Reference in New Issue
Block a user