|
@@ -134,13 +134,9 @@ func AddEdbDataFromGie(edbCode string) (err error) {
|
|
|
l := len(edbCode)
|
|
|
if strings.Contains(edbCode[l-2:], "GS") {
|
|
|
suffix = "GS"
|
|
|
- } else if strings.Contains(edbCode[l-1:], "C") {
|
|
|
- suffix = "C"
|
|
|
- } else if strings.Contains(edbCode[l-2:], "CF") {
|
|
|
+ }else if strings.Contains(edbCode[l-2:], "CF") {
|
|
|
suffix = "CF"
|
|
|
- } else if strings.Contains(edbCode[l-1:], "F") {
|
|
|
- suffix = "F"
|
|
|
- } else if strings.Contains(edbCode[l-1:], "T") {
|
|
|
+ } else if strings.Contains(edbCode[l-1:], "T") {
|
|
|
suffix = "T"
|
|
|
} else if strings.Contains(edbCode[l-2:], "In") {
|
|
|
suffix = "In"
|
|
@@ -152,6 +148,10 @@ func AddEdbDataFromGie(edbCode string) (err error) {
|
|
|
suffix = "IC"
|
|
|
} else if strings.Contains(edbCode[l-2:], "WC") {
|
|
|
suffix = "WC"
|
|
|
+ } else if strings.Contains(edbCode[l-1:], "F") {
|
|
|
+ suffix = "F"
|
|
|
+ } else if strings.Contains(edbCode[l-1:], "C") {
|
|
|
+ suffix = "C"
|
|
|
} else {
|
|
|
suffix = ""
|
|
|
}
|
|
@@ -245,13 +245,9 @@ func RefreshEdbDataFromGie(edbInfoId int, edbCode, startDate string) (err error)
|
|
|
l := len(edbCode)
|
|
|
if strings.Contains(edbCode[l-2:], "GS") {
|
|
|
suffix = "GS"
|
|
|
- } else if strings.Contains(edbCode[l-1:], "C") {
|
|
|
- suffix = "C"
|
|
|
- } else if strings.Contains(edbCode[l-2:], "CF") {
|
|
|
+ }else if strings.Contains(edbCode[l-2:], "CF") {
|
|
|
suffix = "CF"
|
|
|
- } else if strings.Contains(edbCode[l-1:], "F") {
|
|
|
- suffix = "F"
|
|
|
- } else if strings.Contains(edbCode[l-1:], "T") {
|
|
|
+ } else if strings.Contains(edbCode[l-1:], "T") {
|
|
|
suffix = "T"
|
|
|
} else if strings.Contains(edbCode[l-2:], "In") {
|
|
|
suffix = "In"
|
|
@@ -263,6 +259,10 @@ func RefreshEdbDataFromGie(edbInfoId int, edbCode, startDate string) (err error)
|
|
|
suffix = "IC"
|
|
|
} else if strings.Contains(edbCode[l-2:], "WC") {
|
|
|
suffix = "WC"
|
|
|
+ } else if strings.Contains(edbCode[l-1:], "F") {
|
|
|
+ suffix = "F"
|
|
|
+ } else if strings.Contains(edbCode[l-1:], "C") {
|
|
|
+ suffix = "C"
|
|
|
} else {
|
|
|
suffix = ""
|
|
|
}
|