修改表报打印bug
This commit is contained in:
@ -29,6 +29,7 @@ import java.time.LocalDateTime;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Optional;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@ -71,7 +72,7 @@ public class BidOpenRecordImpl implements ExportService {
|
|||||||
|
|
||||||
OpenRecordExportData data = new OpenRecordExportData();
|
OpenRecordExportData data = new OpenRecordExportData();
|
||||||
data.setProjName(proj.getProjectName())
|
data.setProjName(proj.getProjectName())
|
||||||
.setProjNum(proj.getProjectBizNum())
|
.setProjNum(Optional.ofNullable(proj.getAgencyCompanyProjectNum()).orElse(proj.getEbpProjectNumber()))
|
||||||
.setBidNum(section.getBidSectBizNum());
|
.setBidNum(section.getBidSectBizNum());
|
||||||
|
|
||||||
ExportTableData tableData = new ExportTableData();
|
ExportTableData tableData = new ExportTableData();
|
||||||
|
@ -4,6 +4,7 @@ import com.chinaunicom.mall.ebtp.common.poiExport.constant.ExportConstant;
|
|||||||
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTable;
|
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTable;
|
||||||
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTd;
|
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTd;
|
||||||
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTr;
|
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTr;
|
||||||
|
import com.chinaunicom.mall.ebtp.common.util.JsonUtils;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.bean.CbpsExportData;
|
import com.chinaunicom.mall.ebtp.extend.export.bean.CbpsExportData;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
||||||
@ -15,6 +16,7 @@ import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.BidEvalEarlyJudgesSumm
|
|||||||
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.ReviewConfigCategoryDTO;
|
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.ReviewConfigCategoryDTO;
|
||||||
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.ReviewConfigDetailDTO;
|
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.ReviewConfigDetailDTO;
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@ -23,6 +25,7 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -31,6 +34,7 @@ import java.util.Map;
|
|||||||
* @author fqj
|
* @author fqj
|
||||||
*/
|
*/
|
||||||
@Service("cbps")
|
@Service("cbps")
|
||||||
|
@Slf4j
|
||||||
public class CbpsExportServiceImpl implements ExportService {
|
public class CbpsExportServiceImpl implements ExportService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -47,21 +51,22 @@ public class CbpsExportServiceImpl implements ExportService {
|
|||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
@Override
|
@Override
|
||||||
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
log.info("初步评审表,ExportParam = {}", JsonUtils.objectToJson(param));
|
||||||
//导出的表格名称
|
//导出的表格名称
|
||||||
String dictName = commonFeignService.exportDictName(param.getId(), "初步评审表");
|
String dictName = commonFeignService.exportDictName(param.getId(), "初步评审表");
|
||||||
|
|
||||||
//查询包
|
//查询包
|
||||||
ProjectSectionVO section = commonFeignService.projectGetSectionById(param.getSectionId());
|
ProjectSectionVO section = commonFeignService.projectGetSectionById(param.getSectionId());
|
||||||
|
log.info("初步评审表 {},查询包信息 {}", param.getAssessRoomId(), JsonUtils.objectToJson(section));
|
||||||
//查询项目
|
//查询项目
|
||||||
ProjectRecordVO proj = commonFeignService.projectGetProjById(section.getProjectId());
|
ProjectRecordVO proj = commonFeignService.projectGetProjById(section.getProjectId());
|
||||||
|
log.info("初步评审表 {},查询项目信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(proj));
|
||||||
//供应商信息
|
//供应商信息
|
||||||
List<BizSupplierRegister> suppliers = commonFeignService.tenderGetSupplierRegisterByRoomId(param.getAssessRoomId());
|
List<BizSupplierRegister> suppliers = commonFeignService.tenderGetSupplierRegisterByRoomId(param.getAssessRoomId());
|
||||||
|
log.info("初步评审表 {},查询供应商信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(suppliers));
|
||||||
//初审评分信息
|
//初审评分信息
|
||||||
List<ReviewConfigCategoryDTO> earlySummary = commonFeignService.rsmsFindScoreEarlySummary(param);
|
List<ReviewConfigCategoryDTO> earlySummary = commonFeignService.rsmsFindScoreEarlySummary(param);
|
||||||
|
log.info("初步评审表 {},查询评分信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(earlySummary));
|
||||||
ExcelTable table = new ExcelTable(dictName);
|
ExcelTable table = new ExcelTable(dictName);
|
||||||
table.setFileName(dictName);
|
table.setFileName(dictName);
|
||||||
|
|
||||||
@ -74,7 +79,7 @@ public class CbpsExportServiceImpl implements ExportService {
|
|||||||
table.add(new ExcelTr().setExcelTdList(list));
|
table.add(new ExcelTr().setExcelTdList(list));
|
||||||
|
|
||||||
list = new ArrayList<>();
|
list = new ArrayList<>();
|
||||||
list.add(new ExcelTd().setTdValue("招标编号:" + proj.getProjectBizNum()).setCellStyleKey("noBorderLeft12").setIsRowMerge(true).setRowMergeNum(suppliers.size() + 3));
|
list.add(new ExcelTd().setTdValue("招标编号:" + Optional.ofNullable(proj.getAgencyCompanyProjectNum()).orElse(proj.getEbpProjectNumber())).setCellStyleKey("noBorderLeft12").setIsRowMerge(true).setRowMergeNum(suppliers.size() + 3));
|
||||||
table.add(new ExcelTr().setExcelTdList(list));
|
table.add(new ExcelTr().setExcelTdList(list));
|
||||||
|
|
||||||
list = new ArrayList<>();
|
list = new ArrayList<>();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.chinaunicom.mall.ebtp.extend.export.service.impl;
|
package com.chinaunicom.mall.ebtp.extend.export.service.impl;
|
||||||
|
|
||||||
|
import com.chinaunicom.mall.ebtp.common.util.JsonUtils;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.common.ExportCommonFeignService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.common.ExportCommonFeignService;
|
||||||
@ -10,6 +11,7 @@ import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.BidEvalDetailJudgesSum
|
|||||||
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.BidEvalDetailSummaryVO;
|
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.BidEvalDetailSummaryVO;
|
||||||
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.JuryPrintVO;
|
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.JuryPrintVO;
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.poi.ss.usermodel.*;
|
import org.apache.poi.ss.usermodel.*;
|
||||||
import org.apache.poi.ss.util.CellRangeAddress;
|
import org.apache.poi.ss.util.CellRangeAddress;
|
||||||
import org.apache.poi.xssf.streaming.SXSSFCell;
|
import org.apache.poi.xssf.streaming.SXSSFCell;
|
||||||
@ -24,16 +26,14 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 打分汇总
|
* 打分汇总
|
||||||
*/
|
*/
|
||||||
@Service("dfhz")
|
@Service("dfhz")
|
||||||
|
@Slf4j
|
||||||
public class DfhzExportServiceImpl implements ExportService {
|
public class DfhzExportServiceImpl implements ExportService {
|
||||||
|
|
||||||
|
|
||||||
@ -50,24 +50,25 @@ public class DfhzExportServiceImpl implements ExportService {
|
|||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
@Override
|
@Override
|
||||||
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
log.info("打分汇总表,ExportParam = {}", JsonUtils.objectToJson(param));
|
||||||
//导出的表格名称
|
//导出的表格名称
|
||||||
String dictName = commonFeignService.exportDictName(param.getId(), "打分汇总表");
|
String dictName = commonFeignService.exportDictName(param.getId(), "打分汇总表");
|
||||||
|
|
||||||
//查询包
|
//查询包
|
||||||
ProjectSectionVO section = commonFeignService.projectGetSectionById(param.getSectionId());
|
ProjectSectionVO section = commonFeignService.projectGetSectionById(param.getSectionId());
|
||||||
|
log.info("打分汇总表 {},查询包信息 {}", param.getAssessRoomId(), JsonUtils.objectToJson(section));
|
||||||
//查询项目
|
//查询项目
|
||||||
ProjectRecordVO proj = commonFeignService.projectGetProjById(section.getProjectId());
|
ProjectRecordVO proj = commonFeignService.projectGetProjById(section.getProjectId());
|
||||||
|
log.info("打分汇总表 {},查询项目信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(proj));
|
||||||
//供应商信息
|
//供应商信息
|
||||||
List<BizSupplierRegister> suppliers = commonFeignService.tenderGetSupplierRegisterByRoomId(param.getAssessRoomId());
|
List<BizSupplierRegister> suppliers = commonFeignService.tenderGetSupplierRegisterByRoomId(param.getAssessRoomId());
|
||||||
|
log.info("打分汇总表 {},查询供应商信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(suppliers));
|
||||||
//评委
|
//评委
|
||||||
List<JuryPrintVO> memberAll = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
List<JuryPrintVO> memberAll = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
||||||
|
log.info("打分汇总表 {},查询评委信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(memberAll));
|
||||||
//所有类型打分数据源
|
//所有类型打分数据源
|
||||||
Map<String, List<BidEvalDetailSummaryVO>> detailList = commonFeignService.exportScoreSummary(param);
|
Map<String, List<BidEvalDetailSummaryVO>> detailList = commonFeignService.exportScoreSummary(param);
|
||||||
|
log.info("打分汇总表 {},查询所有类型打分数据源 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(detailList));
|
||||||
// 创建工作簿
|
// 创建工作簿
|
||||||
SXSSFWorkbook wb = new SXSSFWorkbook();
|
SXSSFWorkbook wb = new SXSSFWorkbook();
|
||||||
//表格样式
|
//表格样式
|
||||||
@ -110,7 +111,7 @@ public class DfhzExportServiceImpl implements ExportService {
|
|||||||
SXSSFCell projectNumCell0 = projectNumRow.createCell(0);
|
SXSSFCell projectNumCell0 = projectNumRow.createCell(0);
|
||||||
projectNumCell0.setCellValue("项目编号:");
|
projectNumCell0.setCellValue("项目编号:");
|
||||||
SXSSFCell projectNumCell1 = projectNumRow.createCell(1);
|
SXSSFCell projectNumCell1 = projectNumRow.createCell(1);
|
||||||
projectNumCell1.setCellValue(proj.getProjectBizNum());
|
projectNumCell1.setCellValue(Optional.ofNullable(proj.getAgencyCompanyProjectNum()).orElse(proj.getEbpProjectNumber()));
|
||||||
//列头
|
//列头
|
||||||
List<String> titles0 = new ArrayList<>();
|
List<String> titles0 = new ArrayList<>();
|
||||||
titles0.add("投标人名称");
|
titles0.add("投标人名称");
|
||||||
@ -170,10 +171,10 @@ public class DfhzExportServiceImpl implements ExportService {
|
|||||||
this.createCell(row, cellIndex, cellStyle, "-");
|
this.createCell(row, cellIndex, cellStyle, "-");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
BidEvalDetailSummaryVO detailSummary = detailScore.stream().filter(f -> f.getSupplierRegisterId().equals(vo.getCompanyName())).findFirst().orElseGet(BidEvalDetailSummaryVO::new);
|
BidEvalDetailSummaryVO detailSummary = detailScore.stream().filter(f -> f.getSupplierRegisterId().equals(vo.getId())).findFirst().orElseGet(BidEvalDetailSummaryVO::new);
|
||||||
Map<String, BidEvalDetailJudgesSummaryVO> memberScoreMap = detailSummary.getScoreMap();
|
Map<String, BidEvalDetailJudgesSummaryVO> memberScoreMap = detailSummary.getScoreMap();
|
||||||
for (JuryPrintVO memberVO : memberAll) {
|
for (JuryPrintVO memberVO : memberAll) {
|
||||||
if (memberScoreMap !=null && memberScoreMap.containsKey(memberVO.getUserId())) {
|
if (memberScoreMap != null && memberScoreMap.containsKey(memberVO.getUserId())) {
|
||||||
BigDecimal score = memberScoreMap.get(memberVO.getUserId()).getScore();
|
BigDecimal score = memberScoreMap.get(memberVO.getUserId()).getScore();
|
||||||
this.createCell(row, cellIndex++, cellStyle, score == null ? "" : String.valueOf(score));
|
this.createCell(row, cellIndex++, cellStyle, score == null ? "" : String.valueOf(score));
|
||||||
} else {
|
} else {
|
||||||
@ -269,8 +270,8 @@ public class DfhzExportServiceImpl implements ExportService {
|
|||||||
row = this.createRow(sheet, rowIndex);
|
row = this.createRow(sheet, rowIndex);
|
||||||
c = row.createCell(titles0.size() - 3);
|
c = row.createCell(titles0.size() - 3);
|
||||||
c.setCellValue("日期:");
|
c.setCellValue("日期:");
|
||||||
c = row.createCell(titles0.size() - 2);
|
// c = row.createCell(titles0.size() - 2);
|
||||||
c.setCellValue(new SimpleDateFormat("yyyy年MM月dd日").format(new Date()));
|
// c.setCellValue(new SimpleDateFormat("yyyy年MM月dd日").format(new Date()));
|
||||||
|
|
||||||
//合并表头
|
//合并表头
|
||||||
CellRangeAddress region = new CellRangeAddress(0, 0, 0, titles0.size() - 1);
|
CellRangeAddress region = new CellRangeAddress(0, 0, 0, titles0.size() - 1);
|
||||||
|
@ -4,6 +4,7 @@ import com.chinaunicom.mall.ebtp.common.poiExport.constant.ExportConstant;
|
|||||||
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTable;
|
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTable;
|
||||||
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTd;
|
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTd;
|
||||||
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTr;
|
import com.chinaunicom.mall.ebtp.common.poiExport.entity.ExcelTr;
|
||||||
|
import com.chinaunicom.mall.ebtp.common.util.JsonUtils;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.bean.JgdfExportData;
|
import com.chinaunicom.mall.ebtp.extend.export.bean.JgdfExportData;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
||||||
@ -14,16 +15,14 @@ import com.chinaunicom.mall.ebtp.extend.feign.entity.ProjectSectionVO;
|
|||||||
import com.chinaunicom.mall.ebtp.extend.feign.entity.TfileContentData;
|
import com.chinaunicom.mall.ebtp.extend.feign.entity.TfileContentData;
|
||||||
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.SupplierRegisterPriceScoreVO;
|
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.SupplierRegisterPriceScoreVO;
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Comparator;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@ -32,6 +31,7 @@ import java.util.stream.Collectors;
|
|||||||
* 价格打分
|
* 价格打分
|
||||||
*/
|
*/
|
||||||
@Service("jgdf")
|
@Service("jgdf")
|
||||||
|
@Slf4j
|
||||||
public class JgdfExportServiceImpl implements ExportService {
|
public class JgdfExportServiceImpl implements ExportService {
|
||||||
|
|
||||||
|
|
||||||
@ -49,24 +49,27 @@ public class JgdfExportServiceImpl implements ExportService {
|
|||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
@Override
|
@Override
|
||||||
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
log.info("价格打分表,ExportParam = {}", JsonUtils.objectToJson(param));
|
||||||
//导出的表格名称
|
//导出的表格名称
|
||||||
String dictName = commonFeignService.exportDictName(param.getId(), "价格打分表");
|
String dictName = commonFeignService.exportDictName(param.getId(), "价格打分表");
|
||||||
|
|
||||||
//查询包
|
//查询包
|
||||||
ProjectSectionVO section = commonFeignService.projectGetSectionById(param.getSectionId());
|
ProjectSectionVO section = commonFeignService.projectGetSectionById(param.getSectionId());
|
||||||
|
log.info("价格打分表 {},查询包信息 {}", param.getAssessRoomId(), JsonUtils.objectToJson(section));
|
||||||
//查询项目
|
//查询项目
|
||||||
ProjectRecordVO proj = commonFeignService.projectGetProjById(section.getProjectId());
|
ProjectRecordVO proj = commonFeignService.projectGetProjById(section.getProjectId());
|
||||||
|
log.info("价格打分表 {},查询项目信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(proj));
|
||||||
//供应商信息
|
//供应商信息
|
||||||
List<BizSupplierRegister> suppliers = commonFeignService.tenderGetSupplierRegisterByRoomId(param.getAssessRoomId());
|
List<BizSupplierRegister> suppliers = commonFeignService.tenderGetSupplierRegisterByRoomId(param.getAssessRoomId());
|
||||||
|
log.info("价格打分表 {},查询供应商信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(suppliers));
|
||||||
//查询报价信息
|
//查询报价信息
|
||||||
List<TfileContentData> prices = commonFeignService.respsGetQuoteByRoomIdAndTurnSort(param);
|
List<TfileContentData> prices = commonFeignService.respsGetQuoteByRoomIdAndTurnSort(param);
|
||||||
|
log.info("价格打分表 {},查询报价信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(prices));
|
||||||
Map<String, TfileContentData> priceMap = prices.stream().collect(Collectors.toMap(TfileContentData::getTendererId, Function.identity(), (o1, o2) -> o1));
|
Map<String, TfileContentData> priceMap = prices.stream().collect(Collectors.toMap(TfileContentData::getTendererId, Function.identity(), (o1, o2) -> o1));
|
||||||
|
|
||||||
//报价评分
|
//报价评分
|
||||||
List<SupplierRegisterPriceScoreVO> priceScores = commonFeignService.exportPrice(param);
|
List<SupplierRegisterPriceScoreVO> priceScores = commonFeignService.exportPrice(param);
|
||||||
|
log.info("价格打分表 {},查询报价评分 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(priceScores));
|
||||||
Map<String, SupplierRegisterPriceScoreVO> priceScoreMap = priceScores.stream().collect(Collectors.toMap(SupplierRegisterPriceScoreVO::getSupplierRegisterId, Function.identity(), (o1, o2) -> o1));
|
Map<String, SupplierRegisterPriceScoreVO> priceScoreMap = priceScores.stream().collect(Collectors.toMap(SupplierRegisterPriceScoreVO::getSupplierRegisterId, Function.identity(), (o1, o2) -> o1));
|
||||||
|
|
||||||
ExcelTable table = new ExcelTable(dictName);
|
ExcelTable table = new ExcelTable(dictName);
|
||||||
@ -81,7 +84,7 @@ public class JgdfExportServiceImpl implements ExportService {
|
|||||||
table.add(new ExcelTr().setExcelTdList(list));
|
table.add(new ExcelTr().setExcelTdList(list));
|
||||||
|
|
||||||
list = new ArrayList<>();
|
list = new ArrayList<>();
|
||||||
list.add(new ExcelTd().setTdValue("招标编号:" + proj.getProjectBizNum()).setCellStyleKey("noBorderLeft12").setIsRowMerge(true).setRowMergeNum(7));
|
list.add(new ExcelTd().setTdValue("招标编号:" + Optional.ofNullable(proj.getAgencyCompanyProjectNum()).orElse(proj.getEbpProjectNumber())).setCellStyleKey("noBorderLeft12").setIsRowMerge(true).setRowMergeNum(7));
|
||||||
table.add(new ExcelTr().setExcelTdList(list));
|
table.add(new ExcelTr().setExcelTdList(list));
|
||||||
|
|
||||||
list = new ArrayList<>();
|
list = new ArrayList<>();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.chinaunicom.mall.ebtp.extend.export.service.impl;
|
package com.chinaunicom.mall.ebtp.extend.export.service.impl;
|
||||||
|
|
||||||
|
import com.chinaunicom.mall.ebtp.common.util.JsonUtils;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.common.ExportCommonFeignService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.common.ExportCommonFeignService;
|
||||||
@ -9,6 +10,7 @@ import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.JuryPrintVO;
|
|||||||
import com.deepoove.poi.XWPFTemplate;
|
import com.deepoove.poi.XWPFTemplate;
|
||||||
import com.deepoove.poi.config.Configure;
|
import com.deepoove.poi.config.Configure;
|
||||||
import com.deepoove.poi.policy.HackLoopTableRenderPolicy;
|
import com.deepoove.poi.policy.HackLoopTableRenderPolicy;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@ -26,6 +28,7 @@ import java.util.Map;
|
|||||||
* 评标委员会签字表
|
* 评标委员会签字表
|
||||||
*/
|
*/
|
||||||
@Service("judgesSign")
|
@Service("judgesSign")
|
||||||
|
@Slf4j
|
||||||
public class JudgesSignImpl implements ExportService {
|
public class JudgesSignImpl implements ExportService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -44,11 +47,13 @@ public class JudgesSignImpl implements ExportService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
log.info("评标委员会签字表,ExportParam = {}", JsonUtils.objectToJson(param));
|
||||||
//项目和招标名称数据
|
//项目和招标名称数据
|
||||||
ProjectSectionVO section = commonFeignService.projectGetSectionById(param.getSectionId());
|
ProjectSectionVO section = commonFeignService.projectGetSectionById(param.getSectionId());
|
||||||
|
log.info("评标委员会签字表 {},查询项目信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(section));
|
||||||
//专家人员数据
|
//专家人员数据
|
||||||
List<JuryPrintVO> list = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
List<JuryPrintVO> list = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
||||||
|
log.info("评标委员会签字表 {},查询专家人员数据 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(list));
|
||||||
ArrayList<Map<String, Object>> maps = new ArrayList<>();
|
ArrayList<Map<String, Object>> maps = new ArrayList<>();
|
||||||
|
|
||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.chinaunicom.mall.ebtp.extend.export.service.impl;
|
package com.chinaunicom.mall.ebtp.extend.export.service.impl;
|
||||||
|
|
||||||
|
import com.chinaunicom.mall.ebtp.common.util.JsonUtils;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.common.ExportCommonFeignService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.common.ExportCommonFeignService;
|
||||||
@ -9,6 +10,7 @@ import com.deepoove.poi.XWPFTemplate;
|
|||||||
import com.deepoove.poi.config.Configure;
|
import com.deepoove.poi.config.Configure;
|
||||||
import com.deepoove.poi.policy.HackLoopTableRenderPolicy;
|
import com.deepoove.poi.policy.HackLoopTableRenderPolicy;
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@ -24,6 +26,7 @@ import java.util.*;
|
|||||||
* 评审专家签到表
|
* 评审专家签到表
|
||||||
*/
|
*/
|
||||||
@Service("judgesSignIn")
|
@Service("judgesSignIn")
|
||||||
|
@Slf4j
|
||||||
public class JudgesSignInImpl implements ExportService {
|
public class JudgesSignInImpl implements ExportService {
|
||||||
@Autowired
|
@Autowired
|
||||||
private TemplateFileService templateFileService;
|
private TemplateFileService templateFileService;
|
||||||
@ -40,9 +43,10 @@ public class JudgesSignInImpl implements ExportService {
|
|||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
@Override
|
@Override
|
||||||
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
log.info("评审专家签到表,ExportParam = {}", JsonUtils.objectToJson(param));
|
||||||
//专家人员数据
|
//专家人员数据
|
||||||
List<JuryPrintVO> list = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
List<JuryPrintVO> list = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
||||||
|
log.info("评标委员会签字表 {},查询专家人员数据 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(list));
|
||||||
ArrayList<Map<String, Object>> maps = new ArrayList<>();
|
ArrayList<Map<String, Object>> maps = new ArrayList<>();
|
||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
Map<String, Object> data = new HashMap<>();
|
Map<String, Object> data = new HashMap<>();
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.chinaunicom.mall.ebtp.extend.export.service.impl;
|
package com.chinaunicom.mall.ebtp.extend.export.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.chinaunicom.mall.ebtp.common.util.JsonUtils;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.common.ExportCommonFeignService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.common.ExportCommonFeignService;
|
||||||
@ -13,6 +14,7 @@ import com.deepoove.poi.XWPFTemplate;
|
|||||||
import com.deepoove.poi.config.Configure;
|
import com.deepoove.poi.config.Configure;
|
||||||
import com.deepoove.poi.policy.HackLoopTableRenderPolicy;
|
import com.deepoove.poi.policy.HackLoopTableRenderPolicy;
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@ -33,6 +35,7 @@ import java.util.stream.Collectors;
|
|||||||
* 评审报告
|
* 评审报告
|
||||||
*/
|
*/
|
||||||
@Service("reviewReport")
|
@Service("reviewReport")
|
||||||
|
@Slf4j
|
||||||
public class ReviewReportImpl implements ExportService {
|
public class ReviewReportImpl implements ExportService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -52,10 +55,10 @@ public class ReviewReportImpl implements ExportService {
|
|||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
@Override
|
@Override
|
||||||
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
log.info("评审报告,ExportParam = {}", JsonUtils.objectToJson(param));
|
||||||
// 项目信息
|
// 项目信息
|
||||||
ProjectRecordVO project = commonFeignService.projectGetProjById(param.getProjectId());
|
ProjectRecordVO project = commonFeignService.projectGetProjById(param.getProjectId());
|
||||||
|
log.info("评审报告 {},查询项目信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(project));
|
||||||
|
|
||||||
String zbfs = "";
|
String zbfs = "";
|
||||||
switch (project.getBidMethodDict()) {
|
switch (project.getBidMethodDict()) {
|
||||||
@ -86,7 +89,7 @@ public class ReviewReportImpl implements ExportService {
|
|||||||
|
|
||||||
//供应商信息
|
//供应商信息
|
||||||
List<BizSupplierRegister> registerList = commonFeignService.tenderGetSupplierRegisterByRoomId(param.getAssessRoomId());
|
List<BizSupplierRegister> registerList = commonFeignService.tenderGetSupplierRegisterByRoomId(param.getAssessRoomId());
|
||||||
|
log.info("初步评审表 {},查询供应商信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(registerList));
|
||||||
//表一
|
//表一
|
||||||
List<Map<String, Object>> list1 = new ArrayList<>();
|
List<Map<String, Object>> list1 = new ArrayList<>();
|
||||||
for (int i = 0; i < registerList.size(); i++) {
|
for (int i = 0; i < registerList.size(); i++) {
|
||||||
@ -101,6 +104,7 @@ public class ReviewReportImpl implements ExportService {
|
|||||||
|
|
||||||
//表二 专家人员数据
|
//表二 专家人员数据
|
||||||
List<JuryPrintVO> memberList = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
List<JuryPrintVO> memberList = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
||||||
|
log.info("评审报告 {},查询专家人员信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(memberList));
|
||||||
ArrayList<Map<String, Object>> list2 = new ArrayList<>();
|
ArrayList<Map<String, Object>> list2 = new ArrayList<>();
|
||||||
String pbwyhzz = null;
|
String pbwyhzz = null;
|
||||||
for (int i = 0; i < memberList.size(); i++) {
|
for (int i = 0; i < memberList.size(); i++) {
|
||||||
@ -132,6 +136,7 @@ public class ReviewReportImpl implements ExportService {
|
|||||||
|
|
||||||
//评审结果表数据
|
//评审结果表数据
|
||||||
List<ResultDetailVO> resultDetails = commonFeignService.rsmsQueryReviewDetailByRoomId(param.getAssessRoomId());
|
List<ResultDetailVO> resultDetails = commonFeignService.rsmsQueryReviewDetailByRoomId(param.getAssessRoomId());
|
||||||
|
log.info("评审报告 {},查询评审结果表数据 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(resultDetails));
|
||||||
Map<String, ResultDetailVO> detailVOMap = resultDetails.stream().collect(Collectors.toMap(ResultDetailVO::getCompanyId, Function.identity(), (o1, o2) -> o1));
|
Map<String, ResultDetailVO> detailVOMap = resultDetails.stream().collect(Collectors.toMap(ResultDetailVO::getCompanyId, Function.identity(), (o1, o2) -> o1));
|
||||||
for (int i = 0; i < registerList.size(); i++) {
|
for (int i = 0; i < registerList.size(); i++) {
|
||||||
BizSupplierRegister register = registerList.get(i);
|
BizSupplierRegister register = registerList.get(i);
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.chinaunicom.mall.ebtp.extend.export.service.impl;
|
package com.chinaunicom.mall.ebtp.extend.export.service.impl;
|
||||||
|
|
||||||
|
import com.chinaunicom.mall.ebtp.common.util.JsonUtils;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParam;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.ExportService;
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.service.common.ExportCommonFeignService;
|
import com.chinaunicom.mall.ebtp.extend.export.service.common.ExportCommonFeignService;
|
||||||
@ -10,6 +11,7 @@ import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.JuryPrintVO;
|
|||||||
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.ReviewConfigCategoryDTO;
|
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.ReviewConfigCategoryDTO;
|
||||||
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.ReviewConfigDetailDTO;
|
import com.chinaunicom.mall.ebtp.extend.feign.entity.rsms.ReviewConfigDetailDTO;
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.poi.ss.usermodel.*;
|
import org.apache.poi.ss.usermodel.*;
|
||||||
import org.apache.poi.ss.util.CellRangeAddress;
|
import org.apache.poi.ss.util.CellRangeAddress;
|
||||||
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
|
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
|
||||||
@ -33,6 +35,7 @@ import java.util.stream.Collectors;
|
|||||||
* 专家个人打分表/评委打分表
|
* 专家个人打分表/评委打分表
|
||||||
*/
|
*/
|
||||||
@Service("zjgr")
|
@Service("zjgr")
|
||||||
|
@Slf4j
|
||||||
public class ZjgrExportServiceImpl implements ExportService {
|
public class ZjgrExportServiceImpl implements ExportService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -48,20 +51,21 @@ public class ZjgrExportServiceImpl implements ExportService {
|
|||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
@Override
|
@Override
|
||||||
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
log.info("专家个人打分表,ExportParam = {}", JsonUtils.objectToJson(param));
|
||||||
//查询项目名称
|
//查询项目名称
|
||||||
ProjectSectionVO section = commonFeignService.projectGetSectionById(param.getSectionId());
|
ProjectSectionVO section = commonFeignService.projectGetSectionById(param.getSectionId());
|
||||||
|
log.info("专家个人打分表 {},查询项目信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(section));
|
||||||
//供应商信息
|
//供应商信息
|
||||||
List<BizSupplierRegister> suppliers = commonFeignService.tenderGetSupplierRegisterByRoomId(param.getAssessRoomId());
|
List<BizSupplierRegister> suppliers = commonFeignService.tenderGetSupplierRegisterByRoomId(param.getAssessRoomId());
|
||||||
|
log.info("专家个人打分表 {},查询供应商信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(suppliers));
|
||||||
//评委
|
//评委
|
||||||
List<JuryPrintVO> members = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
List<JuryPrintVO> members = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
||||||
|
log.info("专家个人打分表 {},查询评委信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(members));
|
||||||
param.setUserList(members.stream().map(JuryPrintVO::getUserId).collect(Collectors.toList()));
|
param.setUserList(members.stream().map(JuryPrintVO::getUserId).collect(Collectors.toList()));
|
||||||
|
|
||||||
//打分数据
|
//打分数据
|
||||||
Map<String, List<ReviewConfigCategoryDTO>> map = commonFeignService.exportDetail(param);
|
Map<String, List<ReviewConfigCategoryDTO>> map = commonFeignService.exportDetail(param);
|
||||||
|
log.info("专家个人打分表 {},查询打分数据 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(map));
|
||||||
//列头
|
//列头
|
||||||
StringBuilder titles0 = new StringBuilder("分类,类别名称,标准说明,分值");
|
StringBuilder titles0 = new StringBuilder("分类,类别名称,标准说明,分值");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user