| | |
| | | private ITBatteryGroupFieldService batteryGroupFieldService; |
| | | |
| | | /** 分页查询电池组字段列表。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroupField:list')") |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroup:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TBatteryGroupField field) |
| | | { |
| | |
| | | } |
| | | |
| | | /** 查询电池组字段详情。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroupField:query')") |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroup:query')") |
| | | @GetMapping(value = "/{fieldId}") |
| | | public AjaxResult getInfo(@PathVariable Long fieldId) |
| | | { |
| | |
| | | } |
| | | |
| | | /** 新增电池组字段。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroupField:add')") |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroup:add')") |
| | | @Log(title = "电池组字段管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody TBatteryGroupField field) |
| | | { |
| | | field.setCreateBy(getUsername()); |
| | | return toAjax(batteryGroupFieldService.insertBatteryGroupField(field)); |
| | | } |
| | | |
| | | /** 编辑电池组字段基础资料。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroupField:edit')") |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroup:edit')") |
| | | @Log(title = "电池组字段管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody TBatteryGroupField field) |
| | |
| | | } |
| | | |
| | | /** 启用或禁用电池组字段。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroupField:edit')") |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroup:edit')") |
| | | @Log(title = "电池组字段管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/changeStatus") |
| | | public AjaxResult changeStatus(@RequestBody TBatteryGroupField field) |
| | |
| | | } |
| | | |
| | | /** 批量逻辑删除电池组字段。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroupField:remove')") |
| | | @PreAuthorize("@ss.hasPermi('system:batteryGroup:remove')") |
| | | @Log(title = "电池组字段管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{fieldIds}") |
| | | public AjaxResult remove(@PathVariable Long[] fieldIds) |