Commit 033ea71d by 向延琳

Merge branch 'v1.6.0' of http://192.168.3.233:8090/eshiled-new/ne-shield-standar…

…d-interfaces into v1.6.0
2 parents b603f805 70c60aaf
......@@ -160,7 +160,11 @@ public class AlarmElectricFenceService {
log.info("准备发送短信");
Vehicle vehicle = vehicleMapper.getVehicleByVdId(alarmElectricFence.getVdId());
if (vehicle == null) {
log.warn("该设备没有关联的车辆");
log.warn(alarmElectricFence.getSn() + "该设备没有关联的车辆");
return;
}
if (StringUtils.isEmpty(electricFence.getTelNumbers())) {
log.warn(alarmElectricFence.getSn() + "该报警没有输入报警手机号");
return;
}
Map<String, Object> args = Maps.newLinkedHashMap();
......@@ -183,6 +187,6 @@ public class AlarmElectricFenceService {
* @return 替换后的字符串
*/
private String replaceStr(String str) {
return StringUtils.isEmpty(str) ? "" : str;
return StringUtils.isEmpty(str) ? "--" : str;
}
}
......@@ -492,7 +492,7 @@ public class WorkOrderService {
content.append("安装联系电话:").append(order.getServiceLinkerPhone()).append(";\n");
}
if (StringUtils.isEmpty(order.getServiceLinker())) {
if (StringUtils.isEmpty(woVehicle.getLesseeName())) {
content.append("姓名:").append("--").append(";\n");
} else {
content.append("姓名:").append(woVehicle.getLesseeName()).append(";\n");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!