| | |
| | | /** |
| | | * 查询工厂管理列表 |
| | | */ |
| | | @RequiresPermissions("aps_plant:list") |
| | | @RequiresPermissions("plant:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ApsPlant apsPlant) |
| | | { |
| | |
| | | /** |
| | | * 导出工厂管理列表 |
| | | */ |
| | | @RequiresPermissions("aps_plant:export") |
| | | @RequiresPermissions("plant:export") |
| | | @Log(title = "工厂管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ApsPlant apsPlant) |
| | |
| | | /** |
| | | * 获取工厂管理详细信息 |
| | | */ |
| | | @RequiresPermissions("aps_plant:query") |
| | | @RequiresPermissions("plant:query") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return success(apsPlantService.selectApsPlantById(id)); |
| | | } |
| | |
| | | /** |
| | | * 新增工厂管理 |
| | | */ |
| | | @RequiresPermissions("aps_plant:add") |
| | | @RequiresPermissions("plant:add") |
| | | @Log(title = "工厂管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ApsPlant apsPlant) |
| | |
| | | /** |
| | | * 修改工厂管理 |
| | | */ |
| | | @RequiresPermissions("aps_plant:edit") |
| | | @RequiresPermissions("plant:edit") |
| | | @Log(title = "工厂管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ApsPlant apsPlant) |
| | |
| | | /** |
| | | * 删除工厂管理 |
| | | */ |
| | | @RequiresPermissions("aps_plant:remove") |
| | | @RequiresPermissions("plant:remove") |
| | | @Log(title = "工厂管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(apsPlantService.deleteApsPlantByIds(ids)); |
| | | } |