修改代码生成bug

master
wei.zhang2 2018-04-04 15:51:13 +08:00
parent 6038409c2e
commit 01a5cbdedd
4 changed files with 15 additions and 9 deletions

View File

@ -11,24 +11,24 @@ public class Dict extends BaseEntity<Long> {
return type; return type;
} }
public String setType() { public void setType(String type) {
return type; this.type = type;
} }
public String getK() { public String getK() {
return k; return k;
} }
public String setK() { public void setK(String k) {
return k; this.k = k;
} }
public String getVal() { public String getVal() {
return val; return val;
} }
public String setVal() { public void setVal(String val) {
return val; this.val = val;
} }
} }

View File

@ -95,10 +95,10 @@ public class TemplateUtil {
.append("() {\n"); .append("() {\n");
buffer.append("\t\treturn ").append(name).append(";\n"); buffer.append("\t\treturn ").append(name).append(";\n");
buffer.append("\t}\n"); buffer.append("\t}\n");
buffer.append("\tpublic ").append(type).append(" set") buffer.append("\tpublic void set")
.append(StringUtils.substring(name, 0, 1).toUpperCase() + name.substring(1, name.length())) .append(StringUtils.substring(name, 0, 1).toUpperCase() + name.substring(1, name.length()))
.append("() {\n"); .append("(").append(type).append(" ").append(name).append(") {\n");
buffer.append("\t\treturn ").append(name).append(";\n"); buffer.append("\t\tthis.").append(name).append(" = ").append(name).append(";\n");
buffer.append("\t}\n"); buffer.append("\t}\n");
} }

View File

@ -71,6 +71,9 @@ function init(){
"searching": false, "searching": false,
"processing": false, "processing": false,
"serverSide" : true, "serverSide" : true,
"language": {
"url": "/js/plugin/datatables/Chinese.lang"
},
"ajax": { "ajax": {
"url" : "/{beanParamName}s", "url" : "/{beanParamName}s",
"type":"get", "type":"get",

View File

@ -77,6 +77,9 @@ function init(){
"searching": false, "searching": false,
"processing": false, "processing": false,
"serverSide" : true, "serverSide" : true,
"language": {
"url": "/js/plugin/datatables/Chinese.lang"
},
"ajax": { "ajax": {
"url" : "/dicts", "url" : "/dicts",
"type":"get", "type":"get",