mitao
2025-03-13 dba9034024de73ebf8d1184b53ec9a559c1c12c6
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomConfigServiceImpl.java
@@ -339,10 +339,11 @@
    /**
     * 保存保证金退还
     */
    @Override
    @Transactional
    public void saveRefundOfDeposit(String refundOfDeposit) {
        CustomConfig wishDescription = getCustomConfigByKey(
                ConfigEnum.WISH_DESCRIPTION.getKey()).orElseGet(() -> {
                ConfigEnum.REFUND_OF_DEPOSIT.getKey()).orElseGet(() -> {
            CustomConfig customConfig = new CustomConfig();
            customConfig.setConfigKey(ConfigEnum.REFUND_OF_DEPOSIT.getKey());
            customConfig.setConfigName(ConfigEnum.REFUND_OF_DEPOSIT.getKeyName());
@@ -357,7 +358,7 @@
    public String getRefundOfDeposit() {
        AtomicReference<String> refundOfDeposit = new AtomicReference<>("");
        getCustomConfigByKey(
                ConfigEnum.WISH_DESCRIPTION.getKey()).ifPresent(
                ConfigEnum.REFUND_OF_DEPOSIT.getKey()).ifPresent(
                        customConfig ->
                                refundOfDeposit.set(customConfig.getConfigValue())
        );