|
|
|
@ -351,6 +351,10 @@ public class CashCollectionController { |
|
|
|
if (collection.getPaymentCurrency() != null) { |
|
|
|
collection.setPaymentCurrency(languageTranslationUtil.translate(collection.getPaymentCurrency(), lang)); |
|
|
|
} |
|
|
|
// 翻译数量单位 |
|
|
|
if (collection.getNumUnit() != null) { |
|
|
|
collection.setNumUnit(languageTranslationUtil.translate(collection.getNumUnit(), lang)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -436,6 +440,13 @@ public class CashCollectionController { |
|
|
|
cashCollection.getMarketName(), languageCode); |
|
|
|
cashCollection.setMarketName(chineseMarketName); |
|
|
|
} |
|
|
|
|
|
|
|
// 转换数量单位 |
|
|
|
if (cashCollection.getNumUnit() != null && !cashCollection.getNumUnit().isEmpty()) { |
|
|
|
String chineseNumUnit = translationService.findChineseSimplifiedByTranslation( |
|
|
|
cashCollection.getNumUnit(), languageCode); |
|
|
|
cashCollection.setNumUnit(chineseNumUnit); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -513,6 +524,13 @@ public class CashCollectionController { |
|
|
|
cashCollection.getMarketName(), languageCode); |
|
|
|
cashCollection.setMarketName(chineseMarketName); |
|
|
|
} |
|
|
|
|
|
|
|
// 转换数量单位 |
|
|
|
if (cashCollection.getNumUnit() != null && !cashCollection.getNumUnit().isEmpty()) { |
|
|
|
String chineseNumUnit = translationService.findChineseSimplifiedByTranslation( |
|
|
|
cashCollection.getNumUnit(), languageCode); |
|
|
|
cashCollection.setNumUnit(chineseNumUnit); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|