瀏覽代碼

修改汇率

sadd 6 年之前
父節點
當前提交
6289b79eb1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/bjlt/spider/utils/LoopCommonUtils.java

+ 2 - 2
src/main/java/com/bjlt/spider/utils/LoopCommonUtils.java

@@ -70,8 +70,8 @@ public class LoopCommonUtils {
 		Double exchangeRate = ExchangeRateInstance.getInstance().getExchangeRate(currency);
 		if(ToolUtils.isEmpty(exchangeRate)){
 			ScExchangeRate scExchangeRate = new ScExchangeRate();
-			scExchangeRate.setExchangeCurrency(currency);
-			scExchangeRate.setForeCurrency("CNY");
+			scExchangeRate.setExchangeCurrency("CNY");
+			scExchangeRate.setForeCurrency(currency);
 			scExchangeRate.setGroupId("1");
 			List<ScExchangeRate> scExchangeRates = scExchangeRateDao.listScExchangeRate(scExchangeRate);
 			Double finalRate =null;