Commit d8e358cf by 林永健

fix bug

1 parent 3fd0142c
......@@ -22,7 +22,6 @@ import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
import java.text.MessageFormat;
import java.util.*;
import java.util.stream.Collectors;
......@@ -248,10 +247,10 @@ public class SopDataService {
return "";
}
String[] vals = operator.getValue().split("\\+");
if (vals.length == 0) {
return "";
if (vals.length > 1) {
return condStr.replace("[pageType]", vals[0]).replace("[activityId]", vals[1]);
}
return MessageFormat.format(condStr.replaceAll("'", "''"), vals);
return "";
}
List<String> operatorStrList = new ArrayList<>();
for (SopDataOperatorDTO operator : condition.getOperators()) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!