|
@@ -177,9 +177,11 @@ func GetFieldData(tmp map[string]interface{}, field string) string {
|
|
|
if strings.Contains(field, "procurementlist.") {
|
|
|
text := ""
|
|
|
field = strings.ReplaceAll(field, "procurementlist.", "")
|
|
|
- for _, pm := range tmp["procurementlist"].([]interface{}) {
|
|
|
- pm1 := pm.(map[string]interface{})
|
|
|
- text += common.ObjToString(pm1[field])
|
|
|
+ if tmp["procurementlist"] != nil {
|
|
|
+ for _, pm := range tmp["procurementlist"].([]interface{}) {
|
|
|
+ pm1 := pm.(map[string]interface{})
|
|
|
+ text += common.ObjToString(pm1[field])
|
|
|
+ }
|
|
|
}
|
|
|
return text
|
|
|
} else {
|