mirror of
https://gitee.com/johng/gf
synced 2026-07-06 13:42:46 +08:00
add zero time filtering for package gdb
This commit is contained in:
@ -63,10 +63,18 @@ func (m *Model) doFilterDataMapForInsertOrUpdate(data Map, allowOmitEmpty bool)
|
|||||||
if r.IsZero() {
|
if r.IsZero() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
case *time.Time:
|
||||||
|
if r.IsZero() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
case gtime.Time:
|
case gtime.Time:
|
||||||
if r.IsZero() {
|
if r.IsZero() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
case *gtime.Time:
|
||||||
|
if r.IsZero() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
tempMap[k] = v
|
tempMap[k] = v
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user