master:档口消息列表,新增入参storeId;

pull/1121/head
liujiang 2025-12-03 21:15:23 +08:00
parent 5657e959ae
commit 891bf36378
4 changed files with 13 additions and 0 deletions

View File

@ -23,5 +23,7 @@ public class NoticePageVO extends BasePageVO {
@NotNull(message = "ownerType不能为空")
@ApiModelProperty(value = "谁发的公告 1 档口 2 系统", required = true)
private Integer ownerType;
@ApiModelProperty(value = "档口id")
private Long storeId;
}

View File

@ -163,6 +163,12 @@ public class DailyTaskController extends BaseController {
return R.ok();
}
@PostMapping("/user-brows-history")
public R dailyUpdateUserBrowsingHistory(SysJob sysJob) {
task.dailyUpdateUserBrowsingHistory();
return R.ok();
}
}

View File

@ -20,5 +20,7 @@ public class NoticePageDTO extends BasePageDTO {
private String noticeTitle;
@ApiModelProperty(value = "谁发的公告 1 档口 2 系统")
private Integer ownerType;
@ApiModelProperty(value = "档口id")
private Long storeId;
}

View File

@ -156,6 +156,9 @@ public class NoticeServiceImpl implements INoticeService {
if (StringUtils.isNotBlank(pageDTO.getNoticeTitle())) {
queryWrapper.like(Notice::getNoticeTitle, pageDTO.getNoticeTitle());
}
if (ObjectUtils.isNotEmpty(pageDTO.getStoreId())) {
queryWrapper.eq(Notice::getStoreId, pageDTO.getStoreId());
}
PageHelper.startPage(pageDTO.getPageNum(), pageDTO.getPageSize());
List<Notice> noticeList = this.noticeMapper.selectList(queryWrapper);
if (CollectionUtils.isEmpty(noticeList)) {