Browse Source

# 两票编号生成问题

zhongwei
haungxing 1 year ago
parent
commit
c5ed47808d
  1. 2
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/service/impl/OfflineTicketServiceImpl.java

2
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/service/impl/OfflineTicketServiceImpl.java

@ -61,6 +61,7 @@ public class OfflineTicketServiceImpl extends BaseServiceImpl<WorkTicketInfoMapp
private final IWorkTicketContentService contentService; private final IWorkTicketContentService contentService;
private final IUserClient userClient; private final IUserClient userClient;
private final IWorkTicketFlowService workTicketFlowService; private final IWorkTicketFlowService workTicketFlowService;
private Lock lock = new ReentrantLock();
/** /**
* 线下工作票开票 * 线下工作票开票
@ -175,7 +176,6 @@ public class OfflineTicketServiceImpl extends BaseServiceImpl<WorkTicketInfoMapp
}); });
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyMM"); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyMM");
String yearMonth = YearMonth.now().format(formatter); String yearMonth = YearMonth.now().format(formatter);
Lock lock = new ReentrantLock();
lock.lock(); lock.lock();
try { try {
LocalDateTime date = LocalDateTime.now(); LocalDateTime date = LocalDateTime.now();

Loading…
Cancel
Save