|
@@ -214,7 +214,6 @@ public class SceneAccidentService {
|
|
|
} else {
|
|
|
list = sceneAccidentMapper.querySceneAccidentListByQx(params);
|
|
|
}
|
|
|
-
|
|
|
} else if (DictConstants.ROLE_CODE_UESR.equals(roleCode)) {
|
|
|
//查询普通账户
|
|
|
params.setUserId(userId);
|
|
@@ -291,10 +290,10 @@ public class SceneAccidentService {
|
|
|
}*/
|
|
|
|
|
|
for (SceneAccidentPO po : list) {
|
|
|
- if (po.getConflictBehavior().indexOf("追尾") > -1) {
|
|
|
+ if (po.getConflictBehavior().contains("追尾")) {
|
|
|
po.setLabel("追尾");
|
|
|
}
|
|
|
- if (po.getTargetDriving().indexOf("切入") > -1) {
|
|
|
+ if (po.getTargetDriving().contains("切入")) {
|
|
|
if (ObjectUtil.isNull(po.getLabel())) {
|
|
|
po.setLabel("目标车切入");
|
|
|
} else {
|
|
@@ -302,7 +301,7 @@ public class SceneAccidentService {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- if (po.getTargetDriving().indexOf("沿弯道行驶") > -1) {
|
|
|
+ if (po.getTargetDriving().contains("沿弯道行驶")) {
|
|
|
if (ObjectUtil.isNull(po.getLabel())) {
|
|
|
po.setLabel("目标车沿弯道行驶");
|
|
|
} else {
|
|
@@ -310,7 +309,7 @@ public class SceneAccidentService {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- if (po.getConflictType().indexOf("机动车-机动车") > -1) {
|
|
|
+ if (po.getConflictType().contains("机动车-机动车")) {
|
|
|
if (ObjectUtil.isNull(po.getLabel())) {
|
|
|
po.setLabel("机动车-机动车冲突");
|
|
|
} else {
|
|
@@ -340,10 +339,10 @@ public class SceneAccidentService {
|
|
|
|
|
|
|
|
|
for (SceneAccidentPO po : list) {
|
|
|
- if (po.getConflictBehavior().indexOf("追尾") > -1) {
|
|
|
+ if (po.getConflictBehavior().contains("追尾")) {
|
|
|
po.setLabel("追尾");
|
|
|
}
|
|
|
- if (po.getTargetDriving().indexOf("切入") > -1) {
|
|
|
+ if (po.getTargetDriving().contains("切入")) {
|
|
|
if (ObjectUtil.isNull(po.getLabel())) {
|
|
|
po.setLabel("目标车切入");
|
|
|
} else {
|