优化
This commit is contained in:
@ -25,28 +25,5 @@ public class SseController {
|
||||
return SseUtil.subscribe(userId,prefix);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 触发消息数量推送(适配2.4.7)
|
||||
// */
|
||||
// @GetMapping("/push")
|
||||
// public void pushMessageCount(String userId) {
|
||||
// SseEmitter emitter = emitterMap.get(userId);
|
||||
// if (emitter != null) {
|
||||
// BgtMessageCountVO bgtMessageCountVO = new BgtMessageCountVO();
|
||||
// bgtMessageCountVO.setTaskMessageCount(1);
|
||||
// bgtMessageCountVO.setSettlementMessageCount(0);
|
||||
// try {
|
||||
// // 发送自定义事件(客户端通过事件名监听)
|
||||
// emitter.send(SseEmitter.event()
|
||||
// .id(String.valueOf(System.currentTimeMillis()))
|
||||
// .name("messageCount")
|
||||
// .data(JSONUtil.toJsonStr(bgtMessageCountVO))
|
||||
// );
|
||||
// } catch (IOException e) {
|
||||
// emitter.completeWithError(e);
|
||||
// emitterMap.remove(userId); // 异常时清理无效连接
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,7 @@ import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.fbs.domain.vo.FbsProjectSubcontractingDetailVO;
|
||||
import com.ruoyi.zbf.domain.ZbfProject;
|
||||
import com.ruoyi.zbf.domain.ZbfProjectSubcontracting;
|
||||
import com.ruoyi.zbf.domain.ZbfProjectSubcontractingApply;
|
||||
import com.ruoyi.zbf.service.IZbfProjectSectionService;
|
||||
@ -62,7 +63,14 @@ public class AppFbsProjectSubcontractingController extends BaseController {
|
||||
ZbfProjectSubcontracting zbfProjectSubcontracting = iZbfProjectSubcontractingService.queryById(apply.getSubId());
|
||||
FbsProjectSubcontractingDetailVO vo = BeanUtil.copyProperties(zbfProjectSubcontracting, FbsProjectSubcontractingDetailVO.class);
|
||||
vo.setSectionName(zbfProjectSectionService.getById(vo.getSectionId()).getSectionName());
|
||||
vo.setProjectImg(zbfProjectService.getById(vo.getProjectId()).getProjectImg());
|
||||
ZbfProject project = zbfProjectService.getById(vo.getProjectId());
|
||||
vo.setProjectImg(project.getProjectImg());
|
||||
vo.setProjectName(project.getProjectName());
|
||||
vo.setProjectAddress(project.getProjectAddress());
|
||||
vo.setContactPerson(project.getContactPerson());
|
||||
vo.setContactPhone(project.getContactPhone());
|
||||
vo.setUnitName(project.getUnitName());
|
||||
vo.setCreditCode(project.getCreditCode());
|
||||
vo.setApplyStatus(apply.getApplyStatus());
|
||||
return AjaxResult.success(vo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user