Commit d8e358cf by 林永健

fix bug

1 parent 3fd0142c
...@@ -22,7 +22,6 @@ import org.springframework.stereotype.Service; ...@@ -22,7 +22,6 @@ import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import java.text.MessageFormat;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -248,10 +247,10 @@ public class SopDataService { ...@@ -248,10 +247,10 @@ public class SopDataService {
return ""; return "";
} }
String[] vals = operator.getValue().split("\\+"); String[] vals = operator.getValue().split("\\+");
if (vals.length == 0) { if (vals.length > 1) {
return ""; return condStr.replace("[pageType]", vals[0]).replace("[activityId]", vals[1]);
} }
return MessageFormat.format(condStr.replaceAll("'", "''"), vals); return "";
} }
List<String> operatorStrList = new ArrayList<>(); List<String> operatorStrList = new ArrayList<>();
for (SopDataOperatorDTO operator : condition.getOperators()) { 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!