You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
904 B
32 lines
904 B
2 years ago
|
<#if po.fieldDbType=='Blob'>
|
||
|
private transient java.lang.String ${po.fieldName}String;
|
||
|
|
||
|
private byte[] ${po.fieldName};
|
||
|
|
||
|
public byte[] get${po.fieldName?cap_first}(){
|
||
|
if(${po.fieldName}String==null){
|
||
|
return null;
|
||
|
}
|
||
|
try {
|
||
|
return ${po.fieldName}String.getBytes("UTF-8");
|
||
|
} catch (UnsupportedEncodingException e) {
|
||
|
e.printStackTrace();
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
public String get${po.fieldName?cap_first}String(){
|
||
|
if(${po.fieldName}==null || ${po.fieldName}.length==0){
|
||
|
return "";
|
||
|
}
|
||
|
try {
|
||
|
return new String(${po.fieldName},"UTF-8");
|
||
|
} catch (UnsupportedEncodingException e) {
|
||
|
e.printStackTrace();
|
||
|
}
|
||
|
return "";
|
||
|
}
|
||
|
<#else>
|
||
|
@ApiModelProperty(value = "${po.filedComment}")
|
||
|
private ${po.fieldType} ${po.fieldName};
|
||
|
</#if>
|