代码生成主子表优化
parent
78abc63c06
commit
2cd634a8de
|
@ -334,8 +334,9 @@
|
||||||
var name = $.common.sprintf("${subclassName}List[%s].${javaField}", index);
|
var name = $.common.sprintf("${subclassName}List[%s].${javaField}", index);
|
||||||
return $.common.dictToSelect(${javaField}Datas, value, name);
|
return $.common.dictToSelect(${javaField}Datas, value, name);
|
||||||
}
|
}
|
||||||
#if($foreach.count != $subTable.columns.size())},#end
|
#if($foreach.count != $subTable.columns.size())
|
||||||
|
},
|
||||||
|
#end
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
field: '${javaField}',
|
field: '${javaField}',
|
||||||
|
@ -345,8 +346,9 @@
|
||||||
var html = $.common.sprintf("<input class='form-control' type='text' name='${subclassName}List[%s].${javaField}' value='%s'>", index, value);
|
var html = $.common.sprintf("<input class='form-control' type='text' name='${subclassName}List[%s].${javaField}' value='%s'>", index, value);
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
#if($foreach.count != $subTable.columns.size())},#end
|
#if($foreach.count != $subTable.columns.size())
|
||||||
|
},
|
||||||
|
#end
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -345,8 +345,9 @@
|
||||||
var name = $.common.sprintf("${subclassName}List[%s].${javaField}", index);
|
var name = $.common.sprintf("${subclassName}List[%s].${javaField}", index);
|
||||||
return $.common.dictToSelect(${javaField}Datas, value, name);
|
return $.common.dictToSelect(${javaField}Datas, value, name);
|
||||||
}
|
}
|
||||||
#if($foreach.count != $subTable.columns.size())},#end
|
#if($foreach.count != $subTable.columns.size())
|
||||||
|
},
|
||||||
|
#end
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
field: '${javaField}',
|
field: '${javaField}',
|
||||||
|
@ -356,8 +357,9 @@
|
||||||
var html = $.common.sprintf("<input class='form-control' type='text' name='${subclassName}List[%s].${javaField}' value='%s'>", index, value);
|
var html = $.common.sprintf("<input class='form-control' type='text' name='${subclassName}List[%s].${javaField}' value='%s'>", index, value);
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
#if($foreach.count != $subTable.columns.size())},#end
|
#if($foreach.count != $subTable.columns.size())
|
||||||
|
},
|
||||||
|
#end
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in New Issue