Commit 7b13d952 authored by zhangsen's avatar zhangsen

装备报废提醒 bug 修改

parent 5681f2b9
...@@ -1870,7 +1870,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM ...@@ -1870,7 +1870,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
model.setTitle("报废到期提醒"); model.setTitle("报废到期提醒");
String equipName = map.get("name").toString(); String equipName = map.get("name").toString();
String location = map.get("position").toString() + map.get("area").toString(); String location = map.getOrDefault("position", "").toString() + map.getOrDefault("area", "").toString();
String body = String.format("%s-%s于%s报废,请提前更换处理", equipName, location, scrapTime); String body = String.format("%s-%s于%s报废,请提前更换处理", equipName, location, scrapTime);
String join = i != 0 ? String.format("设备还剩%s天报废,请提前更换", i) : "设备今日到期,请立即更换"; String join = i != 0 ? String.format("设备还剩%s天报废,请提前更换", i) : "设备今日到期,请立即更换";
......
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