Selaa lähdekoodia

TASK 45751 地块属性和地块经营

master
yangfuda 1 viikko sitten
vanhempi
commit
daad8414d7
4 muutettua tiedostoa jossa 17 lisäystä ja 9 poistoa
  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 Näytä tiedosto

@@ -10,6 +10,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping; 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.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;


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


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


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


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


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


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




+ 3
- 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java Näytä tiedosto

@@ -86,9 +86,9 @@ public class SysDeptController extends BaseController {
* 根据部门编号获取详细信息 * 根据部门编号获取详细信息
*/ */
@PreAuthorize("@ss.hasPermi('system:dept:query')") @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 Näytä tiedosto

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


public SysDept selectDeptByOrgCode(String orgCode); public SysDept selectDeptByOrgCode(String orgCode);


public SysDept selectDeptByImportCode(String importCode);

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


+ 5
- 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java Näytä tiedosto

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


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

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


Ladataan…
Peruuta
Tallenna