新增 车位相机信息表以及相机解析信息逻辑

This commit is contained in:
Lemon
2023-12-11 09:00:58 +08:00
parent 5e4c8c7f84
commit a98a36f04f
10 changed files with 995 additions and 147 deletions

View File

@@ -0,0 +1,98 @@
package com.jsowell.web.controller.pile;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.jsowell.common.annotation.Log;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.core.domain.AjaxResult;
import com.jsowell.common.enums.BusinessType;
import com.jsowell.pile.domain.PileCameraInfo;
import com.jsowell.pile.service.IPileCameraInfoService;
import com.jsowell.common.util.poi.ExcelUtil;
import com.jsowell.common.core.page.TableDataInfo;
/**
* 【请填写功能名称】Controller
*
* @author jsowell
* @date 2023-12-09
*/
@RestController
@RequestMapping("/pile/info")
public class PileCameraInfoController extends BaseController {
@Autowired
private IPileCameraInfoService pileCameraInfoService;
/**
* 查询【请填写功能名称】列表
*/
@PreAuthorize("@ss.hasPermi('pile:info:list')")
@GetMapping("/list")
public TableDataInfo list(PileCameraInfo pileCameraInfo) {
startPage();
List<PileCameraInfo> list = pileCameraInfoService.selectPileCameraInfoList(pileCameraInfo);
return getDataTable(list);
}
/**
* 导出【请填写功能名称】列表
*/
@PreAuthorize("@ss.hasPermi('pile:info: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, "【请填写功能名称】数据");
}
/**
* 获取【请填写功能名称】详细信息
*/
@PreAuthorize("@ss.hasPermi('pile:info: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)
@PostMapping
public AjaxResult add(@RequestBody PileCameraInfo pileCameraInfo) {
return toAjax(pileCameraInfoService.insertPileCameraInfo(pileCameraInfo));
}
/**
* 修改【请填写功能名称】
*/
@PreAuthorize("@ss.hasPermi('pile:info: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)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(pileCameraInfoService.deletePileCameraInfoByIds(ids));
}
}