wcc 7 сар өмнө
parent
commit
6004ef13c3

+ 3 - 3
qyxy_std_new/main.go

@@ -325,9 +325,9 @@ func dealCompanyBase(data map[string]interface{}) {
 			}
 			capital := ObjToMoney(text)
 			capital = capital / 10000
-			if capital != 0 {
-				save[v] = capital
-			}
+			//if capital != 0 {
+			save[v] = capital
+			//}
 		} else if v == "use_flag" {
 			save[v] = util.IntAll(data[v])
 		} else {

+ 12 - 0
qyxy_std_new/std_test.go

@@ -1 +1,13 @@
 package main
+
+import (
+	"fmt"
+	"testing"
+)
+
+func TestObjToMoney(t *testing.T) {
+	text := ""
+	capital := ObjToMoney(text)
+	capital = capital / 10000
+	fmt.Println(capital)
+}