Merge remote-tracking branch 'origin/master'

This commit is contained in:
Tankaikai
2025-04-07 10:22:25 +08:00

View File

@@ -64,7 +64,7 @@ public class SyncNoticeController {
* @return 消息记录数
*/
@PutMapping("/count")
public CzgResult<Long> count(@RequestParam Integer isRead) {
public CzgResult<Long> count(@RequestParam(required = false) Integer isRead) {
QueryWrapper queryWrapper = new QueryWrapper().eq(SyncNotice::getShopId, StpKit.USER.getShopId());
queryWrapper.eq(SyncNotice::getIsRead, isRead);
return CzgResult.success(syncNoticeService.count(queryWrapper));