Commit c104908d authored by unset's avatar unset

添加通知信息

parent 8de33ae4
......@@ -46,7 +46,7 @@ public class NoticeInfo implements Serializable {
*/
@Column(name = "read")
@ApiModelProperty(value = "是否已读:1、未读,2、已读")
private Integer read;
private Integer isRead;
/**
* 是否删除:0、否,1、是
......
......@@ -38,10 +38,10 @@ public class NoticeInfoBiz extends BaseBiz<NoticeInfoMapper,NoticeInfo> {
Example example = new Example(NoticeInfo.class);
Example.Criteria criteria = example.createCriteria();
if (noticeInfoDto.getRead() != null) {
criteria.andEqualTo("read", noticeInfoDto.getRead());
criteria.andEqualTo("isRead", noticeInfoDto.getRead());
}
criteria.andEqualTo("userId", noticeInfoDto.getUserId());
example.orderBy("read");
example.orderBy("isRead");
Query query = new Query(noticeInfoDto);
PageDataVO<NoticeInfo> pageDataVO = PageDataVO.pageInfo(query, () -> mapper.selectByExample(example));
return ObjectRestResponse.succ(pageDataVO);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment