增强字符串类,数值类POJO默认值设置调整
This commit is contained in:
@@ -8,8 +8,6 @@
|
||||
*/
|
||||
package com.nis.domain.configuration;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
/**
|
||||
* @ClassName: MailSubjectConfig.java
|
||||
* @Description: TODO
|
||||
@@ -18,7 +16,6 @@ import org.apache.commons.lang3.StringUtils;
|
||||
* @version V1.0
|
||||
*/
|
||||
public class MailSubjectCfg extends ComplexkeywordCfg {
|
||||
public static final String tableName="mail_subject_cfg";
|
||||
/**
|
||||
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
||||
*
|
||||
@@ -27,23 +24,16 @@ public class MailSubjectCfg extends ComplexkeywordCfg {
|
||||
|
||||
private static final long serialVersionUID = -547690498444330212L;
|
||||
/* (non-Javadoc)
|
||||
* @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict()
|
||||
* @see com.nis.domain.configuration.ComplexkeywordCfg#initDefaultValue()
|
||||
*/
|
||||
@Override
|
||||
public String getDistrict() {
|
||||
if(StringUtils.isBlank(this.district))
|
||||
return "Subject";
|
||||
else
|
||||
return this.district;
|
||||
}
|
||||
/* (non-Javadoc)
|
||||
* @see com.nis.domain.restful.BaseStringConfig#getExprType()
|
||||
*/
|
||||
@Override
|
||||
public Integer getExprType() {
|
||||
if(this.exprType==null)
|
||||
return 3;
|
||||
else
|
||||
return this.exprType;
|
||||
public void initDefaultValue() {
|
||||
// TODO Auto-generated method stub
|
||||
super.initDefaultValue();
|
||||
this.district="Subject";
|
||||
this.exprType=0;
|
||||
this.matchMethod=3;
|
||||
this.isHexbin=0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user