Commit fb71083d authored by duanruiming's avatar duanruiming

[add] 策略优化时长优化,空放添加跳相和延长

parent 354681b3
......@@ -442,7 +442,12 @@ public class StrategyControlServiceImpl implements StrategyControlService {
optCount += value.size();
for (StrategyCrossResultEntity entity : value) {
if (Objects.equals(1, type)) {
optTime += Math.abs(entity.getExtendTime());
Integer rtnType = entity.getRtnType();
if (rtnType < 0 && rtnType >= -150) {
optTime += Math.abs(entity.getExtendTime());
} else if (rtnType < -150 && rtnType >= -250){
optTime += 1;
}
}
if (Objects.equals(2, type)) {
if (Objects.nonNull(entity.getDuration())) {
......
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