fix:修复添加行程出现的缓存问题
This commit is contained in:
parent
b7e1734ec7
commit
75152cea8a
|
@ -103,7 +103,8 @@ public class RouteCacheService {
|
|||
deleteRouteIdCacheForUser(currentUser.getEmployeeNo(), routeId);
|
||||
return null;
|
||||
}
|
||||
return routeCacheManage.cacheRouteOrder(routeOrder.reloadStatus());
|
||||
updateRouteCache(routeOrder);
|
||||
return routeOrder;
|
||||
}
|
||||
return routeOrder;
|
||||
}
|
||||
|
@ -189,7 +190,7 @@ public class RouteCacheService {
|
|||
List<Long> routeIds = routeCacheManage.getRouteIdsByEmployeeNo(userId, null, null);
|
||||
if (routeIds == null || routeIds.size() <= 2) {
|
||||
List<RouteOrder> routeOrders = preloadUserRoutes(userId);
|
||||
routeIds = routeOrders.stream().map(RouteOrder::getRouteId).toList();
|
||||
routeIds = routeOrders.stream().filter(Objects::nonNull).map(RouteOrder::getRouteId).toList();
|
||||
}
|
||||
if (!routeIds.contains(routeId)) {
|
||||
List<Long> newRouteIds = new ArrayList<>(routeIds);
|
||||
|
|
|
@ -250,7 +250,7 @@ public class CTripTest {
|
|||
@Test
|
||||
void search() {
|
||||
BaseContext.setCurrentUser(user);
|
||||
SearchOrderResponse response = orderSearchRequest.searchOrderResponseByOrderId("33513622716");
|
||||
SearchOrderResponse response = orderSearchRequest.searchOrderResponseByOrderId("32158848688");
|
||||
System.out.println(response);
|
||||
}
|
||||
|
||||
|
|
|
@ -812,7 +812,7 @@ public class LYTest {
|
|||
|
||||
@Test
|
||||
void searchFlight() {
|
||||
FlightOrderResponse flightOrderDetail = lySearchRequest.getFlightOrderDetail("DF24041870728743261");
|
||||
FlightOrderResponse flightOrderDetail = lySearchRequest.getFlightOrderDetail("DF24061877666447239");
|
||||
Gson gson = new Gson();
|
||||
String json = gson.toJson(flightOrderDetail);
|
||||
System.out.println(json);
|
||||
|
|
|
@ -313,7 +313,7 @@ class RouteApplicationTests {
|
|||
|
||||
@Test
|
||||
void loginSign() {
|
||||
String sfno = "230615020";
|
||||
String sfno = "211213002";
|
||||
String syscode = "FSSC";
|
||||
String billcode = "CLSQ240225000099";
|
||||
String companycode = "正泰集团股份有限公司";
|
||||
|
|
Loading…
Reference in New Issue