add 企业端-会议-分页列表查询参会人的会议
This commit is contained in:
@@ -36,4 +36,22 @@ public class MeetingCommon {
|
|||||||
* 已提醒
|
* 已提醒
|
||||||
*/
|
*/
|
||||||
public static final Integer REMIND_1 = 1;
|
public static final Integer REMIND_1 = 1;
|
||||||
|
/**
|
||||||
|
* 会议状态 全部
|
||||||
|
*/
|
||||||
|
public final static String MEETING_STATUS_1 = "1";
|
||||||
|
/**
|
||||||
|
* 会议状态 未开始
|
||||||
|
*/
|
||||||
|
public final static String MEETING_STATUS_2 = "2";
|
||||||
|
/**
|
||||||
|
* 会议状态 进行中
|
||||||
|
*/
|
||||||
|
public final static String MEETING_STATUS_3 = "3";
|
||||||
|
/**
|
||||||
|
* 会议状态 已结束
|
||||||
|
*/
|
||||||
|
public final static String MEETING_STATUS_4 = "4";
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+56
@@ -5,6 +5,7 @@ import java.util.stream.Collectors;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.http.HttpUtil;
|
import cn.hutool.http.HttpUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
@@ -77,6 +78,7 @@ public class PayMeetingController extends JeroController<PayMeeting, IPayMeeting
|
|||||||
private IOSSFileService iossFileService;
|
private IOSSFileService iossFileService;
|
||||||
@Resource
|
@Resource
|
||||||
private IPayCaseCommitteeService payCaseCommitteeService;
|
private IPayCaseCommitteeService payCaseCommitteeService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页列表查询
|
* 分页列表查询
|
||||||
*/
|
*/
|
||||||
@@ -125,6 +127,60 @@ public class PayMeetingController extends JeroController<PayMeeting, IPayMeeting
|
|||||||
return Result.OK(pageList);
|
return Result.OK(pageList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业端-会议-分页列表查询参会人的会议
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "企业端-会议-分页列表查询参会人的会议")
|
||||||
|
@GetMapping(value = "/pageContract")
|
||||||
|
public Result<?> queryPageListContract(PayMeeting payMeeting,
|
||||||
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||||
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||||
|
HttpServletRequest req) {
|
||||||
|
QueryWrapper<PayMeeting> queryWrapper = QueryGenerator.initQueryWrapper(payMeeting, req.getParameterMap());
|
||||||
|
String meetingStartTime = req.getParameter("meetingStartTime");
|
||||||
|
String meetingEndTime = req.getParameter("meetingEndTime");
|
||||||
|
if (ObjectUtil.isNotEmpty(meetingStartTime) && ObjectUtil.isNotEmpty(meetingEndTime)) {
|
||||||
|
queryWrapper.not(
|
||||||
|
a -> a.gt("start_time", meetingEndTime).or().lt("end_time", meetingStartTime)
|
||||||
|
);
|
||||||
|
} else if (ObjectUtil.isNotEmpty(meetingStartTime)) {
|
||||||
|
queryWrapper.not(
|
||||||
|
a -> a.lt("end_time", meetingStartTime)
|
||||||
|
);
|
||||||
|
} else if (ObjectUtil.isNotEmpty(meetingEndTime)) {
|
||||||
|
queryWrapper.not(
|
||||||
|
a -> a.gt("start_time", meetingEndTime)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
String meetingStatus = req.getParameter("meetingStatus");
|
||||||
|
String now = DateUtil.formatDate(new Date());
|
||||||
|
switch (meetingStatus) {
|
||||||
|
case MeetingCommon.MEETING_STATUS_2:
|
||||||
|
queryWrapper.gt("start_time", now);
|
||||||
|
break;
|
||||||
|
case MeetingCommon.MEETING_STATUS_3:
|
||||||
|
queryWrapper.ge("end_time", now);
|
||||||
|
queryWrapper.le("start_time", now);
|
||||||
|
break;
|
||||||
|
case MeetingCommon.MEETING_STATUS_4:
|
||||||
|
queryWrapper.le("end_time", now);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
Page<PayMeeting> page = new Page<>(pageNo, pageSize);
|
||||||
|
IPage<PayMeeting> pageList = payMeetingService.pageListContract(page, queryWrapper);
|
||||||
|
for (PayMeeting meeting : pageList.getRecords()) {
|
||||||
|
//查询会议负责人
|
||||||
|
LoginUser user = sysBaseApi.getUserById(meeting.getDirectorId());
|
||||||
|
meeting.setDirectorName(user.getUsername());
|
||||||
|
meeting.setDirectorPhone(PasswordUtil.decrypt(user.getPhone()));
|
||||||
|
PayMeetingVO payMeetingVO = new PayMeetingVO();
|
||||||
|
BeanUtils.copyProperties(payMeetingVO, payMeeting);
|
||||||
|
}
|
||||||
|
|
||||||
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 列表查询
|
* 列表查询
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -249,4 +249,11 @@ public class PayMeeting implements Serializable {
|
|||||||
/**通知正文*/
|
/**通知正文*/
|
||||||
@ApiModelProperty(value = "通知正文")
|
@ApiModelProperty(value = "通知正文")
|
||||||
private String notice;
|
private String notice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 缴费方式
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
@Dict(dicCode = "meeting_pay_type")
|
||||||
|
private Integer payMode;
|
||||||
}
|
}
|
||||||
|
|||||||
+7
@@ -408,4 +408,11 @@ public class PayMeetingSituation implements Serializable {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ApiModelProperty(value = "收入合同编号")
|
@ApiModelProperty(value = "收入合同编号")
|
||||||
private String contractNum;
|
private String contractNum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会议名称
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
@ApiModelProperty(value = "会议名称")
|
||||||
|
private String meetingName;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,10 @@ package com.jero.meeting.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import com.jero.meeting.entity.PayMeeting;
|
import com.jero.meeting.entity.PayMeeting;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
@@ -14,4 +18,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||||||
*/
|
*/
|
||||||
public interface PayMeetingMapper extends BaseMapper<PayMeeting> {
|
public interface PayMeetingMapper extends BaseMapper<PayMeeting> {
|
||||||
|
|
||||||
|
IPage<PayMeeting> pageListContract(Page<PayMeeting> page, @Param(Constants.WRAPPER) QueryWrapper<PayMeeting> queryWrapper);
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -30,5 +30,13 @@
|
|||||||
<result column="hotel_address" property="hotelAddress" />
|
<result column="hotel_address" property="hotelAddress" />
|
||||||
<result column="hotel_contacts" property="hotelContacts" />
|
<result column="hotel_contacts" property="hotelContacts" />
|
||||||
<result column="remark" property="remark" />
|
<result column="remark" property="remark" />
|
||||||
|
<result column="pay_mode" property="payMode"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
<select id="pageListContract" resultMap="PayMeetingResultMap">
|
||||||
|
select pm.*,pms.pay_mode
|
||||||
|
from pay_meeting pm
|
||||||
|
left join pay_meeting_situation pms on pm.id = pms.meeting_id
|
||||||
|
#{ew.customSqlSegment}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
+4
@@ -1,5 +1,8 @@
|
|||||||
package com.jero.meeting.service;
|
package com.jero.meeting.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.jero.meeting.entity.PayMeeting;
|
import com.jero.meeting.entity.PayMeeting;
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
import com.jero.meeting.entity.PayMeetingSituation;
|
import com.jero.meeting.entity.PayMeetingSituation;
|
||||||
@@ -62,4 +65,5 @@ public interface IPayMeetingService extends IService<PayMeeting> {
|
|||||||
void publishReminder(PublishReminderVO publishReminderVO);
|
void publishReminder(PublishReminderVO publishReminderVO);
|
||||||
|
|
||||||
|
|
||||||
|
IPage<PayMeeting> pageListContract(Page<PayMeeting> page, QueryWrapper<PayMeeting> queryWrapper);
|
||||||
}
|
}
|
||||||
|
|||||||
+7
@@ -3,6 +3,8 @@ package com.jero.meeting.service.impl;
|
|||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.jero.common.dto.SendMessageDTO;
|
import com.jero.common.dto.SendMessageDTO;
|
||||||
import com.jero.common.enums.CompanyMessageEnums;
|
import com.jero.common.enums.CompanyMessageEnums;
|
||||||
import com.jero.common.enums.ManagementMessageEnums;
|
import com.jero.common.enums.ManagementMessageEnums;
|
||||||
@@ -450,4 +452,9 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
|
|||||||
}
|
}
|
||||||
payMeetingRemindRecordService.addList(meetingIdList,subitemIdList);
|
payMeetingRemindRecordService.addList(meetingIdList,subitemIdList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IPage<PayMeeting> pageListContract(Page<PayMeeting> page, QueryWrapper<PayMeeting> queryWrapper) {
|
||||||
|
return baseMapper.pageListContract(page,queryWrapper);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user