Commit 09c0845d authored by 徐俊's avatar 徐俊
parents fb5a7d88 d320d334
...@@ -156,6 +156,7 @@ public class ComProjectTaskController extends BaseController<ComProjectTaskServi ...@@ -156,6 +156,7 @@ public class ComProjectTaskController extends BaseController<ComProjectTaskServi
// WordUtils.getHtmlContent(dto, "C:\\Users\\kylin\\Desktop\\导出Pdf\\output.docx"); // WordUtils.getHtmlContent(dto, "C:\\Users\\kylin\\Desktop\\导出Pdf\\output.docx");
// 生成PDF文件字节数组 // 生成PDF文件字节数组
// byte[] pdfBytes = TaskInfoToPDFUtil.createContractPdf(dto);
byte[] pdfBytes = TaskToPDF.createContractPdf(dto); byte[] pdfBytes = TaskToPDF.createContractPdf(dto);
// 设置响应头 // 设置响应头
response.setContentType("application/pdf"); response.setContentType("application/pdf");
......
...@@ -145,7 +145,7 @@ public class ComExpertSpecServiceImpl extends BaseServiceImpl<ComExpertSpecDAO, ...@@ -145,7 +145,7 @@ public class ComExpertSpecServiceImpl extends BaseServiceImpl<ComExpertSpecDAO,
List<ComProjectGroupDetailDTO> finalMembers1 = members; List<ComProjectGroupDetailDTO> finalMembers1 = members;
list.forEach((e) -> { list.forEach((e) -> {
boolean isDisabled = false; boolean isDisabled = false;
String description = e.getSex() + "/" + AgeUtil.getResidentAge(e.getBirthday()) + "岁/" + e.getWorkUnit(); String description = e.getTreeCode() + "/"+e.getSex() + "/" + AgeUtil.getResidentAge(e.getBirthday()) + "岁/" + e.getWorkUnit();
isDisabled = units.contains(e.getUnitId()); isDisabled = units.contains(e.getUnitId());
// 检查专家的证件号是否在 members 列表中 // 检查专家的证件号是否在 members 列表中
if (!isDisabled) if (!isDisabled)
......
...@@ -1041,9 +1041,9 @@ public class TaskInfoToPDFUtil { ...@@ -1041,9 +1041,9 @@ public class TaskInfoToPDFUtil {
valueCell.setPadding(5f); valueCell.setPadding(5f);
valueCell.setMinimumHeight(height); valueCell.setMinimumHeight(height);
valueCell.setVerticalAlignment(vertical); valueCell.setVerticalAlignment(vertical);
valueCell.setHorizontalAlignment(horizontal); valueCell.setHorizontalAlignment(horizontal);// 设置边框宽度
valueCell.setBorderWidth(0.1f); // 设置边框宽度
valueCell.setBorderColor(new BaseColor(0, 0, 0)); valueCell.setBorderColor(new BaseColor(0, 0, 0));
// valueCell.setBorderWidth(0.5f); // 设置边框宽度
table.addCell(valueCell); table.addCell(valueCell);
} }
...@@ -1057,7 +1057,8 @@ public class TaskInfoToPDFUtil { ...@@ -1057,7 +1057,8 @@ public class TaskInfoToPDFUtil {
valueCell.setMinimumHeight(height); valueCell.setMinimumHeight(height);
valueCell.setVerticalAlignment(Element.ALIGN_TOP); valueCell.setVerticalAlignment(Element.ALIGN_TOP);
valueCell.setHorizontalAlignment(Element.ALIGN_LEFT); valueCell.setHorizontalAlignment(Element.ALIGN_LEFT);
valueCell.setBorderWidth(0.5f); // 设置边框宽度 valueCell.setCellEvent(new UniformBorderEvent());
// valueCell.setBorderWidth(0.5f); // 设置边框宽度
if (Objects.nonNull(valueColspan)) if (Objects.nonNull(valueColspan))
valueCell.setColspan(valueColspan); valueCell.setColspan(valueColspan);
table.addCell(valueCell); table.addCell(valueCell);
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<select id="getExpertListByExpertSpecIds" resultType="com.yiboshi.science.param.dto.ComExpertDTO"> <select id="getExpertListByExpertSpecIds" resultType="com.yiboshi.science.param.dto.ComExpertDTO">
select distinct a.expert_id id,c.person_name,c.cert_id,c.sex,c.birthday,e.id unit_id, select distinct a.expert_id id,c.person_name,c.cert_id,c.sex,c.birthday,e.id unit_id,
(case when e.unit_name is null then c.work_unit else e.unit_name end) as work_unit (case when e.unit_name is null then c.work_unit else e.unit_name end) as work_unit,d.tree_code
from com_expert_spec a from com_expert_spec a
left join com_expert b on a.expert_id=b.id left join com_expert b on a.expert_id=b.id
left join com_person c on b.person_id=c.id left join com_person c on b.person_id=c.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment