master:档口消息列表,新增入参storeId;
parent
5657e959ae
commit
891bf36378
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue