fix:区划查询全部

master
wangxy 10 months ago
parent dd155b555b
commit 61d62ad5b6

@ -7,7 +7,6 @@ import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.List;
import java.util.Objects;
/**
* packageName com.ruoyi.web.controller.manager
@ -34,4 +33,11 @@ public class SysAreaManager {
.eq(SysArea::getId,id).one().getName();
}
public List<SysArea> getAllList() {
return sysAreaService.lambdaQuery()
.orderByAsc(SysArea::getAreaCode)
.list();
}
}

@ -39,4 +39,11 @@ public class SysAreaController {
return success(sysAreaManager.getAreaName(id));
}
@ApiOperation("查询全部区划信息")
@GetMapping("/getAllList")
@ResponseBody
public AjaxResult getAllList() {
return success(sysAreaManager.getAllList());
}
}

Loading…
Cancel
Save