水闸、灌区、泵站基本信息管理

This commit is contained in:
zhumeixiao
2024-11-04 17:59:57 +08:00
parent c1a8e34152
commit 66c1bd1e0d
19 changed files with 1504 additions and 28 deletions

View File

@ -0,0 +1,110 @@
package com.fastbee.data.controller.gis;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.fastbee.common.annotation.Log;
import com.fastbee.common.core.controller.BaseController;
import com.fastbee.common.core.domain.AjaxResult;
import com.fastbee.common.enums.BusinessType;
import com.fastbee.ggroup.domain.GSiteIrrigateInfo;
import com.fastbee.ggroup.service.IGSiteIrrigateInfoService;
import com.fastbee.common.utils.poi.ExcelUtil;
import com.fastbee.common.core.page.TableDataInfo;
/**
* 灌区基础信息Controller
*
* @author kerwincui
* @date 2024-11-04
*/
@RestController
@RequestMapping("/gis/site/irrigated/info")
@Api(tags = "灌区基础信息")
public class GSiteIrrigateInfoController extends BaseController
{
@Autowired
private IGSiteIrrigateInfoService gSiteIrrigateInfoService;
/**
* 查询灌区基础信息列表
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
@GetMapping("/list")
@ApiOperation("查询灌区基础信息列表")
public TableDataInfo list(GSiteIrrigateInfo gSiteIrrigateInfo)
{
startPage();
List<GSiteIrrigateInfo> list = gSiteIrrigateInfoService.selectGSiteIrrigateInfoList(gSiteIrrigateInfo);
return getDataTable(list);
}
/**
* 导出灌区基础信息列表
*/
@ApiOperation("导出灌区基础信息列表")
@PreAuthorize("@ss.hasPermi('ggroup:info:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, GSiteIrrigateInfo gSiteIrrigateInfo)
{
List<GSiteIrrigateInfo> list = gSiteIrrigateInfoService.selectGSiteIrrigateInfoList(gSiteIrrigateInfo);
ExcelUtil<GSiteIrrigateInfo> util = new ExcelUtil<GSiteIrrigateInfo>(GSiteIrrigateInfo.class);
util.exportExcel(response, list, "灌区基础信息数据");
}
/**
* 获取灌区基础信息详细信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:query')")
@GetMapping(value = "/{id}")
@ApiOperation("获取灌区基础信息详细信息")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(gSiteIrrigateInfoService.selectGSiteIrrigateInfoBySiteId(id));
}
/**
* 新增灌区基础信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:add')")
@PostMapping
@ApiOperation("新增灌区基础信息")
public AjaxResult add(@RequestBody GSiteIrrigateInfo gSiteIrrigateInfo)
{
return toAjax(gSiteIrrigateInfoService.insertGSiteIrrigateInfo(gSiteIrrigateInfo));
}
/**
* 修改灌区基础信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
@PutMapping
@ApiOperation("修改灌区基础信息")
public AjaxResult edit(@RequestBody GSiteIrrigateInfo gSiteIrrigateInfo)
{
return toAjax(gSiteIrrigateInfoService.updateGSiteIrrigateInfo(gSiteIrrigateInfo));
}
/**
* 删除灌区基础信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
@DeleteMapping("/{ids}")
@ApiOperation("删除灌区基础信息")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(gSiteIrrigateInfoService.deleteGSiteIrrigateInfoByIds(ids));
}
}

View File

@ -0,0 +1,110 @@
package com.fastbee.data.controller.gis;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.fastbee.common.annotation.Log;
import com.fastbee.common.core.controller.BaseController;
import com.fastbee.common.core.domain.AjaxResult;
import com.fastbee.common.enums.BusinessType;
import com.fastbee.ggroup.domain.GSitePumpInfo;
import com.fastbee.ggroup.service.IGSitePumpInfoService;
import com.fastbee.common.utils.poi.ExcelUtil;
import com.fastbee.common.core.page.TableDataInfo;
/**
* 泵站信息Controller
*
* @author kerwincui
* @date 2024-11-04
*/
@RestController
@RequestMapping("/gis/site/pump/info")
@Api(tags = "泵站信息")
public class GSitePumpInfoController extends BaseController
{
@Autowired
private IGSitePumpInfoService gSitePumpInfoService;
/**
* 查询泵站信息列表
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
@GetMapping("/list")
@ApiOperation("查询泵站信息列表")
public TableDataInfo list(GSitePumpInfo gSitePumpInfo)
{
startPage();
List<GSitePumpInfo> list = gSitePumpInfoService.selectGSitePumpInfoList(gSitePumpInfo);
return getDataTable(list);
}
/**
* 导出泵站信息列表
*/
@ApiOperation("导出泵站信息列表")
@PreAuthorize("@ss.hasPermi('ggroup:info:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, GSitePumpInfo gSitePumpInfo)
{
List<GSitePumpInfo> list = gSitePumpInfoService.selectGSitePumpInfoList(gSitePumpInfo);
ExcelUtil<GSitePumpInfo> util = new ExcelUtil<GSitePumpInfo>(GSitePumpInfo.class);
util.exportExcel(response, list, "泵站信息数据");
}
/**
* 获取泵站信息详细信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:query')")
@GetMapping(value = "/{id}")
@ApiOperation("获取泵站信息详细信息")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(gSitePumpInfoService.selectGSitePumpInfoBySiteId(id));
}
/**
* 新增泵站信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:add')")
@PostMapping
@ApiOperation("新增泵站信息")
public AjaxResult add(@RequestBody GSitePumpInfo gSitePumpInfo)
{
return toAjax(gSitePumpInfoService.insertGSitePumpInfo(gSitePumpInfo));
}
/**
* 修改泵站信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
@PutMapping
@ApiOperation("修改泵站信息")
public AjaxResult edit(@RequestBody GSitePumpInfo gSitePumpInfo)
{
return toAjax(gSitePumpInfoService.updateGSiteSluiceInfo(gSitePumpInfo));
}
/**
* 删除泵站信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
@DeleteMapping("/{ids}")
@ApiOperation("删除泵站信息")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(gSitePumpInfoService.deleteGSitePumpInfoByIds(ids));
}
}

View File

@ -31,7 +31,7 @@ import com.fastbee.common.core.page.TableDataInfo;
* @date 2024-10-31
*/
@RestController
@RequestMapping("/ggroup/info")
@RequestMapping("/gis/site/sluice/info")
@Api(tags = "水闸基本信息")
public class GSiteSluiceInfoController extends BaseController
{
@ -66,13 +66,20 @@ public class GSiteSluiceInfoController extends BaseController
/**
* 获取水闸基本信息详细信息
*/
*
@PreAuthorize("@ss.hasPermi('ggroup:info:query')")
@GetMapping(value = "/{id}")
@ApiOperation("获取水闸基本信息详细信息")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(gSiteSluiceInfoService.selectGSiteSluiceInfoById(id));
}*/
@PreAuthorize("@ss.hasPermi('ggroup:info:siteId')")
@GetMapping(value = "/{siteId}")
@ApiOperation("获取水闸基本信息详细信息")
public AjaxResult getsiteIdInfo(@PathVariable("siteId") Long siteId)
{
return success(gSiteSluiceInfoService.selectGSiteSluiceInfoBySiteId(siteId));
}
/**
@ -107,4 +114,9 @@ public class GSiteSluiceInfoController extends BaseController
{
return toAjax(gSiteSluiceInfoService.deleteGSiteSluiceInfoByIds(ids));
}
/**
* 更新水库的基本信息
*/
}