Skip to content

Commit

Permalink
修复entity.kt.ej模板生成错误.
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Jan 7, 2025
1 parent 30e509c commit 6526f0d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class #(entity) {

### ---------- BEGIN 字段循环遍历 ----------
#for(field : table.fields)
#if(field.keyFlag)
#if(field.isKeyFlag())
#set(keyPropertyName = field.propertyName)
#end
#if(field.comment != null)
Expand Down Expand Up @@ -100,7 +100,7 @@ class #(entity) {
#end
#if(activeRecord)
override fun pkVal(): Serializable? {
#if(#(keyPropertyName))
#if(keyPropertyName)
return #(keyPropertyName)
#else
return null
Expand All @@ -111,7 +111,7 @@ class #(entity) {
override fun toString(): String {
return "#(entity){" +
#for(field : table.fields)
#if($!{foreach.index}==0)
#if(for.index == 0)
"#(field.propertyName)=" + #(field.propertyName) +
#else
", #(field.propertyName)=" + #(field.propertyName) +
Expand Down

0 comments on commit 6526f0d

Please sign in to comment.