新增 相机管理后管页面

This commit is contained in:
Lemon
2023-12-11 10:59:54 +08:00
parent a98a36f04f
commit 8edd3013a7
6 changed files with 468 additions and 63 deletions

View File

@@ -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<PileCameraInfo> list = pileCameraInfoService.selectPileCameraInfoList(pileCameraInfo);
ExcelUtil<PileCameraInfo> util = new ExcelUtil<PileCameraInfo>(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));