diff --git a/src/main/java/com/chint/application/out/LoginController.java b/src/main/java/com/chint/application/out/LoginController.java index 1f1e7198..a5ca4d37 100644 --- a/src/main/java/com/chint/application/out/LoginController.java +++ b/src/main/java/com/chint/application/out/LoginController.java @@ -22,8 +22,8 @@ import com.chint.infrastructure.util.BaseContext; import com.chint.infrastructure.util.Digest; import com.chint.infrastructure.util.Result; import com.chint.interfaces.rest.ctrip.CTripUserSaveRequest; -import com.chint.interfaces.rest.ly.LYUserRequest; import com.chint.interfaces.rest.data_center.user.UserHttpRequest; +import com.chint.interfaces.rest.ly.LYUserRequest; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; @@ -31,6 +31,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.*; import java.time.LocalDateTime; +import java.util.concurrent.CompletableFuture; @Slf4j @RestController @@ -159,8 +160,10 @@ public class LoginController { private void loginEventBoarder(User user) { - Command.of(UserLoginCommand.class).user(user).sendToQueue(); - user.setSyncTime(LocalDateTime.now()); - userRepository.save(user); + CompletableFuture.runAsync(() -> { + Command.of(UserLoginCommand.class).user(user).sendToQueue(); + user.setSyncTime(LocalDateTime.now()); + userRepository.save(user); + }); } } diff --git a/src/main/java/com/chint/domain/aggregates/order/RouteRequest.java b/src/main/java/com/chint/domain/aggregates/order/RouteRequest.java index 2a2fc6df..a8033ad8 100644 --- a/src/main/java/com/chint/domain/aggregates/order/RouteRequest.java +++ b/src/main/java/com/chint/domain/aggregates/order/RouteRequest.java @@ -33,8 +33,6 @@ public class RouteRequest implements Serializable, EventManageable { private Long routeId; - private Long routeOrderKey; - private String routeRequestNo; private String supplier;