增加paybybalance路由

This commit is contained in:
richboo111
2022-07-26 15:44:04 +08:00
parent 50fde3330d
commit d103197d43
4 changed files with 9 additions and 21 deletions

View File

@@ -2,7 +2,6 @@ package dao
import (
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"reflect"
"strings"
"time"
@@ -61,14 +60,11 @@ 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)
}