通知中心调整

This commit is contained in:
张松 2025-04-08 09:22:45 +08:00
parent 2eec2f4303
commit 0253aaeaed
2 changed files with 10 additions and 1 deletions

View File

@ -58,6 +58,15 @@ public class SyncNoticeController {
return CzgResult.success(syncNoticeService.read(StpKit.USER.getShopId(), syncNoticeReadDTO));
}
/**
* 清空已读
* @return 是否成功
*/
@DeleteMapping
public CzgResult<Boolean> clear() {
return CzgResult.success(syncNoticeService.remove(new QueryWrapper().eq(SyncNotice::getShopId, StpKit.USER.getShopId()).eq(SyncNotice::getIsRead, 1)));
}
/**
* 消息统计

View File

@ -48,7 +48,7 @@ public class SyncNoticeServiceImpl extends ServiceImpl<SyncNoticeMapper, SyncNot
break;
}
content = StrUtil.format("{}: {}({}), 请及时确认;", content, name, id);
content = StrUtil.format("{}: {}, 请及时确认;", content, name);
syncNotice.setContent(content);
save(syncNotice);
}