|
@@ -3,6 +3,7 @@ package com.xjrsoft.module.oa.service.impl;
|
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
@@ -16,6 +17,7 @@ import com.xjrsoft.common.page.ConventPage;
|
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
|
import com.xjrsoft.common.utils.LocalDateTimeUtil;
|
|
|
import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
+import com.xjrsoft.config.CommonPropertiesConfig;
|
|
|
import com.xjrsoft.module.base.entity.BaseOfficeBuild;
|
|
|
import com.xjrsoft.module.ledger.vo.WorkflowRecordVo;
|
|
|
import com.xjrsoft.module.oa.dto.*;
|
|
@@ -87,6 +89,8 @@ public class WfMeetingApplyServiceImpl extends MPJBaseServiceImpl<WfMeetingApply
|
|
|
|
|
|
private final FileMapper fileMapper;
|
|
|
|
|
|
+ private final CommonPropertiesConfig propertiesConfig;
|
|
|
+
|
|
|
@Override
|
|
|
public List<MeetingRoomListVo> listMeetingRoom(MeetingRoomListDto dto) {
|
|
|
List<MeetingRoomListVo> usableResult = new ArrayList<>();
|
|
@@ -629,9 +633,9 @@ public class WfMeetingApplyServiceImpl extends MPJBaseServiceImpl<WfMeetingApply
|
|
|
wrapper
|
|
|
.disableSubLogicDel()
|
|
|
.select(WfMeetingApply::getId)
|
|
|
+ .select(WfMeetingApply.class, x -> VoToColumnUtil.fieldsToColumns(WfMeetingApply.class).contains(x.getProperty()))
|
|
|
.selectAs(MeetingRoom::getName, WfMeetingApply::getMeetingSummary)
|
|
|
.selectAs(XjrUser::getName, WfMeetingApply::getMonogramTheme)
|
|
|
- .select(WfMeetingApply.class, x -> VoToColumnUtil.fieldsToColumns(WfMeetingApply.class).contains(x.getProperty()))
|
|
|
.leftJoin(MeetingRoom.class, MeetingRoom::getId, WfMeetingApply::getMeetingRoomId)
|
|
|
.leftJoin(XjrUser.class, XjrUser::getId, WfMeetingApply::getSponsorId)
|
|
|
.eq(WfMeetingApply::getId, id)
|
|
@@ -697,11 +701,14 @@ public class WfMeetingApplyServiceImpl extends MPJBaseServiceImpl<WfMeetingApply
|
|
|
weChatSendMessageDto.setUserId(user.getOpenId());
|
|
|
weChatSendMessageDto.setTemplateId("Hign0b3e4WSXe__YmBKyDsBgAjkfNYC7c6yIUHjk3Hg");
|
|
|
weChatSendMessageDto.setMsgId(IdUtil.getSnowflakeNextId() + "");
|
|
|
+ weChatSendMessageDto.setUrl(StrUtil.format("{}pages/meeting/detail?id={}&type=0", propertiesConfig.getDomainApp(), meetingApply.getId()));
|
|
|
JSONObject paramJson = new JSONObject();
|
|
|
|
|
|
- JSONObject thing2 = new JSONObject();
|
|
|
- thing2.put("value", meetingApply.getMeetingApplyTheme());
|
|
|
- paramJson.put("thing2", thing2);
|
|
|
+ if(StringUtils.isNotEmpty(meetingApply.getMeetingApplyTheme())){
|
|
|
+ JSONObject thing2 = new JSONObject();
|
|
|
+ thing2.put("value", meetingApply.getMeetingApplyTheme());
|
|
|
+ paramJson.put("thing2", thing2);
|
|
|
+ }
|
|
|
|
|
|
JSONObject time5 = new JSONObject();
|
|
|
time5.put("value", startTime);
|
|
@@ -711,9 +718,17 @@ public class WfMeetingApplyServiceImpl extends MPJBaseServiceImpl<WfMeetingApply
|
|
|
time6.put("value", endTime);
|
|
|
paramJson.put("time6", time6);
|
|
|
|
|
|
- JSONObject thing7 = new JSONObject();
|
|
|
- thing7.put("value", meetingApply.getMeetingSummary());
|
|
|
- paramJson.put("thing7", thing7);
|
|
|
+ if("HMT0001".equals(meetingApply.getMeetingApplyFormat())){
|
|
|
+ JSONObject thing7 = new JSONObject();
|
|
|
+ thing7.put("value", meetingApply.getMeetingApplyUrl());
|
|
|
+ paramJson.put("thing7", thing7);
|
|
|
+ }
|
|
|
+
|
|
|
+ if("HMT0002".equals(meetingApply.getMeetingApplyFormat())){
|
|
|
+ JSONObject thing7 = new JSONObject();
|
|
|
+ thing7.put("value", meetingApply.getMeetingSummary());
|
|
|
+ paramJson.put("thing7", thing7);
|
|
|
+ }
|
|
|
|
|
|
JSONObject thing8 = new JSONObject();
|
|
|
thing8.put("value", meetingApply.getMonogramTheme());
|