Commit a599964b8311d72d1698dd9305b6588bd594b283
1 parent
8a638185
config(servers): 更新服务器配置中的域名地址
- 将 IoT 设备主机地址从 jichengshanshui.com.cn 更改为 fangshanparking.com - 更新应用配置中多个 API 接口的域名地址 - 修改 SSO 单点登录相关 URL 配置 - 更新微信公众号接口调用地址 - 替换资源服务器下载链接域名 - 修改生产环境社交登录回调地址 - 更新 UAA 认证服务器基础 URL - 替换 JustAuth 第三方认证源的授权地址
Showing
1 changed file
with
38 additions
and
0 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/problemtype/AppProblemTypeController.java
0 → 100644
| 1 | +package com.zteits.urbanops.module.garden.controller.app.problemtype; | ||
| 2 | + | ||
| 3 | +import com.zteits.urbanops.framework.common.pojo.CommonResult; | ||
| 4 | +import com.zteits.urbanops.framework.common.util.object.BeanUtils; | ||
| 5 | +import com.zteits.urbanops.module.garden.controller.admin.problemtype.vo.ProblemTypeRespVO; | ||
| 6 | +import com.zteits.urbanops.module.garden.dal.dataobject.problemtype.GardenProblemTypeDO; | ||
| 7 | +import com.zteits.urbanops.module.garden.service.problemtype.GardenProblemTypeService; | ||
| 8 | +import io.swagger.v3.oas.annotations.Operation; | ||
| 9 | +import io.swagger.v3.oas.annotations.tags.Tag; | ||
| 10 | +import jakarta.annotation.Resource; | ||
| 11 | +import org.springframework.validation.annotation.Validated; | ||
| 12 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 13 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.RequestParam; | ||
| 15 | +import org.springframework.web.bind.annotation.RestController; | ||
| 16 | + | ||
| 17 | +import java.util.List; | ||
| 18 | + | ||
| 19 | +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success; | ||
| 20 | + | ||
| 21 | +@Tag(name = "APP - 问题类型") | ||
| 22 | +@RestController | ||
| 23 | +@RequestMapping("/app/problem-type") | ||
| 24 | +@Validated | ||
| 25 | +public class AppProblemTypeController { | ||
| 26 | + | ||
| 27 | + @Resource | ||
| 28 | + private GardenProblemTypeService gardenProblemTypeService; | ||
| 29 | + | ||
| 30 | + @GetMapping("/list-by-parent") | ||
| 31 | + @Operation(summary = "根据父级编码和层级查询子类型列表(级联下拉用)") | ||
| 32 | + public CommonResult<List<ProblemTypeRespVO>> getProblemTypeListByParent( | ||
| 33 | + @RequestParam(value = "parentCode", required = false) String parentCode, | ||
| 34 | + @RequestParam("level") Integer level) { | ||
| 35 | + List<GardenProblemTypeDO> list = gardenProblemTypeService.getProblemTypeByParentCode(parentCode, level); | ||
| 36 | + return success(BeanUtils.toBean(list, ProblemTypeRespVO.class)); | ||
| 37 | + } | ||
| 38 | +} |