Commit 765cfb29 authored by 王向伟's avatar 王向伟

多订单渠道改为apollo配置

parent dd9003f9
......@@ -50,10 +50,13 @@ import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.PostConstruct;
import javax.persistence.criteria.Predicate;
import java.math.BigDecimal;
import java.util.*;
import java.util.concurrent.ConcurrentMap;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* function:
......@@ -66,6 +69,9 @@ import java.util.concurrent.ConcurrentMap;
@Service
public class OrderServiceImpl implements OrderService {
//多订单渠道配置
@Value("${multiple.order.channels}")
private String multipleOrderChannel;
@Autowired
private OptHistoryLogServiceImpl optHistoryLogService;
......@@ -102,6 +108,13 @@ public class OrderServiceImpl implements OrderService {
private static final int CONSCONT_STATUS = 2;
private List<Long> channels;
@PostConstruct
public void init(){
channels = Stream.of(multipleOrderChannel.split(",")).map(Long::valueOf).collect(Collectors.toList());
}
@Override
public Page<OrderVo> orderList(Long channelId, String channelOrderNo, String applyNo, Long loanId, Integer pageNumber, Integer pageSize) {
......@@ -215,7 +228,7 @@ public class OrderServiceImpl implements OrderService {
}
QuotaProduct quotaProduct = null;
Map<String, Object> data = null;
if (orderMapping.getRegisteredFrom().equals(159886L)) {
if (channels.contains(orderMapping.getRegisteredFrom())) {
data = getApproveObjectMap(approveVo, orderMapping, xUser, fundFormat, 9);
}else {
......@@ -304,7 +317,7 @@ public class OrderServiceImpl implements OrderService {
}
if (clfChannelConfiguration.getRegisteredFrom().equals(159886L)) {//乐信渠道 bizType直接为9
if (channels.contains(clfChannelConfiguration.getRegisteredFrom())) {//乐信渠道 bizType直接为9
result = clothoCenterService.orderAuditNotify(xUser.getUuid(), orderMapping.getLoanId(), true, 9);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment