|
@@ -167,10 +167,11 @@ public class MsgAlarmController extends BaseController {
|
|
|
o.setRailwayName(baseRailwayManagement.getRailwayName());
|
|
|
}
|
|
|
if (!StringUtils.isEmptySunhh(o.getReleasedBy())) {
|
|
|
- BaseUser user = baseUserService.getUser(o.getReleasedBy());
|
|
|
- if (!StringUtils.isEmptySunhh(user) && !StringUtils.isEmptySunhh(user.getNickName())) {
|
|
|
- o.setReleasedByName(user.getNickName());
|
|
|
- }
|
|
|
+// BaseUser user = baseUserService.getUser(o.getReleasedBy());
|
|
|
+// if (!StringUtils.isEmptySunhh(user) && !StringUtils.isEmptySunhh(user.getNickName())) {
|
|
|
+// o.setReleasedByName(user.getNickName());
|
|
|
+// }
|
|
|
+ o.setReleasedByName(o.getReleasedBy());
|
|
|
}
|
|
|
String mils = AppendUtils.stringAppend(o.getAlarmMile());
|
|
|
o.setAlarmMiles(mils);
|
|
@@ -223,10 +224,11 @@ public class MsgAlarmController extends BaseController {
|
|
|
o.setRailwayName(baseRailwayManagement.getRailwayName());
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(o.getReleasedBy())) {
|
|
|
- BaseUser user = baseUserService.getUser(o.getReleasedBy());
|
|
|
- if (!StringUtils.isEmptySunhh(user) && !StringUtils.isEmptySunhh(user.getNickName())) {
|
|
|
- o.setReleasedByName(user.getNickName());
|
|
|
- }
|
|
|
+// BaseUser user = baseUserService.getUser(o.getReleasedBy());
|
|
|
+// if (!StringUtils.isEmptySunhh(user) && !StringUtils.isEmptySunhh(user.getNickName())) {
|
|
|
+// o.setReleasedByName(user.getNickName());
|
|
|
+// }
|
|
|
+ o.setReleasedByName(o.getReleasedBy());
|
|
|
}
|
|
|
String mils = AppendUtils.stringAppend(o.getAlarmMile());
|
|
|
o.setAlarmMiles(mils);
|
|
@@ -258,10 +260,11 @@ public class MsgAlarmController extends BaseController {
|
|
|
MsgAlarmResp msgAlarmResp = new MsgAlarmResp();
|
|
|
BeanUtils.copyProperties(msgAlarm, msgAlarmResp);
|
|
|
if (!StringUtils.isEmptySunhh(msgAlarm.getReleasedBy())) {
|
|
|
- BaseUser user = baseUserService.getUser(msgAlarm.getReleasedBy());
|
|
|
- if (!StringUtils.isEmptySunhh(user) && !StringUtils.isEmptySunhh(user.getNickName())) {
|
|
|
- msgAlarmResp.setReleasedByName(user.getNickName());
|
|
|
- }
|
|
|
+// BaseUser user = baseUserService.getUser(msgAlarm.getReleasedBy());
|
|
|
+// if (!StringUtils.isEmptySunhh(user) && !StringUtils.isEmptySunhh(user.getNickName())) {
|
|
|
+// msgAlarmResp.setReleasedByName(user.getNickName());
|
|
|
+// }
|
|
|
+ msgAlarmResp.setReleasedByName(msgAlarm.getReleasedBy());
|
|
|
}
|
|
|
if (!StringUtils.isEmptySunhh(baseRailwayManagement) && !StringUtils.isEmptySunhh(baseRailwayManagement.getRailwayName())) {
|
|
|
msgAlarmResp.setRailwayName(baseRailwayManagement.getRailwayName());
|