This commit is contained in:
richboo111
2022-07-26 14:57:31 +08:00
parent c7ce59312c
commit e493f6d2f1
3 changed files with 9 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ package dao
import (
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"reflect"
"strings"
"time"
@@ -60,11 +61,14 @@ func WrapAddIDCULEntity(item interface{}, lastOperator string) interface{} {
}
func WrapAddIDCULDEntity(item interface{}, lastOperator string) interface{} {
globals.SugarLogger.Debugf("sajhbgduqhguqho ho")
if mapData, ok := item.(map[string]interface{}); ok {
mapData[model.FieldDeletedAt] = utils.DefaultTimeValue
globals.SugarLogger.Debugf("bdtrshgesghrdg")
} else {
value := refutil.CheckAndGetStructValue(item)
value.FieldByName(model.FieldDeletedAt).Set(reflect.ValueOf(utils.DefaultTimeValue))
globals.SugarLogger.Debugf("nhglmknhtkl;jmglk;ghm;lkghm")
}
return WrapAddIDCULEntity(item, lastOperator)
}