|
|
|
@ -50,6 +50,7 @@ public class EquBaseController extends BaseController |
|
|
|
@PreAuthorize("@ss.hasPermi('device:files:list')") |
|
|
|
@PreAuthorize("@ss.hasPermi('device:files:list')") |
|
|
|
@GetMapping("/list") |
|
|
|
@GetMapping("/list") |
|
|
|
@ApiOperation("查询多个设备信息") |
|
|
|
@ApiOperation("查询多个设备信息") |
|
|
|
|
|
|
|
@Log(title = "设备档案查询", businessType = BusinessType.OTHER) |
|
|
|
public TableDataInfo list( EquBaseQueryDto equBase) |
|
|
|
public TableDataInfo list( EquBaseQueryDto equBase) |
|
|
|
{ |
|
|
|
{ |
|
|
|
startPage(); |
|
|
|
startPage(); |
|
|
|
@ -147,6 +148,7 @@ public class EquBaseController extends BaseController |
|
|
|
@PreAuthorize("@ss.hasPermi('device:files:query1')") |
|
|
|
@PreAuthorize("@ss.hasPermi('device:files:query1')") |
|
|
|
@GetMapping(value = "/{id}") |
|
|
|
@GetMapping(value = "/{id}") |
|
|
|
@ApiOperation("查询单个设备信息") |
|
|
|
@ApiOperation("查询单个设备信息") |
|
|
|
|
|
|
|
@Log(title = "单个设备查询", businessType = BusinessType.OTHER) |
|
|
|
public AjaxResult getInfo(@PathVariable("id") String id) |
|
|
|
public AjaxResult getInfo(@PathVariable("id") String id) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return success(equBaseService.selectEquBaseById(id)); |
|
|
|
return success(equBaseService.selectEquBaseById(id)); |
|
|
|
@ -221,7 +223,7 @@ public class EquBaseController extends BaseController |
|
|
|
* MultipartFile file |
|
|
|
* MultipartFile file |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('device:files:add')") |
|
|
|
@PreAuthorize("@ss.hasPermi('device:files:add')") |
|
|
|
@Log(title = "设备基本信息", businessType = BusinessType.INSERT) |
|
|
|
@Log(title = "增加设备档案信息", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping(value = "/add") |
|
|
|
@PostMapping(value = "/add") |
|
|
|
@ApiOperation("增加设备档案信息") |
|
|
|
@ApiOperation("增加设备档案信息") |
|
|
|
public AjaxResult add(@RequestBody EquBase equBase) { |
|
|
|
public AjaxResult add(@RequestBody EquBase equBase) { |
|
|
|
@ -244,7 +246,7 @@ public class EquBaseController extends BaseController |
|
|
|
* 修改设备基本信息 |
|
|
|
* 修改设备基本信息 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('device:files:edit')") |
|
|
|
@PreAuthorize("@ss.hasPermi('device:files:edit')") |
|
|
|
@Log(title = "设备基本信息", businessType = BusinessType.UPDATE) |
|
|
|
@Log(title = "更新设备档案基本信息", businessType = BusinessType.UPDATE) |
|
|
|
@PutMapping("/modify") |
|
|
|
@PutMapping("/modify") |
|
|
|
@ApiOperation("修改设备档案信息") |
|
|
|
@ApiOperation("修改设备档案信息") |
|
|
|
public AjaxResult edit(@RequestBody EquBase equBase){ |
|
|
|
public AjaxResult edit(@RequestBody EquBase equBase){ |
|
|
|
@ -263,7 +265,7 @@ public class EquBaseController extends BaseController |
|
|
|
* 删除设备基本信息 |
|
|
|
* 删除设备基本信息 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('device:files:remove')") |
|
|
|
@PreAuthorize("@ss.hasPermi('device:files:remove')") |
|
|
|
@Log(title = "设备基本信息", businessType = BusinessType.DELETE) |
|
|
|
@Log(title = "删除设备档案基本信息", businessType = BusinessType.DELETE) |
|
|
|
@DeleteMapping("/{ids}") |
|
|
|
@DeleteMapping("/{ids}") |
|
|
|
@ApiOperation("删除设备档案信息") |
|
|
|
@ApiOperation("删除设备档案信息") |
|
|
|
public AjaxResult remove(@PathVariable String[] ids) |
|
|
|
public AjaxResult remove(@PathVariable String[] ids) |
|
|
|
|