| | |
| | | /** |
| | | * 查询【请填写功能名称】列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(Equipmentinfo equipmentinfo) { |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody Equipmentinfo equipmentinfo) { |
| | | startPage(); |
| | | List<Equipmentinfo> list = equipmentinfoService.selectEquipmentinfoList(equipmentinfo); |
| | | return getDataTable(list); |
| | |
| | | /** |
| | | * 导出【请填写功能名称】列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:export')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, Equipmentinfo equipmentinfo) { |
| | |
| | | /** |
| | | * 获取【请填写功能名称】详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(equipmentinfoService.selectEquipmentinfoById(id)); |
| | |
| | | /** |
| | | * 新增【请填写功能名称】 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:add')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody Equipmentinfo equipmentinfo) { |
| | | return toAjax(equipmentinfoService.insertEquipmentinfo(equipmentinfo)); |
| | | } |
| | |
| | | /** |
| | | * 修改【请填写功能名称】 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:edit')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody Equipmentinfo equipmentinfo) { |
| | | return toAjax(equipmentinfoService.updateEquipmentinfo(equipmentinfo)); |
| | | } |
| | |
| | | /** |
| | | * 删除【请填写功能名称】 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:equipmentinfo:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:remove')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(equipmentinfoService.deleteEquipmentinfoByIds(ids)); |
| | | } |
| | |
| | | /** |
| | | * 问题上报 |
| | | */ |
| | | @RequestMapping("/reportContent") |
| | | @PostMapping("/reportContent") |
| | | public AjaxResult reportContent(@RequestBody ReportReqVo reportReqVo) { |
| | | if (StringUtils.isEmpty(reportReqVo.getDealDept()) && StringUtils.isEmpty(reportReqVo.getDealPersionNO())) { |
| | | return error("处理人和处理部门不能同时为空!"); |