通知中心调整
This commit is contained in:
@@ -58,6 +58,15 @@ public class SyncNoticeController {
|
|||||||
return CzgResult.success(syncNoticeService.read(StpKit.USER.getShopId(), syncNoticeReadDTO));
|
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)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 消息统计
|
* 消息统计
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public class SyncNoticeServiceImpl extends ServiceImpl<SyncNoticeMapper, SyncNot
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
content = StrUtil.format("{}: {}({}), 请及时确认;", content, name, id);
|
content = StrUtil.format("{}: {}, 请及时确认;", content, name);
|
||||||
syncNotice.setContent(content);
|
syncNotice.setContent(content);
|
||||||
save(syncNotice);
|
save(syncNotice);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user