Compare commits
No commits in common. "6794ef4e1092d1939c43bbea6ef4ffb1e337113c" and "8753c08c4a756d00b23421af7a194b5644f41be9" have entirely different histories.
6794ef4e10
...
8753c08c4a
|
@ -64,16 +64,6 @@ public class SysAdviceController {
|
|||
return R.ok(adviceVo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取官方通知
|
||||
*/
|
||||
@GetMapping("getOfficialMsg")
|
||||
@ApiOperation(value = "获取官方通知")
|
||||
public R<List<AdviceVo>> getOfficialMsg() {
|
||||
List<AdviceVo> adviceVo = sysAdviceService.getOfficialMsg();
|
||||
return R.ok(adviceVo);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取评论通知
|
||||
|
|
|
@ -22,7 +22,7 @@ public @interface RepeatSubmit
|
|||
/**
|
||||
* 间隔时间(ms),小于此时间视为重复提交
|
||||
*/
|
||||
public int interval() default 1000;
|
||||
public int interval() default 5000;
|
||||
|
||||
/**
|
||||
* 提示消息
|
||||
|
|
|
@ -32,6 +32,4 @@ public interface ISysAdviceService extends IService<SysAdvice> {
|
|||
* 一键已读
|
||||
*/
|
||||
void readAll();
|
||||
|
||||
List<AdviceVo> getOfficialMsg();
|
||||
}
|
||||
|
|
|
@ -253,18 +253,6 @@ public class SysAdviceServiceImpl extends ServiceImpl<SysAdviceMapper, SysAdvice
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AdviceVo> getOfficialMsg() {
|
||||
|
||||
List<SysAdvice> sysAdviceList = baseMapper.selectList(new LambdaQueryWrapper<SysAdvice>()
|
||||
.eq(SysAdvice::getType, AdviceEnum.SYSTEM_NOTICE)
|
||||
.eq(SysAdvice::getReceiverId, SecurityUtils.getUserId()));
|
||||
|
||||
|
||||
|
||||
return BeanUtil.copyToList(sysAdviceList, AdviceVo.class);
|
||||
}
|
||||
|
||||
public void postConstruct() {
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
|
||||
|
|
Loading…
Reference in New Issue