Browse Source

fix: 工作票导出勾选图标异常问题

zhongwei
liwen 6 months ago
parent
commit
8f79ca942d
  1. 10
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/FirstWorkTicketServiceImpl.java
  2. BIN
      hzims-service/ticket/src/main/resources/template/电气第一种工作票模版.docx

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

@ -370,13 +370,11 @@ public class FirstWorkTicketServiceImpl extends ServiceImpl<WorkTicketInfoMapper
return result;
}).collect(Collectors.toList());
params.put("ticketInfoDangers", dangerList);
params.put("isSafety", workTicketInfoEntity.getIsSafety());
params.put("isHazard", workTicketInfoEntity.getIsHazard());
params.put("isRailway", workTicketInfoEntity.getIsRailway());
params.put("isLimited", workTicketInfoEntity.getIsLimited());
params.put("isSafety", workTicketInfoEntity.getIsSafety() ? "☑" : "□");
params.put("isHazard", workTicketInfoEntity.getIsHazard() ? "☑" : "□");
params.put("isRailway", workTicketInfoEntity.getIsRailway() ? "☑" : "□");
params.put("isLimited", workTicketInfoEntity.getIsLimited() ? "☑" : "□");
params.put("isStart", workTicketInfoEntity.getIsStart());
params.put("isTestTrue", true);
params.put("isTestFalse", false);
// 许可人许可环节
if(ObjectUtil.isNotEmpty(workTicketInfoEntity.getLicenseTime())) {
String licensorName = StringUtil.isNotBlank(workTicketInfoEntity.getLicensorName()) && Func.isNotEmpty(workTicketInfoEntity.getLicensorName()) ?

BIN
hzims-service/ticket/src/main/resources/template/电气第一种工作票模版.docx

Binary file not shown.
Loading…
Cancel
Save