fix npe
This commit is contained in:
parent
ee1ff53593
commit
9120cd2c68
@ -381,6 +381,12 @@ func (c *common) ToString() string {
|
|||||||
//
|
//
|
||||||
// Date : 16:25 2024/3/8
|
// Date : 16:25 2024/3/8
|
||||||
func (c *common) Filter(ignoreFieldList []string, rewriteFieldTable map[string]string) map[string]interface{} {
|
func (c *common) Filter(ignoreFieldList []string, rewriteFieldTable map[string]string) map[string]interface{} {
|
||||||
|
if nil == ignoreFieldList {
|
||||||
|
ignoreFieldList = make([]string, 0)
|
||||||
|
}
|
||||||
|
if nil == rewriteFieldTable {
|
||||||
|
rewriteFieldTable = make(map[string]string)
|
||||||
|
}
|
||||||
result := make(map[string]interface{})
|
result := make(map[string]interface{})
|
||||||
ignoreFieldTable := make(map[string]bool)
|
ignoreFieldTable := make(map[string]bool)
|
||||||
for _, item := range ignoreFieldList {
|
for _, item := range ignoreFieldList {
|
||||||
|
Loading…
Reference in New Issue
Block a user