From 006fcb716c2b9ca251e383ebc03f0c651d7c8426 Mon Sep 17 00:00:00 2001 From: Nut He <18328704+hetao92@users.noreply.github.com> Date: Fri, 26 Mar 2021 14:41:45 +0800 Subject: [PATCH] fix: fix time type --- service/dao/dao.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/dao/dao.go b/service/dao/dao.go index a05767b..7176e6d 100644 --- a/service/dao/dao.go +++ b/service/dao/dao.go @@ -70,11 +70,11 @@ func getBasicValue(valWarp *nebula.ValueWrapper) (common.Any, error) { } else if valType == "string" { return valWarp.AsString() } else if valType == "date" { - return valWarp.AsDate() + return valWarp.String(), nil } else if valType == "time" { - return valWarp.AsTime() + return valWarp.String(), nil } else if valType == "datetime" { - return valWarp.AsDateTime() + return valWarp.String(), nil } else if valType == "empty" { return "_EMPTY_", nil }