|
@@ -212,10 +212,7 @@ public class TbFaultReportServiceImpl extends ServiceImpl<TbFaultReportMapper, T
|
|
|
|
|
|
SysUser sysUser = userMapper.selectUserById(1L);
|
|
|
String format = String.format("报备设备条形码:%s,报备设备名称:%s,故障原因:%s", assetBarCode, tbAsset.getName(), tbFaultReport.getFaultPhenomenon());
|
|
|
- // emailUtils.sendSimpleEmail(sysUser.getEmail(), "设备报备通知", format);
|
|
|
-
|
|
|
- // TODO 记得改回注释代码
|
|
|
- emailUtils.sendSimpleEmail("1248708657@qq.com", "设备报备通知", format);
|
|
|
+ emailUtils.sendSimpleEmail(sysUser.getEmail(), "设备报备通知", format);
|
|
|
}
|
|
|
|
|
|
return result ? AjaxResult.success("故障上报成功", tbFaultReport) : AjaxResult.error("故障上报失败");
|