Commit 727d3f9b by liuzz

转换规则特殊情况

parent 21546471
...@@ -11,6 +11,11 @@ public class RegConvert implements ValueConvert { ...@@ -11,6 +11,11 @@ public class RegConvert implements ValueConvert {
public String convert(RuleVO vo) { public String convert(RuleVO vo) {
if (StrUtil.isNotBlank(vo.getValue())){ if (StrUtil.isNotBlank(vo.getValue())){
String[] split = vo.getValue().split(vo.getContent()); String[] split = vo.getValue().split(vo.getContent());
if (split.length == 1){
if (StrUtil.equalsAnyIgnoreCase(split[0],"无","否","-")){
return "0";
}
}
return String.valueOf(split.length); return String.valueOf(split.length);
} }
return "0"; return "0";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment