Commit f84eb76a authored by 王向伟's avatar 王向伟

修复业务类型为空时存"null"的问题

parent b786a5c7
......@@ -9,6 +9,7 @@ import cn.quantgroup.cashloanflowboss.spi.clf.model.EncType;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import cn.quantgroup.cashloanflowboss.api.channel.entity.ChannelConf;
import cn.quantgroup.cashloanflowboss.api.channel.model.ChannelConfAddModel;
......@@ -77,7 +78,12 @@ public class ChannelConfUtil {
channelConfiguration.setMd5Key(basicInfo.getMd5Key());
channelConfiguration.setSpiderCenterChannelCode(basicInfo.getRiskCode());
channelConfiguration.setSpiderCenterMerchantChannelCode(basicInfo.getAuthCode());
if(Objects.nonNull(basicInfo.getBizType())){
channelConfiguration.setXyqbProductId(basicInfo.getBizType()+"");
}else {
channelConfiguration.setXyqbProductId(null);
}
return channelConfiguration;
}
......
......@@ -221,11 +221,9 @@ public class OrderServiceImpl implements OrderService {
BigDecimal fundRate = getFundRate(orderMapping.getApplyNo());
String fundFormat = null;
if(Objects.isNull(fundRate)){
fundFormat = String.format(OrderUtil.financeProductsFormat, approveVo.getAmount(), approveVo.getAmount(),
approveVo.getPeriod(), fundId, financeProduct.getId());
}else {
fundFormat = String.format(OrderUtil.financeProductsWithFundRateFormat, approveVo.getAmount(), approveVo.getAmount(),
approveVo.getPeriod(), fundId, fundRate.toString(),financeProduct.getId());
}
......
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