From 8edd3013a72bc4b1ac321e5c4d81848e9014e3ac Mon Sep 17 00:00:00 2001 From: Lemon Date: Mon, 11 Dec 2023 10:59:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=20=E7=9B=B8=E6=9C=BA?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E7=AE=A1=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pile/PileCameraInfoController.java | 38 +- .../pile/mapper/PileCameraInfoMapper.java | 28 +- .../pile/service/IPileCameraInfoService.java | 30 +- .../impl/PileCameraInfoServiceImpl.java | 30 +- jsowell-ui/src/api/pile/camera.js | 44 +++ jsowell-ui/src/views/pile/camera/index.vue | 361 ++++++++++++++++++ 6 files changed, 468 insertions(+), 63 deletions(-) create mode 100644 jsowell-ui/src/api/pile/camera.js create mode 100644 jsowell-ui/src/views/pile/camera/index.vue diff --git a/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileCameraInfoController.java b/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileCameraInfoController.java index 959d19d39..a08818775 100644 --- a/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileCameraInfoController.java +++ b/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileCameraInfoController.java @@ -23,21 +23,21 @@ import com.jsowell.common.util.poi.ExcelUtil; import com.jsowell.common.core.page.TableDataInfo; /** - * 【请填写功能名称】Controller + * 车位相机信息Controller * * @author jsowell * @date 2023-12-09 */ @RestController -@RequestMapping("/pile/info") +@RequestMapping("/pile/camera") public class PileCameraInfoController extends BaseController { @Autowired private IPileCameraInfoService pileCameraInfoService; /** - * 查询【请填写功能名称】列表 + * 查询车位相机信息列表 */ - @PreAuthorize("@ss.hasPermi('pile:info:list')") + @PreAuthorize("@ss.hasPermi('pile:camera:list')") @GetMapping("/list") public TableDataInfo list(PileCameraInfo pileCameraInfo) { startPage(); @@ -46,51 +46,51 @@ public class PileCameraInfoController extends BaseController { } /** - * 导出【请填写功能名称】列表 + * 导出车位相机信息列表 */ - @PreAuthorize("@ss.hasPermi('pile:info:export')") - @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) + @PreAuthorize("@ss.hasPermi('pile:camera:export')") + @Log(title = "车位相机信息", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, PileCameraInfo pileCameraInfo) { List list = pileCameraInfoService.selectPileCameraInfoList(pileCameraInfo); ExcelUtil util = new ExcelUtil(PileCameraInfo.class); - util.exportExcel(response, list, "【请填写功能名称】数据"); + util.exportExcel(response, list, "车位相机信息数据"); } /** - * 获取【请填写功能名称】详细信息 + * 获取车位相机信息详细信息 */ - @PreAuthorize("@ss.hasPermi('pile:info:query')") + @PreAuthorize("@ss.hasPermi('pile:camera:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return AjaxResult.success(pileCameraInfoService.selectPileCameraInfoById(id)); } /** - * 新增【请填写功能名称】 + * 新增车位相机信息 */ - @PreAuthorize("@ss.hasPermi('pile:info:add')") - @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) + @PreAuthorize("@ss.hasPermi('pile:camera:add')") + @Log(title = "车位相机信息", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody PileCameraInfo pileCameraInfo) { return toAjax(pileCameraInfoService.insertPileCameraInfo(pileCameraInfo)); } /** - * 修改【请填写功能名称】 + * 修改车位相机信息 */ - @PreAuthorize("@ss.hasPermi('pile:info:edit')") - @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) + @PreAuthorize("@ss.hasPermi('pile:camera:edit')") + @Log(title = "车位相机信息", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody PileCameraInfo pileCameraInfo) { return toAjax(pileCameraInfoService.updatePileCameraInfo(pileCameraInfo)); } /** - * 删除【请填写功能名称】 + * 删除车位相机信息 */ - @PreAuthorize("@ss.hasPermi('pile:info:remove')") - @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) + @PreAuthorize("@ss.hasPermi('pile:camera:remove')") + @Log(title = "车位相机信息", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(pileCameraInfoService.deletePileCameraInfoByIds(ids)); diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/mapper/PileCameraInfoMapper.java b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/PileCameraInfoMapper.java index bc15b1333..92d0578c9 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/mapper/PileCameraInfoMapper.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/PileCameraInfoMapper.java @@ -6,7 +6,7 @@ import com.jsowell.pile.domain.PileCameraInfo; import org.springframework.stereotype.Repository; /** - * 【请填写功能名称】Mapper接口 + * 车位相机信息Mapper接口 * * @author jsowell * @date 2023-12-09 @@ -14,47 +14,47 @@ import org.springframework.stereotype.Repository; @Repository public interface PileCameraInfoMapper { /** - * 查询【请填写功能名称】 + * 查询车位相机信息 * - * @param id 【请填写功能名称】主键 - * @return 【请填写功能名称】 + * @param id 车位相机信息主键 + * @return 车位相机信息 */ public PileCameraInfo selectPileCameraInfoById(Long id); /** - * 查询【请填写功能名称】列表 + * 查询车位相机信息列表 * - * @param pileCameraInfo 【请填写功能名称】 - * @return 【请填写功能名称】集合 + * @param pileCameraInfo 车位相机信息 + * @return 车位相机信息集合 */ public List selectPileCameraInfoList(PileCameraInfo pileCameraInfo); /** - * 新增【请填写功能名称】 + * 新增车位相机信息 * - * @param pileCameraInfo 【请填写功能名称】 + * @param pileCameraInfo 车位相机信息 * @return 结果 */ public int insertPileCameraInfo(PileCameraInfo pileCameraInfo); /** - * 修改【请填写功能名称】 + * 修改车位相机信息 * - * @param pileCameraInfo 【请填写功能名称】 + * @param pileCameraInfo 车位相机信息 * @return 结果 */ public int updatePileCameraInfo(PileCameraInfo pileCameraInfo); /** - * 删除【请填写功能名称】 + * 删除车位相机信息 * - * @param id 【请填写功能名称】主键 + * @param id 车位相机信息主键 * @return 结果 */ public int deletePileCameraInfoById(Long id); /** - * 批量删除【请填写功能名称】 + * 批量删除车位相机信息 * * @param ids 需要删除的数据主键集合 * @return 结果 diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/IPileCameraInfoService.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/IPileCameraInfoService.java index d26ee68a2..8936d222d 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/IPileCameraInfoService.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/IPileCameraInfoService.java @@ -5,56 +5,56 @@ import java.util.List; import com.jsowell.pile.domain.PileCameraInfo; /** - * 【请填写功能名称】Service接口 + * 车位相机信息Service接口 * * @author jsowell * @date 2023-12-09 */ public interface IPileCameraInfoService { /** - * 查询【请填写功能名称】 + * 查询车位相机信息 * - * @param id 【请填写功能名称】主键 - * @return 【请填写功能名称】 + * @param id 车位相机信息主键 + * @return 车位相机信息 */ public PileCameraInfo selectPileCameraInfoById(Long id); /** - * 查询【请填写功能名称】列表 + * 查询车位相机信息列表 * - * @param pileCameraInfo 【请填写功能名称】 - * @return 【请填写功能名称】集合 + * @param pileCameraInfo 车位相机信息 + * @return 车位相机信息集合 */ public List selectPileCameraInfoList(PileCameraInfo pileCameraInfo); /** - * 新增【请填写功能名称】 + * 新增车位相机信息 * - * @param pileCameraInfo 【请填写功能名称】 + * @param pileCameraInfo 车位相机信息 * @return 结果 */ public int insertPileCameraInfo(PileCameraInfo pileCameraInfo); /** - * 修改【请填写功能名称】 + * 修改车位相机信息 * - * @param pileCameraInfo 【请填写功能名称】 + * @param pileCameraInfo 车位相机信息 * @return 结果 */ public int updatePileCameraInfo(PileCameraInfo pileCameraInfo); /** - * 批量删除【请填写功能名称】 + * 批量删除车位相机信息 * - * @param ids 需要删除的【请填写功能名称】主键集合 + * @param ids 需要删除的车位相机信息主键集合 * @return 结果 */ public int deletePileCameraInfoByIds(Long[] ids); /** - * 删除【请填写功能名称】信息 + * 删除车位相机信息信息 * - * @param id 【请填写功能名称】主键 + * @param id 车位相机信息主键 * @return 结果 */ public int deletePileCameraInfoById(Long id); diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileCameraInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileCameraInfoServiceImpl.java index 7a263da55..986dfdc83 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileCameraInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileCameraInfoServiceImpl.java @@ -10,7 +10,7 @@ import com.jsowell.pile.domain.PileCameraInfo; import com.jsowell.pile.service.IPileCameraInfoService; /** - * 【请填写功能名称】Service业务层处理 + * 车位相机信息Service业务层处理 * * @author jsowell * @date 2023-12-09 @@ -21,10 +21,10 @@ public class PileCameraInfoServiceImpl implements IPileCameraInfoService { private PileCameraInfoMapper pileCameraInfoMapper; /** - * 查询【请填写功能名称】 + * 查询车位相机信息 * - * @param id 【请填写功能名称】主键 - * @return 【请填写功能名称】 + * @param id 车位相机信息主键 + * @return 车位相机信息 */ @Override public PileCameraInfo selectPileCameraInfoById(Long id) { @@ -32,10 +32,10 @@ public class PileCameraInfoServiceImpl implements IPileCameraInfoService { } /** - * 查询【请填写功能名称】列表 + * 查询车位相机信息列表 * - * @param pileCameraInfo 【请填写功能名称】 - * @return 【请填写功能名称】 + * @param pileCameraInfo 车位相机信息 + * @return 车位相机信息 */ @Override public List selectPileCameraInfoList(PileCameraInfo pileCameraInfo) { @@ -43,9 +43,9 @@ public class PileCameraInfoServiceImpl implements IPileCameraInfoService { } /** - * 新增【请填写功能名称】 + * 新增车位相机信息 * - * @param pileCameraInfo 【请填写功能名称】 + * @param pileCameraInfo 车位相机信息 * @return 结果 */ @Override @@ -55,9 +55,9 @@ public class PileCameraInfoServiceImpl implements IPileCameraInfoService { } /** - * 修改【请填写功能名称】 + * 修改车位相机信息 * - * @param pileCameraInfo 【请填写功能名称】 + * @param pileCameraInfo 车位相机信息 * @return 结果 */ @Override @@ -66,9 +66,9 @@ public class PileCameraInfoServiceImpl implements IPileCameraInfoService { } /** - * 批量删除【请填写功能名称】 + * 批量删除车位相机信息 * - * @param ids 需要删除的【请填写功能名称】主键 + * @param ids 需要删除的车位相机信息主键 * @return 结果 */ @Override @@ -77,9 +77,9 @@ public class PileCameraInfoServiceImpl implements IPileCameraInfoService { } /** - * 删除【请填写功能名称】信息 + * 删除车位相机信息信息 * - * @param id 【请填写功能名称】主键 + * @param id 车位相机信息主键 * @return 结果 */ @Override diff --git a/jsowell-ui/src/api/pile/camera.js b/jsowell-ui/src/api/pile/camera.js new file mode 100644 index 000000000..7f7d3b4a5 --- /dev/null +++ b/jsowell-ui/src/api/pile/camera.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询车位相机信息列表 +export function listCamera(query) { + return request({ + url: '/pile/camera/list', + method: 'get', + params: query + }) +} + +// 查询车位相机信息详细 +export function getCamera(id) { + return request({ + url: '/pile/camera/' + id, + method: 'get' + }) +} + +// 新增车位相机信息 +export function addCamera(data) { + return request({ + url: '/pile/camera', + method: 'post', + data: data + }) +} + +// 修改车位相机信息 +export function updateCamera(data) { + return request({ + url: '/pile/camera', + method: 'put', + data: data + }) +} + +// 删除车位相机信息 +export function delCamera(id) { + return request({ + url: '/pile/camera/' + id, + method: 'delete' + }) +} diff --git a/jsowell-ui/src/views/pile/camera/index.vue b/jsowell-ui/src/views/pile/camera/index.vue new file mode 100644 index 000000000..c2f642301 --- /dev/null +++ b/jsowell-ui/src/views/pile/camera/index.vue @@ -0,0 +1,361 @@ + + +