|
|
@@ -1,6 +1,8 @@ |
|
|
|
package com.ningdatech.pmapi.sys.manage; |
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
@@ -10,6 +12,7 @@ import com.ningdatech.pmapi.sys.model.entity.Notify; |
|
|
|
import com.ningdatech.pmapi.sys.model.req.NotifyListReq; |
|
|
|
import com.ningdatech.pmapi.sys.model.vo.NotifyVO; |
|
|
|
import com.ningdatech.pmapi.sys.service.INotifyService; |
|
|
|
import com.ningdatech.pmapi.todocenter.constant.WorkNoticeContant; |
|
|
|
import com.ningdatech.pmapi.user.util.LoginUserUtil; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
@@ -46,7 +49,18 @@ public class NotifyManage { |
|
|
|
return PageVo.empty(); |
|
|
|
} |
|
|
|
List<NotifyVO> list = page.getRecords().stream() |
|
|
|
.map(n -> BeanUtil.copyProperties(n,NotifyVO.class)) |
|
|
|
.map(n -> { |
|
|
|
NotifyVO notifyVo = new NotifyVO(); |
|
|
|
BeanUtil.copyProperties(n,notifyVo); |
|
|
|
JSONObject jsonObject = JSON.parseObject(n.getExtraInfo()); |
|
|
|
Long projectId = jsonObject.getLong(WorkNoticeContant.PROJECT_ID); |
|
|
|
String instanceId = jsonObject.getString(WorkNoticeContant.INSTANCE_ID); |
|
|
|
Long meetingId = jsonObject.getLong(WorkNoticeContant.MEETING_ID); |
|
|
|
notifyVo.setProjectId(projectId); |
|
|
|
notifyVo.setInstanceId(instanceId); |
|
|
|
notifyVo.setMeetingId(meetingId); |
|
|
|
return notifyVo; |
|
|
|
}) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
return PageVo.of(list,page.getTotal()); |
|
|
|
} |
|
|
|