- filter null data in FilterMapByStructObject.
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/baseapi/utils/routinepool"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
)
|
||||
|
||||
@@ -309,7 +310,7 @@ func FilterMapByStructObject(mapData map[string]interface{}, obj interface{}, ex
|
||||
valid = make(map[string]interface{})
|
||||
invalid = make(map[string]interface{})
|
||||
for k, v := range mapData {
|
||||
if m[k] != nil && excludedMap[k] == 0 {
|
||||
if m[k] != nil && excludedMap[k] == 0 && v != nil {
|
||||
valid[k] = v
|
||||
} else {
|
||||
invalid[k] = v
|
||||
|
||||
Reference in New Issue
Block a user