瀏覽代碼

TASK 45751 地块属性和地块经营

master
yangfuda 1 周之前
父節點
當前提交
daad8414d7
共有 4 個文件被更改,包括 17 次插入9 次删除
  1. +7
    -6
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/gis/GisMapController.java
  2. +3
    -3
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java
  3. +2
    -0
      ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java
  4. +5
    -0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java

+ 7
- 6
ruoyi-admin/src/main/java/com/ruoyi/web/controller/gis/GisMapController.java 查看文件

@@ -10,6 +10,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@@ -32,7 +33,7 @@ public class GisMapController extends BaseController {
@Log(title = "GIS", businessType = BusinessType.UPDATE)
@PostMapping("/point/do")
@ResponseBody
public AjaxResult pointSave(SysGis gis) {
public AjaxResult pointSave(@RequestBody SysGis gis) {
return toAjax(gisService.updateGeomByPoint(gis));
}

@@ -42,7 +43,7 @@ public class GisMapController extends BaseController {
@Log(title = "GIS", businessType = BusinessType.UPDATE)
@PostMapping("/point/private/do")
@ResponseBody
public AjaxResult pointSavePri(SysGis gis) {
public AjaxResult pointSavePri(@RequestBody SysGis gis) {
return toAjax(gisService.updateGeomByPointPri(gis));
}

@@ -53,7 +54,7 @@ public class GisMapController extends BaseController {
@Log(title = "GIS", businessType = BusinessType.UPDATE)
@PostMapping("/polygon/do")
@ResponseBody
public AjaxResult areaSave(SysGis gis) {
public AjaxResult areaSave(@RequestBody SysGis gis) {
return toAjax(gisService.updateGeomByPolygon(gis));
}

@@ -64,7 +65,7 @@ public class GisMapController extends BaseController {
@Log(title = "GIS", businessType = BusinessType.UPDATE)
@PostMapping("/polygon/private/do")
@ResponseBody
public AjaxResult areaSavePri(SysGis gis) {
public AjaxResult areaSavePri(@RequestBody SysGis gis) {
return toAjax(gisService.updateGeomByPolygonPri(gis));
}

@@ -75,7 +76,7 @@ public class GisMapController extends BaseController {
@Log(title = "GIS", businessType = BusinessType.UPDATE)
@PostMapping("/clean/do")
@ResponseBody
public AjaxResult cleanSave(SysGis gis) {
public AjaxResult cleanSave(@RequestBody SysGis gis) {
return toAjax(gisService.cleanGeomById(gis));
}

@@ -86,7 +87,7 @@ public class GisMapController extends BaseController {
@Log(title = "GIS", businessType = BusinessType.UPDATE)
@PostMapping("/clean/private/do")
@ResponseBody
public AjaxResult cleanSavePri(SysGis gis) {
public AjaxResult cleanSavePri(@RequestBody SysGis gis) {
return toAjax(gisService.cleanGeomByIdPri(gis));
}



+ 3
- 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java 查看文件

@@ -86,9 +86,9 @@ public class SysDeptController extends BaseController {
* 根据部门编号获取详细信息
*/
@PreAuthorize("@ss.hasPermi('system:dept:query')")
@GetMapping(value = "/getInfoByCode/{orgCode}")
public AjaxResult getInfoByCode(@PathVariable String orgCode) {
return success(deptService.selectDeptByOrgCode(orgCode));
@GetMapping(value = "/getInfoByImportCode/{importCode}")
public AjaxResult getInfoByImportCode(@PathVariable String importCode) {
return success(deptService.selectDeptByImportCode(importCode));
}

/**


+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java 查看文件

@@ -73,6 +73,8 @@ public interface ISysDeptService

public SysDept selectDeptByOrgCode(String orgCode);

public SysDept selectDeptByImportCode(String importCode);

/**
* 是否存在部门子节点
*


+ 5
- 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java 查看文件

@@ -153,6 +153,11 @@ public class SysDeptServiceImpl implements ISysDeptService {
return deptMapper.selectDeptByOrgCode(orgCode);
}

@Override
public SysDept selectDeptByImportCode(String importCode) {
return deptMapper.selectDeptByImportCode(importCode);
}

/**
* 是否存在子节点
*


Loading…
取消
儲存