短信发送BUG

This commit is contained in:
zhaotianfeng 2024-09-20 10:08:51 +08:00
parent 4a69b281f6
commit 19f87e9461
2 changed files with 10 additions and 2 deletions

View File

@ -62,7 +62,15 @@ public class SysNotifyController extends BaseController {
}
@GetMapping("/sendNotify")
public ResponseObject sendNotify(Integer id) {
return getSuccessResult(this.sysNotifyService.sendNotifyOne(id));
boolean b = this.sysNotifyService.sendNotifyOne(id);
if (b) {
return getFailureResult(200, "发送成功");
}
else {
return getFailureResult(500, "发送失败用户不存在");
}
}
/**

View File

@ -310,7 +310,7 @@ public class SysNotifyServiceImpl extends ServiceImpl<SysNotifyMapper, SysNotif
this.baseMapper.updateById(sysNotify);
}
}
return true;
return false;
}
// 根据dutyId查询员工id