|
@@ -114,6 +114,15 @@ func GetLongzhonginfoCount(classifyId int, unitid int64) (count int, err error)
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+//判断指标数据是否已经录入
|
|
|
+func GetLongzhonginfoBySecNameCount(secName string) (count int, err error) {
|
|
|
+ o := orm.NewOrm()
|
|
|
+ o.Using("edb")
|
|
|
+ sql := `SELECT COUNT(1) AS count FROM longzhonginfo WHERE sec_name=? `
|
|
|
+ err = o.Raw(sql, secName).QueryRow(&count)
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
type LzProductInfoResp struct {
|
|
|
Msg string `json:"msg"`
|
|
|
Code string `json:"code"`
|