mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-23 04:25:21 +08:00
新增 相机管理后管页面
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user