Browse Source

已解决每个环节都写了一次工作人许可补充

zhongwei
段飞宇 2 years ago
parent
commit
245c0c0b98
  1. 6
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java

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

@ -390,7 +390,7 @@ public class TicketProcessServiceImpl implements TicketProcessService {
//工作票危险点分析及控制措施票
if (workTicket.getIsHazard()) {
if (workTicket.getIsHazard() && "签发人签发".equals(response.getTaskName())) {
List<TicketInfoDanger> ticketInfoDangers = workTicketVo.getTicketInfoDangers();
if (CollectionUtils.isNotEmpty(ticketInfoDangers)) {
List<TicketInfoDanger> collect = ticketInfoDangers.stream().map(item -> {
@ -399,8 +399,6 @@ public class TicketProcessServiceImpl implements TicketProcessService {
}).collect(Collectors.toList());
System.out.println("工作票危险点分析及控制措施票 : " + collect);
ticketInfoDangerService.saveBatch(collect);
}
}
@ -854,7 +852,7 @@ public class TicketProcessServiceImpl implements TicketProcessService {
addFile(prefix, TicketConstant.SECURE_PAGE, docFileList);
}
//危险点分析与预控措施票 (true,展示附件,false,不展示附件)
if (workTicket.getIsSafety()) {
if (workTicket.getIsHazard()) {
addFile(prefix, TicketConstant.SAFETY_PAGE, docFileList);
}
//动火工作票 (true,展示附件,false,不展示附件)

Loading…
Cancel
Save