Allow update created field if indicated on Cols

This commit is contained in:
Lunny Xiao 2020-01-20 14:33:49 +08:00
parent 14a0c19a0c
commit cf31727ab5
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ func (statement *Statement) buildUpdates(bean interface{},
if !includeVersion && col.IsVersion {
continue
}
if col.IsCreated {
if col.IsCreated && !columnMap.contain(col.Name) {
continue
}
if !includeUpdated && col.IsUpdated {