Browse Source

Merge branch 'edb_data/fix_calculate'

Roc 3 years ago
parent
commit
343927a5bd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      models/data_manage/edb_data_gl.go

+ 2 - 2
models/data_manage/edb_data_gl.go

@@ -2,8 +2,8 @@ package data_manage
 
 import (
 	"fmt"
-	"hongze/hongze_task/utils"
 	"github.com/rdlucklib/rdluck_tools/orm"
+	"hongze/hongze_task/utils"
 	"strconv"
 	"strings"
 	"time"
@@ -22,7 +22,7 @@ type GlData struct {
 }
 
 func GetGlDataByTradeCode(condition string, pars []interface{}) (item []*GlData, err error) {
-	sql := ` SELECT * FROM mb_index_main_data WHERE 1=1 `
+	sql := ` SELECT * FROM mb_index_main_data WHERE 1=1 AND DATA_VALUE is not null `
 	o := orm.NewOrm()
 	o.Using("gl")
 	if condition != "" {