From 11fc5c731f5af56a5e2ced4c3123e683f4d71205 Mon Sep 17 00:00:00 2001 From: yxh Date: Sat, 14 Aug 2021 17:45:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E7=BB=86?= =?UTF-8?q?=E8=8A=82=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/vm/go/dao.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/vm/go/dao.template b/template/vm/go/dao.template index 8ee9ac0..7230690 100644 --- a/template/vm/go/dao.template +++ b/template/vm/go/dao.template @@ -9,7 +9,7 @@ package dao {{$hasGTime:=false}} {{range $index, $column := .table.Columns}} -{{if eq $column.GoType "Time"}} +{{if and (eq $column.GoType "Time") (or (eq $column.IsInsert "1") (eq $column.IsEdit "1"))}} {{$hasGTime = true}} {{end}} {{end}}