修复推送回复无法成功的bug

This commit is contained in:
lulz1 2024-03-13 21:44:47 +08:00
parent 10071b2c4c
commit cba5af2478
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,9 @@ public class RouteRepositoryImpl implements RouteRepository {
@Override
public RouteOrder save(RouteOrder routeOrder) {
if(routeOrder.getRouteId() != null){
routeCacheService.invalidateRouteCache(routeOrder.getRouteId());
}
RouteOrder save = jdbcRouteRepository.save(routeOrder);
Long routeId = save.getRouteId();
routeCacheService.invalidateRouteCache(routeId);