| | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | import java.util.concurrent.atomic.AtomicReference; |
| | | import java.util.stream.Collectors; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Propagation; |
| | |
| | | wishDescription.setConfigValue(refundOfDeposit); |
| | | saveOrUpdate(wishDescription); |
| | | } |
| | | |
| | | @Override |
| | | public String getRefundOfDeposit() { |
| | | AtomicReference<String> refundOfDeposit = new AtomicReference<>(""); |
| | | getCustomConfigByKey( |
| | | ConfigEnum.WISH_DESCRIPTION.getKey()).ifPresent( |
| | | customConfig -> |
| | | refundOfDeposit.set(customConfig.getConfigValue()) |
| | | ); |
| | | return refundOfDeposit.get(); |
| | | } |
| | | } |