From 444a36ac307d1c9863a5f1dd38368598b089359f Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期一, 17 六月 2024 10:49:13 +0800 Subject: [PATCH] 提交【管理后台】订单管理-开票申请相关接口 --- ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomConfigServiceImpl.java | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomConfigServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomConfigServiceImpl.java index 1a43f2c..ab04e64 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomConfigServiceImpl.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomConfigServiceImpl.java @@ -60,7 +60,7 @@ private Optional<CustomConfig> getCustomConfigByKey(String key) { return this.lambdaQuery() - .eq(CustomConfig::getConfigType, key) + .eq(CustomConfig::getConfigKey, key) .eq(CustomConfig::getDelFlag, 0).oneOpt(); } @@ -111,6 +111,11 @@ this.saveOrUpdate(orderDescription); } + /** + * 售后设置 + * + * @param dto 售后设置对象 + */ @Override @Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRES_NEW) public void saveAfterSaleSetting(MgtAfterSaleSettingDTO dto) { @@ -133,4 +138,19 @@ receiverNameConfig.setConfigValue(value); this.saveOrUpdate(receiverNameConfig); } + + /** + * 获取售后设置 + * + * @return List<CustomConfigVO> + */ + @Override + public List<CustomConfigVO> getAfterSaleSetting() { + List<CustomConfig> list = this.lambdaQuery() + .in(CustomConfig::getConfigType, ConfigEnum.RETURN_ADDRESS_USER_NAME, + ConfigEnum.RETURN_ADDRESS_USER_PHONE, + ConfigEnum.RETURN_ADDRESS_USER_ADDRESS, ConfigEnum.RETURN_CYCLE) + .eq(CustomConfig::getDelFlag, 0).list(); + return BeanUtils.copyList(list, CustomConfigVO.class); + } } -- Gitblit v1.7.1