1.增加服务器管理功能。
2.增加地图管理功能。
3.增加模型管理功能。
4.增加tiles管理管理功能。
5.增加无人机管理功能。
30 files added
2 files modified
| New file |
| | |
| | | package com.ard.web.controller.data; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ard.common.utils.poi.ExcelUtil; |
| | | import com.ard.data.domain.ArdDroneManagement; |
| | | import com.ard.data.service.IArdDroneManagementService; |
| | | 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.ard.common.annotation.Log; |
| | | import com.ard.common.core.controller.BaseController; |
| | | import com.ard.common.core.domain.AjaxResult; |
| | | import com.ard.common.enums.BusinessType; |
| | | import com.ard.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * 无人机管理Controller |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Api(tags = "无人机管理接口") |
| | | @RestController |
| | | @RequestMapping("/data/management") |
| | | public class ArdDroneManagementController extends BaseController { |
| | | |
| | | @Autowired |
| | | private IArdDroneManagementService ardDroneManagementService; |
| | | |
| | | /** |
| | | * 查询无人机管理列表 |
| | | */ |
| | | @ApiOperation("查询无人机管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ArdDroneManagement ardDroneManagement) { |
| | | startPage(); |
| | | List<ArdDroneManagement> list = ardDroneManagementService.selectArdDroneManagementList(ardDroneManagement); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导出无人机管理列表 |
| | | */ |
| | | @ApiOperation("导出无人机管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:export')") |
| | | @Log(title = "无人机管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdDroneManagement ardDroneManagement) { |
| | | List<ArdDroneManagement> list = ardDroneManagementService.selectArdDroneManagementList(ardDroneManagement); |
| | | ExcelUtil<ArdDroneManagement> util = new ExcelUtil<ArdDroneManagement>(ArdDroneManagement.class); |
| | | util.exportExcel(response, list, "无人机管理数据"); |
| | | } |
| | | |
| | | /** |
| | | * 获取无人机管理详细信息 |
| | | */ |
| | | @ApiOperation("获取无人机管理详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:management:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardDroneManagementService.selectArdDroneManagementById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增无人机管理 |
| | | */ |
| | | @ApiOperation("新增无人机管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:add')") |
| | | @Log(title = "无人机管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdDroneManagement ardDroneManagement) { |
| | | return toAjax(ardDroneManagementService.insertArdDroneManagement(ardDroneManagement)); |
| | | } |
| | | |
| | | /** |
| | | * 修改无人机管理 |
| | | */ |
| | | @ApiOperation("修改无人机管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:edit')") |
| | | @Log(title = "无人机管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdDroneManagement ardDroneManagement) { |
| | | return toAjax(ardDroneManagementService.updateArdDroneManagement(ardDroneManagement)); |
| | | } |
| | | |
| | | /** |
| | | * 删除无人机管理 |
| | | */ |
| | | @ApiOperation("删除无人机管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:remove')") |
| | | @Log(title = "无人机管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |
| | | return toAjax(ardDroneManagementService.deleteArdDroneManagementByIds(ids)); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.ard.web.controller.data; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ard.data.domain.ArdMapManagement; |
| | | import com.ard.data.service.IArdMapManagementService; |
| | | 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.ard.common.annotation.Log; |
| | | import com.ard.common.core.controller.BaseController; |
| | | import com.ard.common.core.domain.AjaxResult; |
| | | import com.ard.common.enums.BusinessType; |
| | | import com.ard.common.utils.poi.ExcelUtil; |
| | | import com.ard.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * 地图管理Controller |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Api(tags = "地图管理接口") |
| | | @RestController |
| | | @RequestMapping("/data/management") |
| | | public class ArdMapManagementController extends BaseController { |
| | | |
| | | @Autowired |
| | | private IArdMapManagementService ardMapManagementService; |
| | | |
| | | /** |
| | | * 查询地图管理列表 |
| | | */ |
| | | @ApiOperation("查询地图管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ArdMapManagement ardMapManagement) { |
| | | startPage(); |
| | | List<ArdMapManagement> list = ardMapManagementService.selectArdMapManagementList(ardMapManagement); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导出地图管理列表 |
| | | */ |
| | | @ApiOperation("导出地图管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:export')") |
| | | @Log(title = "地图管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdMapManagement ardMapManagement) { |
| | | List<ArdMapManagement> list = ardMapManagementService.selectArdMapManagementList(ardMapManagement); |
| | | ExcelUtil<ArdMapManagement> util = new ExcelUtil<ArdMapManagement>(ArdMapManagement.class); |
| | | util.exportExcel(response, list, "地图管理数据"); |
| | | } |
| | | |
| | | /** |
| | | * 获取地图管理详细信息 |
| | | */ |
| | | @ApiOperation("获取地图管理详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:management:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardMapManagementService.selectArdMapManagementById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增地图管理 |
| | | */ |
| | | @ApiOperation("新增地图管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:add')") |
| | | @Log(title = "地图管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdMapManagement ardMapManagement) { |
| | | return toAjax(ardMapManagementService.insertArdMapManagement(ardMapManagement)); |
| | | } |
| | | |
| | | /** |
| | | * 修改地图管理 |
| | | */ |
| | | @ApiOperation("修改地图管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:edit')") |
| | | @Log(title = "地图管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdMapManagement ardMapManagement) { |
| | | return toAjax(ardMapManagementService.updateArdMapManagement(ardMapManagement)); |
| | | } |
| | | |
| | | /** |
| | | * 删除地图管理 |
| | | */ |
| | | @ApiOperation("删除地图管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:remove')") |
| | | @Log(title = "地图管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |
| | | return toAjax(ardMapManagementService.deleteArdMapManagementByIds(ids)); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.ard.web.controller.data; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ard.data.domain.ArdModelManagement; |
| | | import com.ard.data.service.IArdModelManagementService; |
| | | 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.ard.common.annotation.Log; |
| | | import com.ard.common.core.controller.BaseController; |
| | | import com.ard.common.core.domain.AjaxResult; |
| | | import com.ard.common.enums.BusinessType; |
| | | import com.ard.common.utils.poi.ExcelUtil; |
| | | import com.ard.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * 模型管理Controller |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Api(tags = "模型管理接口") |
| | | @RestController |
| | | @RequestMapping("/data/management") |
| | | public class ArdModelManagementController extends BaseController { |
| | | |
| | | @Autowired |
| | | private IArdModelManagementService ardModelManagementService; |
| | | |
| | | /** |
| | | * 查询模型管理列表 |
| | | */ |
| | | @ApiOperation("查询模型管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ArdModelManagement ardModelManagement) { |
| | | startPage(); |
| | | List<ArdModelManagement> list = ardModelManagementService.selectArdModelManagementList(ardModelManagement); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导出模型管理列表 |
| | | */ |
| | | @ApiOperation("导出模型管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:export')") |
| | | @Log(title = "模型管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdModelManagement ardModelManagement) { |
| | | List<ArdModelManagement> list = ardModelManagementService.selectArdModelManagementList(ardModelManagement); |
| | | ExcelUtil<ArdModelManagement> util = new ExcelUtil<ArdModelManagement>(ArdModelManagement.class); |
| | | util.exportExcel(response, list, "模型管理数据"); |
| | | } |
| | | |
| | | /** |
| | | * 获取模型管理详细信息 |
| | | */ |
| | | @ApiOperation("获取模型管理详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:management:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardModelManagementService.selectArdModelManagementById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增模型管理 |
| | | */ |
| | | @ApiOperation("新增模型管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:add')") |
| | | @Log(title = "模型管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdModelManagement ardModelManagement) { |
| | | return toAjax(ardModelManagementService.insertArdModelManagement(ardModelManagement)); |
| | | } |
| | | |
| | | /** |
| | | * 修改模型管理 |
| | | */ |
| | | @ApiOperation("修改模型管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:edit')") |
| | | @Log(title = "模型管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdModelManagement ardModelManagement) { |
| | | return toAjax(ardModelManagementService.updateArdModelManagement(ardModelManagement)); |
| | | } |
| | | |
| | | /** |
| | | * 删除模型管理 |
| | | */ |
| | | @ApiOperation("删除模型管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:remove')") |
| | | @Log(title = "模型管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |
| | | return toAjax(ardModelManagementService.deleteArdModelManagementByIds(ids)); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.ard.web.controller.data; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ard.data.domain.ArdServerManagement; |
| | | import com.ard.data.service.IArdServerManagementService; |
| | | 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.ard.common.annotation.Log; |
| | | import com.ard.common.core.controller.BaseController; |
| | | import com.ard.common.core.domain.AjaxResult; |
| | | import com.ard.common.enums.BusinessType; |
| | | import com.ard.common.utils.poi.ExcelUtil; |
| | | import com.ard.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * 服务器管理Controller |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Api(tags = "服务器管理接口") |
| | | @RestController |
| | | @RequestMapping("/data/management") |
| | | public class ArdServerManagementController extends BaseController { |
| | | |
| | | @Autowired |
| | | private IArdServerManagementService ardServerManagementService; |
| | | |
| | | /** |
| | | * 查询服务器管理列表 |
| | | */ |
| | | @ApiOperation("查询服务器管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ArdServerManagement ardServerManagement) { |
| | | startPage(); |
| | | List<ArdServerManagement> list = ardServerManagementService.selectArdServerManagementList(ardServerManagement); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导出服务器管理列表 |
| | | */ |
| | | @ApiOperation("导出服务器管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:export')") |
| | | @Log(title = "服务器管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdServerManagement ardServerManagement) { |
| | | List<ArdServerManagement> list = ardServerManagementService.selectArdServerManagementList(ardServerManagement); |
| | | ExcelUtil<ArdServerManagement> util = new ExcelUtil<ArdServerManagement>(ArdServerManagement.class); |
| | | util.exportExcel(response, list, "服务器管理数据"); |
| | | } |
| | | |
| | | /** |
| | | * 获取服务器管理详细信息 |
| | | */ |
| | | @ApiOperation("获取服务器管理详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:management:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardServerManagementService.selectArdServerManagementById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增服务器管理 |
| | | */ |
| | | @ApiOperation("新增服务器管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:add')") |
| | | @Log(title = "服务器管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdServerManagement ardServerManagement) { |
| | | return toAjax(ardServerManagementService.insertArdServerManagement(ardServerManagement)); |
| | | } |
| | | |
| | | /** |
| | | * 修改服务器管理 |
| | | */ |
| | | @ApiOperation("修改服务器管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:edit')") |
| | | @Log(title = "服务器管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdServerManagement ardServerManagement) { |
| | | return toAjax(ardServerManagementService.updateArdServerManagement(ardServerManagement)); |
| | | } |
| | | |
| | | /** |
| | | * 删除服务器管理 |
| | | */ |
| | | @ApiOperation("删除服务器管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:remove')") |
| | | @Log(title = "服务器管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |
| | | return toAjax(ardServerManagementService.deleteArdServerManagementByIds(ids)); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.ard.web.controller.data; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ard.data.domain.ArdTileManagement; |
| | | import com.ard.data.service.IArdTileManagementService; |
| | | 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.ard.common.annotation.Log; |
| | | import com.ard.common.core.controller.BaseController; |
| | | import com.ard.common.core.domain.AjaxResult; |
| | | import com.ard.common.enums.BusinessType; |
| | | import com.ard.common.utils.poi.ExcelUtil; |
| | | import com.ard.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * tile管理Controller |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Api(tags = "tile管理接口") |
| | | @RestController |
| | | @RequestMapping("/data/management") |
| | | public class ArdTileManagementController extends BaseController { |
| | | |
| | | @Autowired |
| | | private IArdTileManagementService ardTileManagementService; |
| | | |
| | | /** |
| | | * 查询tile管理列表 |
| | | */ |
| | | @ApiOperation("查询tile管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ArdTileManagement ardTileManagement) { |
| | | startPage(); |
| | | List<ArdTileManagement> list = ardTileManagementService.selectArdTileManagementList(ardTileManagement); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导出tile管理列表 |
| | | */ |
| | | @ApiOperation("导出tile管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:export')") |
| | | @Log(title = "tile管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdTileManagement ardTileManagement) { |
| | | List<ArdTileManagement> list = ardTileManagementService.selectArdTileManagementList(ardTileManagement); |
| | | ExcelUtil<ArdTileManagement> util = new ExcelUtil<ArdTileManagement>(ArdTileManagement.class); |
| | | util.exportExcel(response, list, "tile管理数据"); |
| | | } |
| | | |
| | | /** |
| | | * 获取tile管理详细信息 |
| | | */ |
| | | @ApiOperation("获取tile管理详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:management:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardTileManagementService.selectArdTileManagementById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增tile管理 |
| | | */ |
| | | @ApiOperation("新增tile管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:add')") |
| | | @Log(title = "tile管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdTileManagement ardTileManagement) { |
| | | return toAjax(ardTileManagementService.insertArdTileManagement(ardTileManagement)); |
| | | } |
| | | |
| | | /** |
| | | * 修改tile管理 |
| | | */ |
| | | @ApiOperation("修改tile管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:edit')") |
| | | @Log(title = "tile管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdTileManagement ardTileManagement) { |
| | | return toAjax(ardTileManagementService.updateArdTileManagement(ardTileManagement)); |
| | | } |
| | | |
| | | /** |
| | | * 删除tile管理 |
| | | */ |
| | | @ApiOperation("删除tile管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:remove')") |
| | | @Log(title = "tile管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |
| | | return toAjax(ardTileManagementService.deleteArdTileManagementByIds(ids)); |
| | | } |
| | | |
| | | } |
| | |
| | | .securitySchemes(securitySchemes()) |
| | | .securityContexts(securityContexts()); |
| | | } |
| | | @Bean |
| | | public Docket dataApi() { |
| | | return new Docket(DocumentationType.SWAGGER_2) |
| | | .enable(true) |
| | | .groupName("数据接口") // 分组名 |
| | | .apiInfo(apiInfo("数据管理接口")) |
| | | .select() |
| | | // 扫描指定包下,但只扫描加了 @ApiOperation 注解的方法 |
| | | .apis(requestHandler -> |
| | | requestHandler.declaringClass().getPackage().getName().startsWith("com.ard.web.controller" + |
| | | ".data") && |
| | | requestHandler.isAnnotatedWith(io.swagger.annotations.ApiOperation.class) |
| | | ) |
| | | .paths(PathSelectors.any()) |
| | | .build() |
| | | /* 设置安全模式,swagger可以设置访问token */ |
| | | .securitySchemes(securitySchemes()) |
| | | .securityContexts(securityContexts()); |
| | | } |
| | | |
| | | /** |
| | | * 安全模式,这里指定token通过Authorization头请求头传递 |
| | | */ |
| New file |
| | |
| | | package com.ard.data.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.ard.common.core.domain.BaseEntity; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ard.common.annotation.Excel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 无人机管理对象 ard_drone_management |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Data |
| | | public class ArdDroneManagement extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ID */ |
| | | private String id; |
| | | |
| | | /** 设备型号 */ |
| | | @Excel(name = "设备型号") |
| | | private String deviceModel; |
| | | |
| | | /** 设备SN */ |
| | | @Excel(name = "设备SN") |
| | | private String deviceSn; |
| | | |
| | | /** 设备名称 */ |
| | | @Excel(name = "设备名称") |
| | | private String deviceName; |
| | | |
| | | /** 工作状态 */ |
| | | @Excel(name = "工作状态") |
| | | private String deviceStatus; |
| | | |
| | | /** 加入时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date deviceAddTime; |
| | | |
| | | /** 在线时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "在线时间", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date onlineTime; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ard.data.domain; |
| | | |
| | | import com.ard.common.annotation.Excel; |
| | | import com.ard.common.core.domain.BaseEntity; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 地图管理对象 ard_map_management |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Data |
| | | public class ArdMapManagement extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ID */ |
| | | private String id; |
| | | |
| | | /** 名称 */ |
| | | @Excel(name = "名称") |
| | | private String mapName; |
| | | |
| | | /** 类型 */ |
| | | @Excel(name = "类型") |
| | | private String mapType; |
| | | |
| | | /** 文件名 */ |
| | | @Excel(name = "文件名") |
| | | private String fileName; |
| | | |
| | | /** 发布状态 */ |
| | | @Excel(name = "发布状态") |
| | | private String releaseStatus; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ard.data.domain; |
| | | |
| | | import com.ard.common.annotation.Excel; |
| | | import com.ard.common.core.domain.BaseEntity; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 模型管理对象 ard_model_management |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Data |
| | | public class ArdModelManagement extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ID */ |
| | | private String id; |
| | | |
| | | /** 名称 */ |
| | | @Excel(name = "名称") |
| | | private String modelName; |
| | | |
| | | /** 经度 */ |
| | | @Excel(name = "经度") |
| | | private Long longitude; |
| | | |
| | | /** 纬度 */ |
| | | @Excel(name = "纬度") |
| | | private Long latitude; |
| | | |
| | | /** 高度 */ |
| | | @Excel(name = "高度") |
| | | private Long height; |
| | | |
| | | /** 比例 */ |
| | | @Excel(name = "比例") |
| | | private Long proportion; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ard.data.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.ard.common.core.domain.BaseEntity; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ard.common.annotation.Excel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 服务器管理对象 ard_server_management |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Data |
| | | public class ArdServerManagement extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ID */ |
| | | private String id; |
| | | |
| | | /** 名称 */ |
| | | @Excel(name = "名称") |
| | | private String serverName; |
| | | |
| | | /** IP地址 */ |
| | | @Excel(name = "IP地址") |
| | | private String ipAddress; |
| | | |
| | | /** 位置 */ |
| | | @Excel(name = "位置") |
| | | private String position; |
| | | |
| | | /** 状态 */ |
| | | @Excel(name = "状态") |
| | | private String status; |
| | | |
| | | /** CPU使用率 */ |
| | | @Excel(name = "CPU使用率") |
| | | private Long cpuUsageRate; |
| | | |
| | | /** 内存使用率 */ |
| | | @Excel(name = "内存使用率") |
| | | private Long memoryUsage; |
| | | |
| | | /** 操作系统 */ |
| | | @Excel(name = "操作系统") |
| | | private String operatingSystem; |
| | | |
| | | /** 运行时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "运行时间", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date runtime; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ard.data.domain; |
| | | |
| | | import com.ard.common.annotation.Excel; |
| | | import com.ard.common.core.domain.BaseEntity; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * tile管理对象 ard_tile_management |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Data |
| | | public class ArdTileManagement extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ID */ |
| | | private String id; |
| | | |
| | | /** 名称 */ |
| | | @Excel(name = "名称") |
| | | private String tilesName; |
| | | |
| | | /** 高度 */ |
| | | @Excel(name = "高度") |
| | | private Long tilesHeight; |
| | | |
| | | /** tile地址 */ |
| | | @Excel(name = "tile地址") |
| | | private String tileAddress; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ard.data.mapper; |
| | | |
| | | import com.ard.data.domain.ArdDroneManagement; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 无人机管理Mapper接口 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | public interface ArdDroneManagementMapper { |
| | | |
| | | /** |
| | | * 查询无人机管理 |
| | | * |
| | | * @param id 无人机管理主键 |
| | | * @return 无人机管理 |
| | | */ |
| | | public ArdDroneManagement selectArdDroneManagementById(String id); |
| | | |
| | | /** |
| | | * 查询无人机管理列表 |
| | | * |
| | | * @param ardDroneManagement 无人机管理 |
| | | * @return 无人机管理集合 |
| | | */ |
| | | public List<ArdDroneManagement> selectArdDroneManagementList(ArdDroneManagement ardDroneManagement); |
| | | |
| | | /** |
| | | * 新增无人机管理 |
| | | * |
| | | * @param ardDroneManagement 无人机管理 |
| | | * @return 结果 |
| | | */ |
| | | public int insertArdDroneManagement(ArdDroneManagement ardDroneManagement); |
| | | |
| | | /** |
| | | * 修改无人机管理 |
| | | * |
| | | * @param ardDroneManagement 无人机管理 |
| | | * @return 结果 |
| | | */ |
| | | public int updateArdDroneManagement(ArdDroneManagement ardDroneManagement); |
| | | |
| | | /** |
| | | * 删除无人机管理 |
| | | * |
| | | * @param id 无人机管理主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdDroneManagementById(String id); |
| | | |
| | | /** |
| | | * 批量删除无人机管理 |
| | | * |
| | | * @param ids 需要删除的数据主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdDroneManagementByIds(String[] ids); |
| | | } |
| New file |
| | |
| | | package com.ard.data.mapper; |
| | | |
| | | import com.ard.data.domain.ArdMapManagement; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 地图管理Mapper接口 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | public interface ArdMapManagementMapper { |
| | | |
| | | /** |
| | | * 查询地图管理 |
| | | * |
| | | * @param id 地图管理主键 |
| | | * @return 地图管理 |
| | | */ |
| | | public ArdMapManagement selectArdMapManagementById(String id); |
| | | |
| | | /** |
| | | * 查询地图管理列表 |
| | | * |
| | | * @param ardMapManagement 地图管理 |
| | | * @return 地图管理集合 |
| | | */ |
| | | public List<ArdMapManagement> selectArdMapManagementList(ArdMapManagement ardMapManagement); |
| | | |
| | | /** |
| | | * 新增地图管理 |
| | | * |
| | | * @param ardMapManagement 地图管理 |
| | | * @return 结果 |
| | | */ |
| | | public int insertArdMapManagement(ArdMapManagement ardMapManagement); |
| | | |
| | | /** |
| | | * 修改地图管理 |
| | | * |
| | | * @param ardMapManagement 地图管理 |
| | | * @return 结果 |
| | | */ |
| | | public int updateArdMapManagement(ArdMapManagement ardMapManagement); |
| | | |
| | | /** |
| | | * 删除地图管理 |
| | | * |
| | | * @param id 地图管理主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdMapManagementById(String id); |
| | | |
| | | /** |
| | | * 批量删除地图管理 |
| | | * |
| | | * @param ids 需要删除的数据主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdMapManagementByIds(String[] ids); |
| | | } |
| New file |
| | |
| | | package com.ard.data.mapper; |
| | | |
| | | import com.ard.data.domain.ArdModelManagement; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 模型管理Mapper接口 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | public interface ArdModelManagementMapper { |
| | | |
| | | /** |
| | | * 查询模型管理 |
| | | * |
| | | * @param id 模型管理主键 |
| | | * @return 模型管理 |
| | | */ |
| | | public ArdModelManagement selectArdModelManagementById(String id); |
| | | |
| | | /** |
| | | * 查询模型管理列表 |
| | | * |
| | | * @param ardModelManagement 模型管理 |
| | | * @return 模型管理集合 |
| | | */ |
| | | public List<ArdModelManagement> selectArdModelManagementList(ArdModelManagement ardModelManagement); |
| | | |
| | | /** |
| | | * 新增模型管理 |
| | | * |
| | | * @param ardModelManagement 模型管理 |
| | | * @return 结果 |
| | | */ |
| | | public int insertArdModelManagement(ArdModelManagement ardModelManagement); |
| | | |
| | | /** |
| | | * 修改模型管理 |
| | | * |
| | | * @param ardModelManagement 模型管理 |
| | | * @return 结果 |
| | | */ |
| | | public int updateArdModelManagement(ArdModelManagement ardModelManagement); |
| | | |
| | | /** |
| | | * 删除模型管理 |
| | | * |
| | | * @param id 模型管理主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdModelManagementById(String id); |
| | | |
| | | /** |
| | | * 批量删除模型管理 |
| | | * |
| | | * @param ids 需要删除的数据主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdModelManagementByIds(String[] ids); |
| | | } |
| New file |
| | |
| | | package com.ard.data.mapper; |
| | | |
| | | import com.ard.data.domain.ArdServerManagement; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 服务器管理Mapper接口 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | public interface ArdServerManagementMapper { |
| | | |
| | | /** |
| | | * 查询服务器管理 |
| | | * |
| | | * @param id 服务器管理主键 |
| | | * @return 服务器管理 |
| | | */ |
| | | public ArdServerManagement selectArdServerManagementById(String id); |
| | | |
| | | /** |
| | | * 查询服务器管理列表 |
| | | * |
| | | * @param ardServerManagement 服务器管理 |
| | | * @return 服务器管理集合 |
| | | */ |
| | | public List<ArdServerManagement> selectArdServerManagementList(ArdServerManagement ardServerManagement); |
| | | |
| | | /** |
| | | * 新增服务器管理 |
| | | * |
| | | * @param ardServerManagement 服务器管理 |
| | | * @return 结果 |
| | | */ |
| | | public int insertArdServerManagement(ArdServerManagement ardServerManagement); |
| | | |
| | | /** |
| | | * 修改服务器管理 |
| | | * |
| | | * @param ardServerManagement 服务器管理 |
| | | * @return 结果 |
| | | */ |
| | | public int updateArdServerManagement(ArdServerManagement ardServerManagement); |
| | | |
| | | /** |
| | | * 删除服务器管理 |
| | | * |
| | | * @param id 服务器管理主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdServerManagementById(String id); |
| | | |
| | | /** |
| | | * 批量删除服务器管理 |
| | | * |
| | | * @param ids 需要删除的数据主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdServerManagementByIds(String[] ids); |
| | | } |
| New file |
| | |
| | | package com.ard.data.mapper; |
| | | |
| | | import com.ard.data.domain.ArdTileManagement; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * tile管理Mapper接口 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | public interface ArdTileManagementMapper { |
| | | |
| | | /** |
| | | * 查询tile管理 |
| | | * |
| | | * @param id tile管理主键 |
| | | * @return tile管理 |
| | | */ |
| | | public ArdTileManagement selectArdTileManagementById(String id); |
| | | |
| | | /** |
| | | * 查询tile管理列表 |
| | | * |
| | | * @param ardTileManagement tile管理 |
| | | * @return tile管理集合 |
| | | */ |
| | | public List<ArdTileManagement> selectArdTileManagementList(ArdTileManagement ardTileManagement); |
| | | |
| | | /** |
| | | * 新增tile管理 |
| | | * |
| | | * @param ardTileManagement tile管理 |
| | | * @return 结果 |
| | | */ |
| | | public int insertArdTileManagement(ArdTileManagement ardTileManagement); |
| | | |
| | | /** |
| | | * 修改tile管理 |
| | | * |
| | | * @param ardTileManagement tile管理 |
| | | * @return 结果 |
| | | */ |
| | | public int updateArdTileManagement(ArdTileManagement ardTileManagement); |
| | | |
| | | /** |
| | | * 删除tile管理 |
| | | * |
| | | * @param id tile管理主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdTileManagementById(String id); |
| | | |
| | | /** |
| | | * 批量删除tile管理 |
| | | * |
| | | * @param ids 需要删除的数据主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdTileManagementByIds(String[] ids); |
| | | } |
| New file |
| | |
| | | package com.ard.data.service; |
| | | |
| | | import com.ard.data.domain.ArdDroneManagement; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 无人机管理Service接口 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | public interface IArdDroneManagementService { |
| | | |
| | | /** |
| | | * 查询无人机管理 |
| | | * |
| | | * @param id 无人机管理主键 |
| | | * @return 无人机管理 |
| | | */ |
| | | public ArdDroneManagement selectArdDroneManagementById(String id); |
| | | |
| | | /** |
| | | * 查询无人机管理列表 |
| | | * |
| | | * @param ardDroneManagement 无人机管理 |
| | | * @return 无人机管理集合 |
| | | */ |
| | | public List<ArdDroneManagement> selectArdDroneManagementList(ArdDroneManagement ardDroneManagement); |
| | | |
| | | /** |
| | | * 新增无人机管理 |
| | | * |
| | | * @param ardDroneManagement 无人机管理 |
| | | * @return 结果 |
| | | */ |
| | | public int insertArdDroneManagement(ArdDroneManagement ardDroneManagement); |
| | | |
| | | /** |
| | | * 修改无人机管理 |
| | | * |
| | | * @param ardDroneManagement 无人机管理 |
| | | * @return 结果 |
| | | */ |
| | | public int updateArdDroneManagement(ArdDroneManagement ardDroneManagement); |
| | | |
| | | /** |
| | | * 批量删除无人机管理 |
| | | * |
| | | * @param ids 需要删除的无人机管理主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdDroneManagementByIds(String[] ids); |
| | | |
| | | /** |
| | | * 删除无人机管理信息 |
| | | * |
| | | * @param id 无人机管理主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdDroneManagementById(String id); |
| | | } |
| New file |
| | |
| | | package com.ard.data.service; |
| | | |
| | | import com.ard.data.domain.ArdMapManagement; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 地图管理Service接口 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | public interface IArdMapManagementService { |
| | | |
| | | /** |
| | | * 查询地图管理 |
| | | * |
| | | * @param id 地图管理主键 |
| | | * @return 地图管理 |
| | | */ |
| | | public ArdMapManagement selectArdMapManagementById(String id); |
| | | |
| | | /** |
| | | * 查询地图管理列表 |
| | | * |
| | | * @param ardMapManagement 地图管理 |
| | | * @return 地图管理集合 |
| | | */ |
| | | public List<ArdMapManagement> selectArdMapManagementList(ArdMapManagement ardMapManagement); |
| | | |
| | | /** |
| | | * 新增地图管理 |
| | | * |
| | | * @param ardMapManagement 地图管理 |
| | | * @return 结果 |
| | | */ |
| | | public int insertArdMapManagement(ArdMapManagement ardMapManagement); |
| | | |
| | | /** |
| | | * 修改地图管理 |
| | | * |
| | | * @param ardMapManagement 地图管理 |
| | | * @return 结果 |
| | | */ |
| | | public int updateArdMapManagement(ArdMapManagement ardMapManagement); |
| | | |
| | | /** |
| | | * 批量删除地图管理 |
| | | * |
| | | * @param ids 需要删除的地图管理主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdMapManagementByIds(String[] ids); |
| | | |
| | | /** |
| | | * 删除地图管理信息 |
| | | * |
| | | * @param id 地图管理主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdMapManagementById(String id); |
| | | } |
| New file |
| | |
| | | package com.ard.data.service; |
| | | |
| | | import com.ard.data.domain.ArdModelManagement; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 模型管理Service接口 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | public interface IArdModelManagementService { |
| | | |
| | | /** |
| | | * 查询模型管理 |
| | | * |
| | | * @param id 模型管理主键 |
| | | * @return 模型管理 |
| | | */ |
| | | public ArdModelManagement selectArdModelManagementById(String id); |
| | | |
| | | /** |
| | | * 查询模型管理列表 |
| | | * |
| | | * @param ardModelManagement 模型管理 |
| | | * @return 模型管理集合 |
| | | */ |
| | | public List<ArdModelManagement> selectArdModelManagementList(ArdModelManagement ardModelManagement); |
| | | |
| | | /** |
| | | * 新增模型管理 |
| | | * |
| | | * @param ardModelManagement 模型管理 |
| | | * @return 结果 |
| | | */ |
| | | public int insertArdModelManagement(ArdModelManagement ardModelManagement); |
| | | |
| | | /** |
| | | * 修改模型管理 |
| | | * |
| | | * @param ardModelManagement 模型管理 |
| | | * @return 结果 |
| | | */ |
| | | public int updateArdModelManagement(ArdModelManagement ardModelManagement); |
| | | |
| | | /** |
| | | * 批量删除模型管理 |
| | | * |
| | | * @param ids 需要删除的模型管理主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdModelManagementByIds(String[] ids); |
| | | |
| | | /** |
| | | * 删除模型管理信息 |
| | | * |
| | | * @param id 模型管理主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdModelManagementById(String id); |
| | | } |
| New file |
| | |
| | | package com.ard.data.service; |
| | | |
| | | import com.ard.data.domain.ArdServerManagement; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 服务器管理Service接口 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | public interface IArdServerManagementService { |
| | | |
| | | /** |
| | | * 查询服务器管理 |
| | | * |
| | | * @param id 服务器管理主键 |
| | | * @return 服务器管理 |
| | | */ |
| | | public ArdServerManagement selectArdServerManagementById(String id); |
| | | |
| | | /** |
| | | * 查询服务器管理列表 |
| | | * |
| | | * @param ardServerManagement 服务器管理 |
| | | * @return 服务器管理集合 |
| | | */ |
| | | public List<ArdServerManagement> selectArdServerManagementList(ArdServerManagement ardServerManagement); |
| | | |
| | | /** |
| | | * 新增服务器管理 |
| | | * |
| | | * @param ardServerManagement 服务器管理 |
| | | * @return 结果 |
| | | */ |
| | | public int insertArdServerManagement(ArdServerManagement ardServerManagement); |
| | | |
| | | /** |
| | | * 修改服务器管理 |
| | | * |
| | | * @param ardServerManagement 服务器管理 |
| | | * @return 结果 |
| | | */ |
| | | public int updateArdServerManagement(ArdServerManagement ardServerManagement); |
| | | |
| | | /** |
| | | * 批量删除服务器管理 |
| | | * |
| | | * @param ids 需要删除的服务器管理主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdServerManagementByIds(String[] ids); |
| | | |
| | | /** |
| | | * 删除服务器管理信息 |
| | | * |
| | | * @param id 服务器管理主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdServerManagementById(String id); |
| | | } |
| New file |
| | |
| | | package com.ard.data.service; |
| | | |
| | | import com.ard.data.domain.ArdTileManagement; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * tile管理Service接口 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | public interface IArdTileManagementService { |
| | | |
| | | /** |
| | | * 查询tile管理 |
| | | * |
| | | * @param id tile管理主键 |
| | | * @return tile管理 |
| | | */ |
| | | public ArdTileManagement selectArdTileManagementById(String id); |
| | | |
| | | /** |
| | | * 查询tile管理列表 |
| | | * |
| | | * @param ardTileManagement tile管理 |
| | | * @return tile管理集合 |
| | | */ |
| | | public List<ArdTileManagement> selectArdTileManagementList(ArdTileManagement ardTileManagement); |
| | | |
| | | /** |
| | | * 新增tile管理 |
| | | * |
| | | * @param ardTileManagement tile管理 |
| | | * @return 结果 |
| | | */ |
| | | public int insertArdTileManagement(ArdTileManagement ardTileManagement); |
| | | |
| | | /** |
| | | * 修改tile管理 |
| | | * |
| | | * @param ardTileManagement tile管理 |
| | | * @return 结果 |
| | | */ |
| | | public int updateArdTileManagement(ArdTileManagement ardTileManagement); |
| | | |
| | | /** |
| | | * 批量删除tile管理 |
| | | * |
| | | * @param ids 需要删除的tile管理主键集合 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdTileManagementByIds(String[] ids); |
| | | |
| | | /** |
| | | * 删除tile管理信息 |
| | | * |
| | | * @param id tile管理主键 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteArdTileManagementById(String id); |
| | | } |
| New file |
| | |
| | | package com.ard.data.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ard.data.domain.ArdDroneManagement; |
| | | import com.ard.data.mapper.ArdDroneManagementMapper; |
| | | import com.ard.data.service.IArdDroneManagementService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * 无人机管理Service业务层处理 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Service |
| | | public class ArdDroneManagementServiceImpl implements IArdDroneManagementService { |
| | | |
| | | @Autowired |
| | | private ArdDroneManagementMapper ardDroneManagementMapper; |
| | | |
| | | /** |
| | | * 查询无人机管理 |
| | | * |
| | | * @param id 无人机管理主键 |
| | | * @return 无人机管理 |
| | | */ |
| | | @Override |
| | | public ArdDroneManagement selectArdDroneManagementById(String id) |
| | | { |
| | | return ardDroneManagementMapper.selectArdDroneManagementById(id); |
| | | } |
| | | |
| | | /** |
| | | * 查询无人机管理列表 |
| | | * |
| | | * @param ardDroneManagement 无人机管理 |
| | | * @return 无人机管理 |
| | | */ |
| | | @Override |
| | | public List<ArdDroneManagement> selectArdDroneManagementList(ArdDroneManagement ardDroneManagement) |
| | | { |
| | | return ardDroneManagementMapper.selectArdDroneManagementList(ardDroneManagement); |
| | | } |
| | | |
| | | /** |
| | | * 新增无人机管理 |
| | | * |
| | | * @param ardDroneManagement 无人机管理 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertArdDroneManagement(ArdDroneManagement ardDroneManagement) |
| | | { |
| | | return ardDroneManagementMapper.insertArdDroneManagement(ardDroneManagement); |
| | | } |
| | | |
| | | /** |
| | | * 修改无人机管理 |
| | | * |
| | | * @param ardDroneManagement 无人机管理 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateArdDroneManagement(ArdDroneManagement ardDroneManagement) |
| | | { |
| | | return ardDroneManagementMapper.updateArdDroneManagement(ardDroneManagement); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除无人机管理 |
| | | * |
| | | * @param ids 需要删除的无人机管理主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdDroneManagementByIds(String[] ids) |
| | | { |
| | | return ardDroneManagementMapper.deleteArdDroneManagementByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * 删除无人机管理信息 |
| | | * |
| | | * @param id 无人机管理主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdDroneManagementById(String id) |
| | | { |
| | | return ardDroneManagementMapper.deleteArdDroneManagementById(id); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ard.data.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ard.data.domain.ArdMapManagement; |
| | | import com.ard.data.mapper.ArdMapManagementMapper; |
| | | import com.ard.data.service.IArdMapManagementService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * 地图管理Service业务层处理 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Service |
| | | public class ArdMapManagementServiceImpl implements IArdMapManagementService { |
| | | |
| | | @Autowired |
| | | private ArdMapManagementMapper ardMapManagementMapper; |
| | | |
| | | /** |
| | | * 查询地图管理 |
| | | * |
| | | * @param id 地图管理主键 |
| | | * @return 地图管理 |
| | | */ |
| | | @Override |
| | | public ArdMapManagement selectArdMapManagementById(String id) |
| | | { |
| | | return ardMapManagementMapper.selectArdMapManagementById(id); |
| | | } |
| | | |
| | | /** |
| | | * 查询地图管理列表 |
| | | * |
| | | * @param ardMapManagement 地图管理 |
| | | * @return 地图管理 |
| | | */ |
| | | @Override |
| | | public List<ArdMapManagement> selectArdMapManagementList(ArdMapManagement ardMapManagement) |
| | | { |
| | | return ardMapManagementMapper.selectArdMapManagementList(ardMapManagement); |
| | | } |
| | | |
| | | /** |
| | | * 新增地图管理 |
| | | * |
| | | * @param ardMapManagement 地图管理 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertArdMapManagement(ArdMapManagement ardMapManagement) |
| | | { |
| | | return ardMapManagementMapper.insertArdMapManagement(ardMapManagement); |
| | | } |
| | | |
| | | /** |
| | | * 修改地图管理 |
| | | * |
| | | * @param ardMapManagement 地图管理 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateArdMapManagement(ArdMapManagement ardMapManagement) |
| | | { |
| | | return ardMapManagementMapper.updateArdMapManagement(ardMapManagement); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除地图管理 |
| | | * |
| | | * @param ids 需要删除的地图管理主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdMapManagementByIds(String[] ids) |
| | | { |
| | | return ardMapManagementMapper.deleteArdMapManagementByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * 删除地图管理信息 |
| | | * |
| | | * @param id 地图管理主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdMapManagementById(String id) |
| | | { |
| | | return ardMapManagementMapper.deleteArdMapManagementById(id); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ard.data.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ard.data.domain.ArdModelManagement; |
| | | import com.ard.data.mapper.ArdModelManagementMapper; |
| | | import com.ard.data.service.IArdModelManagementService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * 模型管理Service业务层处理 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Service |
| | | public class ArdModelManagementServiceImpl implements IArdModelManagementService { |
| | | |
| | | @Autowired |
| | | private ArdModelManagementMapper ardModelManagementMapper; |
| | | |
| | | /** |
| | | * 查询模型管理 |
| | | * |
| | | * @param id 模型管理主键 |
| | | * @return 模型管理 |
| | | */ |
| | | @Override |
| | | public ArdModelManagement selectArdModelManagementById(String id) |
| | | { |
| | | return ardModelManagementMapper.selectArdModelManagementById(id); |
| | | } |
| | | |
| | | /** |
| | | * 查询模型管理列表 |
| | | * |
| | | * @param ardModelManagement 模型管理 |
| | | * @return 模型管理 |
| | | */ |
| | | @Override |
| | | public List<ArdModelManagement> selectArdModelManagementList(ArdModelManagement ardModelManagement) |
| | | { |
| | | return ardModelManagementMapper.selectArdModelManagementList(ardModelManagement); |
| | | } |
| | | |
| | | /** |
| | | * 新增模型管理 |
| | | * |
| | | * @param ardModelManagement 模型管理 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertArdModelManagement(ArdModelManagement ardModelManagement) |
| | | { |
| | | return ardModelManagementMapper.insertArdModelManagement(ardModelManagement); |
| | | } |
| | | |
| | | /** |
| | | * 修改模型管理 |
| | | * |
| | | * @param ardModelManagement 模型管理 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateArdModelManagement(ArdModelManagement ardModelManagement) |
| | | { |
| | | return ardModelManagementMapper.updateArdModelManagement(ardModelManagement); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除模型管理 |
| | | * |
| | | * @param ids 需要删除的模型管理主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdModelManagementByIds(String[] ids) |
| | | { |
| | | return ardModelManagementMapper.deleteArdModelManagementByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * 删除模型管理信息 |
| | | * |
| | | * @param id 模型管理主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdModelManagementById(String id) |
| | | { |
| | | return ardModelManagementMapper.deleteArdModelManagementById(id); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ard.data.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ard.data.domain.ArdServerManagement; |
| | | import com.ard.data.mapper.ArdServerManagementMapper; |
| | | import com.ard.data.service.IArdServerManagementService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * 服务器管理Service业务层处理 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Service |
| | | public class ArdServerManagementServiceImpl implements IArdServerManagementService { |
| | | |
| | | @Autowired |
| | | private ArdServerManagementMapper ardServerManagementMapper; |
| | | |
| | | /** |
| | | * 查询服务器管理 |
| | | * |
| | | * @param id 服务器管理主键 |
| | | * @return 服务器管理 |
| | | */ |
| | | @Override |
| | | public ArdServerManagement selectArdServerManagementById(String id) |
| | | { |
| | | return ardServerManagementMapper.selectArdServerManagementById(id); |
| | | } |
| | | |
| | | /** |
| | | * 查询服务器管理列表 |
| | | * |
| | | * @param ardServerManagement 服务器管理 |
| | | * @return 服务器管理 |
| | | */ |
| | | @Override |
| | | public List<ArdServerManagement> selectArdServerManagementList(ArdServerManagement ardServerManagement) |
| | | { |
| | | return ardServerManagementMapper.selectArdServerManagementList(ardServerManagement); |
| | | } |
| | | |
| | | /** |
| | | * 新增服务器管理 |
| | | * |
| | | * @param ardServerManagement 服务器管理 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertArdServerManagement(ArdServerManagement ardServerManagement) |
| | | { |
| | | return ardServerManagementMapper.insertArdServerManagement(ardServerManagement); |
| | | } |
| | | |
| | | /** |
| | | * 修改服务器管理 |
| | | * |
| | | * @param ardServerManagement 服务器管理 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateArdServerManagement(ArdServerManagement ardServerManagement) |
| | | { |
| | | return ardServerManagementMapper.updateArdServerManagement(ardServerManagement); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除服务器管理 |
| | | * |
| | | * @param ids 需要删除的服务器管理主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdServerManagementByIds(String[] ids) |
| | | { |
| | | return ardServerManagementMapper.deleteArdServerManagementByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * 删除服务器管理信息 |
| | | * |
| | | * @param id 服务器管理主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdServerManagementById(String id) |
| | | { |
| | | return ardServerManagementMapper.deleteArdServerManagementById(id); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ard.data.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ard.data.domain.ArdTileManagement; |
| | | import com.ard.data.mapper.ArdTileManagementMapper; |
| | | import com.ard.data.service.IArdTileManagementService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * tile管理Service业务层处理 |
| | | * |
| | | * @author xia |
| | | * @date 2025-10-10 |
| | | */ |
| | | @Service |
| | | public class ArdTileManagementServiceImpl implements IArdTileManagementService { |
| | | |
| | | @Autowired |
| | | private ArdTileManagementMapper ardTileManagementMapper; |
| | | |
| | | /** |
| | | * 查询tile管理 |
| | | * |
| | | * @param id tile管理主键 |
| | | * @return tile管理 |
| | | */ |
| | | @Override |
| | | public ArdTileManagement selectArdTileManagementById(String id) |
| | | { |
| | | return ardTileManagementMapper.selectArdTileManagementById(id); |
| | | } |
| | | |
| | | /** |
| | | * 查询tile管理列表 |
| | | * |
| | | * @param ardTileManagement tile管理 |
| | | * @return tile管理 |
| | | */ |
| | | @Override |
| | | public List<ArdTileManagement> selectArdTileManagementList(ArdTileManagement ardTileManagement) |
| | | { |
| | | return ardTileManagementMapper.selectArdTileManagementList(ardTileManagement); |
| | | } |
| | | |
| | | /** |
| | | * 新增tile管理 |
| | | * |
| | | * @param ardTileManagement tile管理 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertArdTileManagement(ArdTileManagement ardTileManagement) |
| | | { |
| | | return ardTileManagementMapper.insertArdTileManagement(ardTileManagement); |
| | | } |
| | | |
| | | /** |
| | | * 修改tile管理 |
| | | * |
| | | * @param ardTileManagement tile管理 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateArdTileManagement(ArdTileManagement ardTileManagement) |
| | | { |
| | | return ardTileManagementMapper.updateArdTileManagement(ardTileManagement); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除tile管理 |
| | | * |
| | | * @param ids 需要删除的tile管理主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdTileManagementByIds(String[] ids) |
| | | { |
| | | return ardTileManagementMapper.deleteArdTileManagementByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * 删除tile管理信息 |
| | | * |
| | | * @param id tile管理主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdTileManagementById(String id) |
| | | { |
| | | return ardTileManagementMapper.deleteArdTileManagementById(id); |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ard.data.mapper.ArdDroneManagementMapper"> |
| | | |
| | | <resultMap type="ArdDroneManagement" id="ArdDroneManagementResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="deviceModel" column="device_model" /> |
| | | <result property="deviceSn" column="device_sn" /> |
| | | <result property="deviceName" column="device_name" /> |
| | | <result property="deviceStatus" column="device_status" /> |
| | | <result property="deviceAddTime" column="device_add_time" /> |
| | | <result property="onlineTime" column="online_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdDroneManagementVo"> |
| | | select id, |
| | | device_model, |
| | | device_sn, |
| | | device_name, |
| | | device_status, |
| | | device_add_time, |
| | | online_time |
| | | from ard_drone_management |
| | | </sql> |
| | | |
| | | <select id="selectArdDroneManagementList" parameterType="ArdDroneManagement" resultMap="ArdDroneManagementResult"> |
| | | <include refid="selectArdDroneManagementVo"/> |
| | | <where> |
| | | <if test="deviceModel != null and deviceModel != ''"> and device_model = #{deviceModel}</if> |
| | | <if test="deviceSn != null and deviceSn != ''"> and device_sn = #{deviceSn}</if> |
| | | <if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if> |
| | | <if test="deviceStatus != null and deviceStatus != ''"> and device_status = #{deviceStatus}</if> |
| | | <if test="deviceAddTime != null "> and device_add_time = #{deviceAddTime}</if> |
| | | <if test="onlineTime != null "> and online_time = #{onlineTime}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectArdDroneManagementById" parameterType="String" resultMap="ArdDroneManagementResult"> |
| | | <include refid="selectArdDroneManagementVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertArdDroneManagement" parameterType="ArdDroneManagement"> |
| | | insert into ard_drone_management |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="deviceModel != null">device_model,</if> |
| | | <if test="deviceSn != null">device_sn,</if> |
| | | <if test="deviceName != null">device_name,</if> |
| | | <if test="deviceStatus != null">device_status,</if> |
| | | <if test="deviceAddTime != null">device_add_time,</if> |
| | | <if test="onlineTime != null">online_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="deviceModel != null">#{deviceModel},</if> |
| | | <if test="deviceSn != null">#{deviceSn},</if> |
| | | <if test="deviceName != null">#{deviceName},</if> |
| | | <if test="deviceStatus != null">#{deviceStatus},</if> |
| | | <if test="deviceAddTime != null">#{deviceAddTime},</if> |
| | | <if test="onlineTime != null">#{onlineTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateArdDroneManagement" parameterType="ArdDroneManagement"> |
| | | update ard_drone_management |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="deviceModel != null">device_model = #{deviceModel},</if> |
| | | <if test="deviceSn != null">device_sn = #{deviceSn},</if> |
| | | <if test="deviceName != null">device_name = #{deviceName},</if> |
| | | <if test="deviceStatus != null">device_status = #{deviceStatus},</if> |
| | | <if test="deviceAddTime != null">device_add_time = #{deviceAddTime},</if> |
| | | <if test="onlineTime != null">online_time = #{onlineTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteArdDroneManagementById" parameterType="String"> |
| | | delete from ard_drone_management where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteArdDroneManagementByIds" parameterType="String"> |
| | | delete from ard_drone_management where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ard.data.mapper.ArdMapManagementMapper"> |
| | | |
| | | <resultMap type="ArdMapManagement" id="ArdMapManagementResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="mapName" column="map_name" /> |
| | | <result property="mapType" column="map_type" /> |
| | | <result property="fileName" column="file_name" /> |
| | | <result property="releaseStatus" column="release_status" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdMapManagementVo"> |
| | | select id, |
| | | map_name, |
| | | map_type, |
| | | file_name, |
| | | release_status |
| | | from ard_map_management |
| | | </sql> |
| | | |
| | | <select id="selectArdMapManagementList" parameterType="ArdMapManagement" resultMap="ArdMapManagementResult"> |
| | | <include refid="selectArdMapManagementVo"/> |
| | | <where> |
| | | <if test="mapName != null and mapName != ''"> and map_name like concat('%', #{mapName}, '%')</if> |
| | | <if test="mapType != null and mapType != ''"> and map_type = #{mapType}</if> |
| | | <if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if> |
| | | <if test="releaseStatus != null and releaseStatus != ''"> and release_status = #{releaseStatus}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectArdMapManagementById" parameterType="String" resultMap="ArdMapManagementResult"> |
| | | <include refid="selectArdMapManagementVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertArdMapManagement" parameterType="ArdMapManagement"> |
| | | insert into ard_map_management |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="mapName != null">map_name,</if> |
| | | <if test="mapType != null">map_type,</if> |
| | | <if test="fileName != null">file_name,</if> |
| | | <if test="releaseStatus != null">release_status,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="mapName != null">#{mapName},</if> |
| | | <if test="mapType != null">#{mapType},</if> |
| | | <if test="fileName != null">#{fileName},</if> |
| | | <if test="releaseStatus != null">#{releaseStatus},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateArdMapManagement" parameterType="ArdMapManagement"> |
| | | update ard_map_management |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="mapName != null">map_name = #{mapName},</if> |
| | | <if test="mapType != null">map_type = #{mapType},</if> |
| | | <if test="fileName != null">file_name = #{fileName},</if> |
| | | <if test="releaseStatus != null">release_status = #{releaseStatus},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteArdMapManagementById" parameterType="String"> |
| | | delete from ard_map_management where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteArdMapManagementByIds" parameterType="String"> |
| | | delete from ard_map_management where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ard.data.mapper.ArdModelManagementMapper"> |
| | | |
| | | <resultMap type="ArdModelManagement" id="ArdModelManagementResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="modelName" column="model_name" /> |
| | | <result property="longitude" column="longitude" /> |
| | | <result property="latitude" column="latitude" /> |
| | | <result property="height" column="height" /> |
| | | <result property="proportion" column="proportion" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdModelManagementVo"> |
| | | select id, |
| | | model_name, |
| | | longitude, |
| | | latitude, |
| | | height, |
| | | proportion |
| | | from ard_model_management |
| | | </sql> |
| | | |
| | | <select id="selectArdModelManagementList" parameterType="ArdModelManagement" resultMap="ArdModelManagementResult"> |
| | | <include refid="selectArdModelManagementVo"/> |
| | | <where> |
| | | <if test="modelName != null and modelName != ''"> and model_name like concat('%', #{modelName}, '%')</if> |
| | | <if test="longitude != null "> and longitude = #{longitude}</if> |
| | | <if test="latitude != null "> and latitude = #{latitude}</if> |
| | | <if test="height != null "> and height = #{height}</if> |
| | | <if test="proportion != null "> and proportion = #{proportion}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectArdModelManagementById" parameterType="String" resultMap="ArdModelManagementResult"> |
| | | <include refid="selectArdModelManagementVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertArdModelManagement" parameterType="ArdModelManagement"> |
| | | insert into ard_model_management |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="modelName != null">model_name,</if> |
| | | <if test="longitude != null">longitude,</if> |
| | | <if test="latitude != null">latitude,</if> |
| | | <if test="height != null">height,</if> |
| | | <if test="proportion != null">proportion,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="modelName != null">#{modelName},</if> |
| | | <if test="longitude != null">#{longitude},</if> |
| | | <if test="latitude != null">#{latitude},</if> |
| | | <if test="height != null">#{height},</if> |
| | | <if test="proportion != null">#{proportion},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateArdModelManagement" parameterType="ArdModelManagement"> |
| | | update ard_model_management |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="modelName != null">model_name = #{modelName},</if> |
| | | <if test="longitude != null">longitude = #{longitude},</if> |
| | | <if test="latitude != null">latitude = #{latitude},</if> |
| | | <if test="height != null">height = #{height},</if> |
| | | <if test="proportion != null">proportion = #{proportion},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteArdModelManagementById" parameterType="String"> |
| | | delete from ard_model_management where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteArdModelManagementByIds" parameterType="String"> |
| | | delete from ard_model_management where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ard.data.mapper.ArdServerManagementMapper"> |
| | | |
| | | <resultMap type="ArdServerManagement" id="ArdServerManagementResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="serverName" column="server_name" /> |
| | | <result property="ipAddress" column="ip_address" /> |
| | | <result property="position" column="position" /> |
| | | <result property="status" column="status" /> |
| | | <result property="cpuUsageRate" column="cpu_usage_rate" /> |
| | | <result property="memoryUsage" column="memory_usage" /> |
| | | <result property="operatingSystem" column="operating_system" /> |
| | | <result property="runtime" column="runtime" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdServerManagementVo"> |
| | | select id, |
| | | server_name, |
| | | ip_address, |
| | | position, |
| | | status, |
| | | cpu_usage_rate, |
| | | memory_usage, |
| | | operating_system, |
| | | runtime |
| | | from ard_server_management |
| | | </sql> |
| | | |
| | | <select id="selectArdServerManagementList" parameterType="ArdServerManagement" resultMap="ArdServerManagementResult"> |
| | | <include refid="selectArdServerManagementVo"/> |
| | | <where> |
| | | <if test="serverName != null and serverName != ''"> and server_name like concat('%', #{serverName}, '%')</if> |
| | | <if test="ipAddress != null and ipAddress != ''"> and ip_address = #{ipAddress}</if> |
| | | <if test="position != null and position != ''"> and position = #{position}</if> |
| | | <if test="status != null and status != ''"> and status = #{status}</if> |
| | | <if test="cpuUsageRate != null "> and cpu_usage_rate = #{cpuUsageRate}</if> |
| | | <if test="memoryUsage != null "> and memory_usage = #{memoryUsage}</if> |
| | | <if test="operatingSystem != null and operatingSystem != ''"> and operating_system = #{operatingSystem}</if> |
| | | <if test="runtime != null "> and runtime = #{runtime}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectArdServerManagementById" parameterType="String" resultMap="ArdServerManagementResult"> |
| | | <include refid="selectArdServerManagementVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertArdServerManagement" parameterType="ArdServerManagement"> |
| | | insert into ard_server_management |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="serverName != null">server_name,</if> |
| | | <if test="ipAddress != null">ip_address,</if> |
| | | <if test="position != null">position,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="cpuUsageRate != null">cpu_usage_rate,</if> |
| | | <if test="memoryUsage != null">memory_usage,</if> |
| | | <if test="operatingSystem != null">operating_system,</if> |
| | | <if test="runtime != null">runtime,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="serverName != null">#{serverName},</if> |
| | | <if test="ipAddress != null">#{ipAddress},</if> |
| | | <if test="position != null">#{position},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="cpuUsageRate != null">#{cpuUsageRate},</if> |
| | | <if test="memoryUsage != null">#{memoryUsage},</if> |
| | | <if test="operatingSystem != null">#{operatingSystem},</if> |
| | | <if test="runtime != null">#{runtime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateArdServerManagement" parameterType="ArdServerManagement"> |
| | | update ard_server_management |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="serverName != null">server_name = #{serverName},</if> |
| | | <if test="ipAddress != null">ip_address = #{ipAddress},</if> |
| | | <if test="position != null">position = #{position},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="cpuUsageRate != null">cpu_usage_rate = #{cpuUsageRate},</if> |
| | | <if test="memoryUsage != null">memory_usage = #{memoryUsage},</if> |
| | | <if test="operatingSystem != null">operating_system = #{operatingSystem},</if> |
| | | <if test="runtime != null">runtime = #{runtime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteArdServerManagementById" parameterType="String"> |
| | | delete from ard_server_management where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteArdServerManagementByIds" parameterType="String"> |
| | | delete from ard_server_management where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ard.data.mapper.ArdTileManagementMapper"> |
| | | |
| | | <resultMap type="ArdTileManagement" id="ArdTileManagementResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="tilesName" column="tiles_name" /> |
| | | <result property="tilesHeight" column="tiles_height" /> |
| | | <result property="tileAddress" column="tile_address" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdTileManagementVo"> |
| | | select id, |
| | | tiles_name, |
| | | tiles_height, |
| | | tile_address |
| | | from ard_tile_management |
| | | </sql> |
| | | |
| | | <select id="selectArdTileManagementList" parameterType="ArdTileManagement" resultMap="ArdTileManagementResult"> |
| | | <include refid="selectArdTileManagementVo"/> |
| | | <where> |
| | | <if test="tilesName != null and tilesName != ''"> and tiles_name like concat('%', #{tilesName}, '%')</if> |
| | | <if test="tilesHeight != null "> and tiles_height = #{tilesHeight}</if> |
| | | <if test="tileAddress != null and tileAddress != ''"> and tile_address = #{tileAddress}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectArdTileManagementById" parameterType="String" resultMap="ArdTileManagementResult"> |
| | | <include refid="selectArdTileManagementVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertArdTileManagement" parameterType="ArdTileManagement"> |
| | | insert into ard_tile_management |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="tilesName != null">tiles_name,</if> |
| | | <if test="tilesHeight != null">tiles_height,</if> |
| | | <if test="tileAddress != null">tile_address,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="tilesName != null">#{tilesName},</if> |
| | | <if test="tilesHeight != null">#{tilesHeight},</if> |
| | | <if test="tileAddress != null">#{tileAddress},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateArdTileManagement" parameterType="ArdTileManagement"> |
| | | update ard_tile_management |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="tilesName != null">tiles_name = #{tilesName},</if> |
| | | <if test="tilesHeight != null">tiles_height = #{tilesHeight},</if> |
| | | <if test="tileAddress != null">tile_address = #{tileAddress},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteArdTileManagementById" parameterType="String"> |
| | | delete from ard_tile_management where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteArdTileManagementByIds" parameterType="String"> |
| | | delete from ard_tile_management where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | pipeline.addLast("handler", clientHandler); |
| | | } |
| | | }); |
| | | System.out.println("客户端 ok 。。。 "); |
| | | return bootstrap; |
| | | } |
| | | |