修改代码生成bug
parent
6038409c2e
commit
01a5cbdedd
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue