| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_community.model.dos.SysConfDO; |
| | | import com.panzhihua.service_community.service.SysConfService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | |
| | | |
| | | @GetMapping("get") |
| | | public R get(@RequestParam("code") String code) { |
| | | SysConfDO sysConfDO = sysConfService.getOne(new QueryWrapper<SysConfDO>().lambda().eq(SysConfDO::getCode,code)); |
| | | SysConfDO sysConfDO = |
| | | sysConfService.getOne(new QueryWrapper<SysConfDO>().lambda().eq(SysConfDO::getCode, code)); |
| | | String value = Constants.ZZ_APP_TAG_LIST; |
| | | if(sysConfDO != null){ |
| | | if (sysConfDO != null) { |
| | | value = sysConfDO.getValue(); |
| | | } |
| | | return R.ok(value); |