|
@@ -8,6 +8,7 @@ import org.springblade.manager.formula.impl.TableElementConverter;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
+import java.util.concurrent.ThreadLocalRandom;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
import static com.mixsmart.utils.CustomFunction.rangeList;
|
|
import static com.mixsmart.utils.CustomFunction.rangeList;
|
|
@@ -90,7 +91,8 @@ public interface ITurnPointCalculator {
|
|
TurnPoint close = new TurnPoint(levelInfo, new HashMap<>());
|
|
TurnPoint close = new TurnPoint(levelInfo, new HashMap<>());
|
|
close.setName(levelInfo.getBmdName());
|
|
close.setName(levelInfo.getBmdName());
|
|
close.setSj(levelInfo.getBmdSj());
|
|
close.setSj(levelInfo.getBmdSj());
|
|
- double ldx = Double.parseDouble(rangeList(1, 0, levelInfo.getDx(), 0.001, 3, 1).get(0).toString());
|
|
|
|
|
|
+ /*闭合点的偏差范围是±3mm*/
|
|
|
|
+ double ldx=Arrays.asList(-3,-2,-1,1,2,3).get(ThreadLocalRandom.current().nextInt(6));
|
|
close.setSc(close.getSj0L() + ldx);
|
|
close.setSc(close.getSj0L() + ldx);
|
|
close.setDx(ldx);
|
|
close.setDx(ldx);
|
|
close.setType(TurnPoint.CLOSE);
|
|
close.setType(TurnPoint.CLOSE);
|
|
@@ -114,6 +116,8 @@ public interface ITurnPointCalculator {
|
|
return Collections.emptyList();
|
|
return Collections.emptyList();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
static List<TurnPoint> fill(List<TurnPoint> turnPointList) {
|
|
static List<TurnPoint> fill(List<TurnPoint> turnPointList) {
|
|
if (ListUtils.isNotEmpty(turnPointList)) {
|
|
if (ListUtils.isNotEmpty(turnPointList)) {
|
|
Random rd = new Random();
|
|
Random rd = new Random();
|