Compare commits

..

No commits in common. "6794ef4e1092d1939c43bbea6ef4ffb1e337113c" and "8753c08c4a756d00b23421af7a194b5644f41be9" have entirely different histories.

4 changed files with 1 additions and 25 deletions

View File

@ -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);
}
/**
*

View File

@ -22,7 +22,7 @@ public @interface RepeatSubmit
/**
* (ms)
*/
public int interval() default 1000;
public int interval() default 5000;
/**
*

View File

@ -32,6 +32,4 @@ public interface ISysAdviceService extends IService<SysAdvice> {
*
*/
void readAll();
List<AdviceVo> getOfficialMsg();
}

View File

@ -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();