From 997e0862fa5702bf13f6ea75a863ecbb2f4f9717 Mon Sep 17 00:00:00 2001 From: XM-GO <93296511+XM-GO@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=95=B0=E6=8D=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/visual/api/visual_data_set_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/visual/api/visual_data_set_table.go b/apps/visual/api/visual_data_set_table.go index 93515c0..7c7c24f 100644 --- a/apps/visual/api/visual_data_set_table.go +++ b/apps/visual/api/visual_data_set_table.go @@ -305,7 +305,7 @@ func getDataSetField(datas []map[string]interface{}) []entity.VisualDataSetField field.DeType = "2" field.GroupType = "q" case string: - if _, err := time.Parse("2006-01-02", v.(string)); err != nil { + if _, err := time.Parse("2006-01-02", v.(string)); err == nil { field.DeType = "1" field.GroupType = "d" } else {