- Store and StoreMap add DeletedAt.

This commit is contained in:
gazebo
2018-09-20 10:07:58 +08:00
parent f874c37d14
commit 9d88344ddb
14 changed files with 206 additions and 172 deletions

View File

@@ -16,17 +16,17 @@ func NormalFilterMapByStructObject(mapData map[string]interface{}, obj interface
func NormalMakeMapByStructObject(mapData map[string]interface{}, obj interface{}, userName string) (retVal map[string]interface{}) {
retVal, _ = NormalFilterMapByStructObject(mapData, obj)
if len(retVal) > 0 {
WrapUpdateULEntity(retVal, userName)
}
// if len(retVal) > 0 {
// WrapUpdateULEntity(retVal, userName)
// }
return retVal
}
func NormalMakeMapByFieldList(mapData map[string]interface{}, fields []string, userName string) (retVal map[string]interface{}) {
retVal, _ = jxutils.FilterMapByFieldList(mapData, fields)
if len(retVal) > 0 {
WrapUpdateULEntity(retVal, userName)
}
// if len(retVal) > 0 {
// WrapUpdateULEntity(retVal, userName)
// }
return retVal
}