Commit a5d3ec8e authored by zhangsen's avatar zhangsen

装备报废提醒修改

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