| | |
| | | import com.xcong.excoin.rabbit.pricequeue.OrderModel; |
| | | import com.xcong.excoin.rabbit.producer.OrderProducer; |
| | | import com.xcong.excoin.utils.CalculateUtil; |
| | | import com.xcong.excoin.utils.ThreadPoolUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.context.annotation.DependsOn; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | |
| | | * @author helius |
| | | */ |
| | | @Slf4j |
| | | @DependsOn("springContextHolder") |
| | | @Component |
| | | @ConditionalOnProperty(prefix = "app", name = "newest-price-update-job", havingValue = "true") |
| | | public class OrderProducerInit { |
| | |
| | | memberEntity = memberDao.selectById(memberId); |
| | | } |
| | | |
| | | CalculateUtil.getForceSetPriceForWhole(symbol, memberEntity); |
| | | // ThreadPoolUtils.sendWholeForceClosingPrice(symbol, memberEntity); |
| | | CalculateUtil.getForceSetPriceForWhole(null, memberEntity); |
| | | } |
| | | } |
| | | |