| | |
| | | package com.ruoyi.other.controller; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.domain.AjaxResult; |
| | | import com.ruoyi.common.log.annotation.Log; |
| | | import com.ruoyi.common.log.enums.BusinessType; |
| | | import com.ruoyi.common.log.enums.OperatorType; |
| | | import com.ruoyi.common.security.annotation.Logical; |
| | | import com.ruoyi.common.security.annotation.RequiresPermissions; |
| | | import com.ruoyi.other.api.domain.TSystemConfiguration; |
| | |
| | | systemConfigurationService.saveOrUpdate(systemConfiguration); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取客服电话 |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/getServerPhone") |
| | | public R<String> getServerPhone(){ |
| | | TSystemConfiguration one = systemConfigurationService.getOne(new LambdaQueryWrapper<TSystemConfiguration>().eq(TSystemConfiguration::getType, 1)); |
| | | if(null != one){ |
| | | return R.ok(JSON.parseObject(one.getContent()).getString("phone")); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
| | | |