|
@@ -25,7 +25,6 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.context.ApplicationContext;
|
|
import org.springframework.context.ApplicationContext;
|
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
import org.springframework.data.domain.Pageable;
|
|
|
-import org.springframework.scheduling.annotation.Async;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
@@ -268,7 +267,6 @@ public class AssetService {
|
|
|
assetRepo.save(asset);
|
|
assetRepo.save(asset);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Async
|
|
|
|
|
public void transfer(Asset asset, BigDecimal price, User toUser, String reason, Long orderId) {
|
|
public void transfer(Asset asset, BigDecimal price, User toUser, String reason, Long orderId) {
|
|
|
log.info("转让藏品 fromAssetId={} toUser={}", asset.getId(), toUser.getId());
|
|
log.info("转让藏品 fromAssetId={} toUser={}", asset.getId(), toUser.getId());
|
|
|
Asset newAsset = new Asset();
|
|
Asset newAsset = new Asset();
|