|
@@ -721,7 +721,7 @@ public class ProdPlanServiceImpl extends ServiceImpl<ProdPlanMapper, ProdPlan> i
|
|
|
anchor.setAnchorType(ClientAnchor.AnchorType.MOVE_AND_RESIZE);
|
|
|
|
|
|
XSSFPicture picture = (XSSFPicture)drawing.createPicture(anchor, pictureIdx);
|
|
|
- picture.resize();
|
|
|
+ picture.resize(16, 30);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -778,6 +778,7 @@ public class ProdPlanServiceImpl extends ServiceImpl<ProdPlanMapper, ProdPlan> i
|
|
|
for (int i = 0; i < headers.length; i++) {
|
|
|
Cell cell = headerRow.createCell(startColumn+i);
|
|
|
cell.setCellValue(headers[i]);
|
|
|
+ darkHeaderStyle.setWrapText(true);
|
|
|
cell.setCellStyle(darkHeaderStyle);
|
|
|
}
|
|
|
|
|
@@ -1019,6 +1020,10 @@ public class ProdPlanServiceImpl extends ServiceImpl<ProdPlanMapper, ProdPlan> i
|
|
|
excelBytes = outputStream.toByteArray();
|
|
|
workbook.close();
|
|
|
Boolean success = EmailUtil.sendEmailWithPicAndExcelAttachment(contactsTO, contactsCC, "生产异常追踪表_" + date, "生产异常追踪表_" + date, pie, excelBytes);
|
|
|
+ if(success) {
|
|
|
+ prodPlan.setSendState(1);
|
|
|
+ this.updateById(prodPlan);
|
|
|
+ }
|
|
|
return success;
|
|
|
} catch (IOException e) {
|
|
|
throw new RuntimeException(e);
|