|
@@ -57,7 +57,7 @@ public class MsgWebPushServiceImpl extends ServiceImpl<MsgWebPushMapper, MsgWebP
|
|
|
if (!StringUtils.isEmpty(webAlarm) && webAlarm.size() > 0) {
|
|
|
for (MsgAlarm msgAlarm : webAlarm) {
|
|
|
LambdaQueryWrapper<BaseRailwayManagement> wrapper = new LambdaQueryWrapper<>();
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarm.getRailwayCode())) {
|
|
|
+ if (!StringUtils.isEmptySunhh(msgAlarm.getRailwayCode())) {
|
|
|
wrapper.eq(BaseRailwayManagement::getRailwayCode, msgAlarm.getRailwayCode());
|
|
|
}
|
|
|
BaseRailwayManagement baseRailwayManagement = baseRailwayManagementService.getOne(wrapper);
|
|
@@ -69,6 +69,9 @@ public class MsgWebPushServiceImpl extends ServiceImpl<MsgWebPushMapper, MsgWebP
|
|
|
if (!StringUtils.isEmptySunhh(msgAlarm.getRailwayCode())) {
|
|
|
lw.eq(BaseCameraManagement::getRailwayCode, msgAlarm.getRailwayCode());
|
|
|
}
|
|
|
+ if (!StringUtils.isEmptySunhh(msgAlarm.getLineDir())) {
|
|
|
+ lw.eq(BaseCameraManagement::getLineDir, msgAlarm.getLineDir());
|
|
|
+ }
|
|
|
if (!StringUtils.isEmptySunhh(msgAlarm.getAlarmMile())) {
|
|
|
lw.le(BaseCameraManagement::getBeginMile, msgAlarm.getAlarmMile());
|
|
|
lw.gt(BaseCameraManagement::getEndMile, msgAlarm.getAlarmMile());
|
|
@@ -129,6 +132,9 @@ public class MsgWebPushServiceImpl extends ServiceImpl<MsgWebPushMapper, MsgWebP
|
|
|
if (!StringUtils.isEmptySunhh(o.getRailwayCode())) {
|
|
|
lw.eq(BaseCameraManagement::getRailwayCode, o.getRailwayCode());
|
|
|
}
|
|
|
+ if (!StringUtils.isEmptySunhh(o.getLineDir())) {
|
|
|
+ lw.eq(BaseCameraManagement::getLineDir, o.getLineDir());
|
|
|
+ }
|
|
|
if (!StringUtils.isEmptySunhh(o.getAlarmMile())) {
|
|
|
lw.le(BaseCameraManagement::getBeginMile, o.getAlarmMile());
|
|
|
lw.gt(BaseCameraManagement::getEndMile, o.getAlarmMile());
|