fix:修复添加行程导致同步的问题,修复因缓存导致无法查询可同步行程的问题

This commit is contained in:
lulz1 2024-06-28 23:03:05 +08:00
parent c2e172aff3
commit 8ad0807067
3 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ public class OrderApplicationService {
routeRepository.save(routeOrder); // 仅在所有操作完成后保存一次
}
//如果行程变更成功自动执行同步功能
Command.of(RouteAutoSyncCommand.class).route(routeOrder).async().sendToQueue();
// Command.of(RouteAutoSyncCommand.class).route(routeOrder).async().sendToQueue();
}
@Transactional

View File

@ -20,7 +20,6 @@ public class UserDepartmentInfo implements Serializable {
@Id
private Long id;
private Long userId;
private Integer userKey;
private String companyCode;
private String companyName;
private String departmentCodeOne;

View File

@ -199,6 +199,7 @@ public class LegDomainService {
// 过滤Leg items
List<Leg> filteredLegItems = legItems.stream()
.filter(it -> !it.getLegType().equals(LEG_TYPE_OTHER) && it.legIsInternal())
.peek(Leg::reloadStatus)
.filter(it -> it.getLegApprovalStatus().equals(LEG_APPROVAL_STATUS_NOT))
.toList();