Browse Source

删除注释的信息

zhongwei
段飞宇 1 year ago
parent
commit
1cff3d9669
  1. 10
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java
  2. 1
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/utils/WordHelper.java
  3. 32
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/utils/PdfUtils.java

10
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java

@ -535,10 +535,10 @@ public class TicketProcessServiceImpl implements TicketProcessService {
log.info("获取启动流程数据 : {}", processInstanceContainNameByKey);
Duration between = Duration.between(start, Instant.now());
System.out.println("================================================================");
System.err.println("耗时: " + (between.getSeconds()) + "秒");
System.err.println("耗时: " + (between.toMillis()) + "毫秒");
System.out.println("================================================================");
log.info("================================================================");
log.info("耗时: " + (between.getSeconds()) + "秒");
log.info("耗时: " + (between.toMillis()) + "毫秒");
log.info("================================================================");
}
@ -774,8 +774,6 @@ public class TicketProcessServiceImpl implements TicketProcessService {
String url = "template/" + workTicketStatus;
XWPFDocument doc = WordExportUtil.exportWord07(url, workTicketInfoMap);
log.info("当前系统版本是:{}", os);
//String name = "D:/导出excel/电气第一种工作票模版.docx";
//FileOutputStream fos = new FileOutputStream(name);
doc.write(response.getOutputStream());
} else {
String url = TicketConstant.TICKET_LIUNX_PATH + "/" + workTicketStatus;

1
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/utils/WordHelper.java

@ -216,7 +216,6 @@ public class WordHelper extends StringUtils {
*/
public static void isEntryMap(Map<String, Object> result, String fieldName, String key, Object value, int count) {
if (fieldName.equals(key)) {
// Object newValue = Optional.ofNullable(value).orElse("\u00A0" + printSpace(count));
Object newValue = StringUtils.isNoneBlank(toString(value).trim()) ? value : "\u00A0" + printSpace(count);
result.put(key, newValue);
} else {

32
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/utils/PdfUtils.java

@ -257,36 +257,8 @@ public class PdfUtils {
result.put(StringUtil.isNoneBlank(defaultValue.name()) ? defaultValue.name() : field.getName(),
ObjectUtil.isNotEmpty(defaultValue.value()) ? defaultValue.value() : value);
} else {
// if ("initialPrincipalName".equals(field.getName())
// || "principalChangeTime".equals(field.getName())
// || "principalName".equals(field.getName())
// || "jobReceiver".equals(field.getName())
// || "jobReceiverTime".equals(field.getName())
// || "watchPrincipalEndTime".equals(field.getName())
// || "licenseTime".equals(field.getName())
// || "licensorName".equals(field.getName())
// || "signerDateTime".equals(field.getName())
// || "classGroupName".equals(field.getName())
// || "code".equals(field.getName())
// || "signerName".equals(field.getName())
// || "watchPrincipalName".equals(field.getName())
// || "projectName".equals(field.getName()))
// {
// result.put(field.getName(), Optional.ofNullable(value).orElse("\u00A0 "));
//
// } else if (
// "groundNum".equals(field.getName()) ||
// "dismantleNum".equals(field.getName()) ||
// "retainNum".equals(field.getName())
//
// ) {
// result.put(field.getName(), Optional.ofNullable(value).orElse("\u00A0 "));
// } else {
//如果导出word为null会出现{{ ,value设置"\u00A0"
result.put(field.getName(), Optional.ofNullable(value).orElse(""));
//}
//如果导出word为null会出现{{ ,value设置"\u00A0"
result.put(field.getName(), Optional.ofNullable(value).orElse(""));
}
});
}

Loading…
Cancel
Save