短信发送BUG
This commit is contained in:
parent
4a69b281f6
commit
19f87e9461
@ -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, "发送失败用户不存在");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -310,7 +310,7 @@ public class SysNotifyServiceImpl extends ServiceImpl<SysNotifyMapper, SysNotif
|
||||
this.baseMapper.updateById(sysNotify);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
|
||||
}
|
||||
// 根据dutyId查询员工id
|
||||
|
Loading…
Reference in New Issue
Block a user