@@ -10,12 +10,12 @@ import (
|
||||
|
||||
func genUpdate(table Table, withCache bool) (string, string, error) {
|
||||
expressionValues := make([]string, 0)
|
||||
for _, filed := range table.Fields {
|
||||
camel := filed.Name.ToCamel()
|
||||
for _, field := range table.Fields {
|
||||
camel := field.Name.ToCamel()
|
||||
if camel == "CreateTime" || camel == "UpdateTime" {
|
||||
continue
|
||||
}
|
||||
if filed.IsPrimaryKey {
|
||||
if field.IsPrimaryKey {
|
||||
continue
|
||||
}
|
||||
expressionValues = append(expressionValues, "data."+camel)
|
||||
|
||||
Reference in New Issue
Block a user