From 16b704d18a875d1fb63827aaa507790ba2bef5be Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期二, 23 四月 2024 11:44:13 +0800 Subject: [PATCH] JK最终代码提交 --- guns-management/src/main/java/com/stylefeng/guns/modular/system/controller/SysRegionController.java | 25 ++++++++++++------------- 1 files changed, 12 insertions(+), 13 deletions(-) diff --git a/guns-management/src/main/java/com/stylefeng/guns/modular/system/controller/SysRegionController.java b/guns-management/src/main/java/com/stylefeng/guns/modular/system/controller/SysRegionController.java index c10af02..e328bf9 100644 --- a/guns-management/src/main/java/com/stylefeng/guns/modular/system/controller/SysRegionController.java +++ b/guns-management/src/main/java/com/stylefeng/guns/modular/system/controller/SysRegionController.java @@ -1,7 +1,6 @@ package com.stylefeng.guns.modular.system.controller; import com.baomidou.mybatisplus.mapper.EntityWrapper; -import com.stylefeng.guns.modular.system.model.Region; import com.stylefeng.guns.modular.system.service.IRegionService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -16,16 +15,16 @@ public class SysRegionController { @Autowired private IRegionService regionService; - /** - * 获取市级数据列表 - */ - @RequestMapping(value = "/cityList") - @ResponseBody - public Object cityList(Integer parentId) { - if(parentId==null){ - parentId=0; - } - List<Region> cities=regionService.selectList(new EntityWrapper<Region>().eq("parentId",parentId)); - return cities; - } +// /** +// * 获取市级数据列表 +// */ +// @RequestMapping(value = "/cityList") +// @ResponseBody +// public Object cityList(Integer parentId) { +// if(parentId==null){ +// parentId=0; +// } +// List<Region> cities=regionService.selectList(new EntityWrapper<Region>().eq("parentId",parentId)); +// return cities; +// } } -- Gitblit v1.7.1