|
@@ -115,7 +115,7 @@ public class BaseProcessServiceImpl extends ServiceImpl<BaseProcessMapper, BaseP
|
|
String currentFlowId = baseProcess.getCurrentFlowId();
|
|
String currentFlowId = baseProcess.getCurrentFlowId();
|
|
|
|
|
|
|
|
|
|
- String[] strings = currentFlowId.split(",");
|
|
|
|
|
|
+ String[] strings = baseProcess.getAllLocationId().split(",");
|
|
String ss2 = "";
|
|
String ss2 = "";
|
|
for (int i = 0; i < strings.length; i++) {
|
|
for (int i = 0; i < strings.length; i++) {
|
|
strings[i].replaceAll(strings[i], "4");
|
|
strings[i].replaceAll(strings[i], "4");
|
|
@@ -212,7 +212,18 @@ public class BaseProcessServiceImpl extends ServiceImpl<BaseProcessMapper, BaseP
|
|
}
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
public static void main(String[] args) {
|
|
- String s = "0,1,2,3,4,5,6";
|
|
|
|
- System.out.println(s.substring(s.length() - 1));
|
|
|
|
|
|
+ String s = "1,2,0";
|
|
|
|
+// System.out.println(s.substring(s.length() - 1));
|
|
|
|
+ String[] strings = s.split(",");
|
|
|
|
+ String ss2 = "";
|
|
|
|
+ for (int i = 0; i < strings.length; i++) {
|
|
|
|
+ strings[i].replaceAll(strings[i], "4");
|
|
|
|
+ if (i == strings.length - 1) {
|
|
|
|
+ ss2 = ss2 + strings[i].replaceAll(strings[i], "4");
|
|
|
|
+ } else {
|
|
|
|
+ ss2 = strings[i].replaceAll(strings[i], "4") + "," + ss2;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ System.out.println(ss2);
|
|
}
|
|
}
|
|
}
|
|
}
|