diff --git a/src/main/java/com/example/demo/controller/cash/CashCollectionController.java b/src/main/java/com/example/demo/controller/cash/CashCollectionController.java index 799e897..5f3e6b0 100644 --- a/src/main/java/com/example/demo/controller/cash/CashCollectionController.java +++ b/src/main/java/com/example/demo/controller/cash/CashCollectionController.java @@ -296,6 +296,10 @@ public class CashCollectionController { if (collection.getReceivedMarket() != null) { collection.setReceivedMarket(languageTranslationUtil.translate(collection.getReceivedMarket(), lang)); } + // 翻译支付币种 + if (collection.getPaymentCurrency() != null) { + collection.setPaymentCurrency(languageTranslationUtil.translate(collection.getPaymentCurrency(), lang)); + } } } diff --git a/src/main/java/com/example/demo/controller/cash/CashRefundController.java b/src/main/java/com/example/demo/controller/cash/CashRefundController.java index 0406332..1a1115a 100644 --- a/src/main/java/com/example/demo/controller/cash/CashRefundController.java +++ b/src/main/java/com/example/demo/controller/cash/CashRefundController.java @@ -440,6 +440,14 @@ public class CashRefundController { if (dto.getPayType() != null) { dto.setPayType(languageTranslationUtil.translate(dto.getPayType(), lang)); } + // 翻译支付币种 + if (dto.getPaymentCurrency() != null) { + dto.setPaymentCurrency(languageTranslationUtil.translate(dto.getPaymentCurrency(), lang)); + } + // 翻译收款币种 + if (dto.getReceivedCurrency() != null) { + dto.setReceivedCurrency(languageTranslationUtil.translate(dto.getReceivedCurrency(), lang)); + } } } }