修改代码生成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;
}
public String setType() {
return type;
public void setType(String type) {
this.type = type;
}
public String getK() {
return k;
}
public String setK() {
return k;
public void setK(String k) {
this.k = k;
}
public String getVal() {
return val;
}
public String setVal() {
return val;
public void setVal(String val) {
this.val = val;
}
}

View File

@ -95,10 +95,10 @@ public class TemplateUtil {
.append("() {\n");
buffer.append("\t\treturn ").append(name).append(";\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("() {\n");
buffer.append("\t\treturn ").append(name).append(";\n");
.append("(").append(type).append(" ").append(name).append(") {\n");
buffer.append("\t\tthis.").append(name).append(" = ").append(name).append(";\n");
buffer.append("\t}\n");
}

View File

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

View File

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