add 导出参会信息增加手动签到图片

This commit is contained in:
lijiarao
2021-11-29 12:08:58 +08:00
parent 5750b02316
commit 958959a91e
8 changed files with 34 additions and 5 deletions
@@ -95,6 +95,7 @@ public class JeroController<T, S extends IService<T>> {
ExportParams exportParams=new ExportParams(title, title);
// 导出xlsx
exportParams.setType(ExcelType.XSSF);
exportParams.setImageBasePath(upLoadPath);
mv.addObject(NormalExcelConstants.PARAMS,exportParams);
mv.addObject(NormalExcelConstants.DATA_LIST, object);
return mv;
@@ -48,6 +48,8 @@ import com.jero.meeting.service.IPayMeetingSituationService;
import com.jero.meeting.valid.group.*;
import com.jero.meeting.vo.*;
import com.jero.meeting.vo.excel.*;
import com.jero.modules.oss.entity.OSSFile;
import com.jero.modules.oss.service.IOSSFileService;
import com.jero.pack.entity.PayPackCompanyProject;
import com.jero.pack.service.IPayPackCompanyProjectService;
import com.jero.payment.entity.PayPaymentRecord;
@@ -64,8 +66,10 @@ import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.SecurityUtils;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.BeanUtils;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Service;
import java.io.File;
import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;
@@ -122,6 +126,9 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
private IPayIncomeContractService payIncomeContractService;
@Resource
private RolePermissionService rolePermissionService;
@Resource
private IOSSFileService ossFileService;
private static final String[] CAN_MODIFY_LIST = new String[]{"arrivalTime", "departureTime", "checkInHotel"};
@@ -1344,6 +1351,11 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
meetingSituation.setEmail(PasswordUtil.decrypt(contactsManagement.getEmail()));
PayCompanyManagement companyManagement = companyManagementService.getById(contactsManagement.getCompanyId());
meetingSituation.setCompanyName(companyManagement.getCompanyName());
String checkFile = meetingSituation.getCheckFile();
if (StringUtils.isNotBlank(checkFile)) {
OSSFile ossFile = ossFileService.getById(checkFile);
meetingSituation.setCheckFile(ossFile.getUrl());
}
switch (meetingType1) {
case MeetingCommon.STANDARD_MEETING:
//保存数据
@@ -9,7 +9,7 @@ import org.jeecgframework.poi.excel.annotation.Excel;
* @date 2021-09-22 15:39
*/
@Data
public class CommitteeSituationExcel {
public class CommitteeSituationExcel extends SituationBaseExcel {
/**会议id*/
@Excel(name = "会议名称", width = 15,dictTable = "pay_meeting",dicCode = "id",dicText = "meeting_name")
@@ -9,7 +9,7 @@ import org.jeecgframework.poi.excel.annotation.Excel;
* @date 2021-09-22 15:39
*/
@Data
public class InternationalSituationExcel {
public class InternationalSituationExcel extends SituationBaseExcel {
/**会议id*/
@Excel(name = "会议名称", width = 15,dictTable = "pay_meeting",dicCode = "id",dicText = "meeting_name")
@@ -0,0 +1,15 @@
package com.jero.meeting.vo.excel;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
* @author liJiaRao
* @date 2021-11-29 10:56
*/
@Data
public class SituationBaseExcel {
/**签到文件*/
@Excel(name = "手动签到", type = 2 ,width = 40 , height = 20,imageType = 3)
private String checkFile;
}
@@ -9,7 +9,7 @@ import org.jeecgframework.poi.excel.annotation.Excel;
* @date 2021-09-22 15:39
*/
@Data
public class SituationExcel {
public class SituationExcel extends SituationBaseExcel{
/**会议id*/
@Excel(name = "会议名称", width = 15,dictTable = "pay_meeting",dicCode = "id",dicText = "meeting_name")
@@ -9,7 +9,7 @@ import org.jeecgframework.poi.excel.annotation.Excel;
* @date 2021-09-22 15:40
*/
@Data
public class StandardsSituationExcel {
public class StandardsSituationExcel extends SituationBaseExcel {
/**会议id*/
@Excel(name = "会议名称", width = 15,dictTable = "pay_meeting",dicCode = "id",dicText = "meeting_name")
@@ -2,6 +2,7 @@ package com.jero.meeting.vo.excel;
import com.jero.common.aspect.annotation.Dict;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
@@ -9,7 +10,7 @@ import org.jeecgframework.poi.excel.annotation.Excel;
* @date 2021-09-22 15:40
*/
@Data
public class WorkingGroupSituationExcel {
public class WorkingGroupSituationExcel extends SituationBaseExcel {
/**会议id*/
@Excel(name = "会议名称", width = 15,dictTable = "pay_meeting",dicCode = "id",dicText = "meeting_name")