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}}