|
|
@@ -2,6 +2,8 @@ package com.zd.airbottle.controller;
|
|
|
|
|
|
import com.zd.airbottle.domain.QpRfidTag;
|
|
|
import com.zd.airbottle.service.IQpRfidTagService;
|
|
|
+import com.zd.common.core.domain.per.PerFun;
|
|
|
+import com.zd.common.core.domain.per.PerPrefix;
|
|
|
import com.zd.common.core.utils.poi.ExcelUtil;
|
|
|
import com.zd.common.core.web.controller.BaseController;
|
|
|
import com.zd.common.core.web.page.TableDataInfo;
|
|
|
@@ -34,7 +36,7 @@ public class QpRfidTagController extends BaseController<QpRfidTag> {
|
|
|
/**
|
|
|
* 查询RFID标签管理列表
|
|
|
*/
|
|
|
- @PreAuthorize(hasPermi = "airbottle:tag:list")
|
|
|
+ @PreAuthorize(hasPermi = PerPrefix.AIRBOTTLE_TAG+ PerFun.LIST)
|
|
|
@GetMapping("/list")
|
|
|
@ApiOperation(value = "查询RFID标签管理列表")
|
|
|
public TableDataInfo<QpRfidTag> list(QpRfidTag qpRfidTag) {
|
|
|
@@ -47,7 +49,7 @@ public class QpRfidTagController extends BaseController<QpRfidTag> {
|
|
|
* 导出RFID标签管理列表
|
|
|
*/
|
|
|
@ApiOperation(value = "导出RFID标签管理列表")
|
|
|
- @PreAuthorize(hasPermi = "airbottle:tag:export")
|
|
|
+ @PreAuthorize(hasPermi = PerPrefix.AIRBOTTLE_TAG+ PerFun.EXPORT)
|
|
|
@Log(title = "RFID标签管理", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, QpRfidTag qpRfidTag) throws IOException {
|
|
|
@@ -60,7 +62,7 @@ public class QpRfidTagController extends BaseController<QpRfidTag> {
|
|
|
* 获取RFID标签管理详细信息
|
|
|
*/
|
|
|
@ApiOperation(value = "获取RFID标签管理详细信息")
|
|
|
- @PreAuthorize(hasPermi = "airbottle:tag:query")
|
|
|
+ @PreAuthorize(hasPermi = PerPrefix.AIRBOTTLE_TAG+ PerFun.QUERY)
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public ResultData<QpRfidTag> getInfo(@PathVariable("id") Long id) {
|
|
|
return ResultData.success(qpRfidTagService.selectQpRfidTagById(id));
|
|
|
@@ -70,7 +72,7 @@ public class QpRfidTagController extends BaseController<QpRfidTag> {
|
|
|
* 新增RFID标签管理
|
|
|
*/
|
|
|
@ApiOperation(value = "新增RFID标签管理")
|
|
|
- @PreAuthorize(hasPermi = "airbottle:tag:add")
|
|
|
+ @PreAuthorize(hasPermi = PerPrefix.AIRBOTTLE_TAG+ PerFun.ADD)
|
|
|
@Log(title = "RFID标签管理", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public ResultData<Boolean> add(@RequestBody QpRfidTag qpRfidTag) {
|
|
|
@@ -85,7 +87,7 @@ public class QpRfidTagController extends BaseController<QpRfidTag> {
|
|
|
* 修改RFID标签管理
|
|
|
*/
|
|
|
@ApiOperation(value = "修改RFID标签管理")
|
|
|
- @PreAuthorize(hasPermi = "airbottle:tag:edit")
|
|
|
+ @PreAuthorize(hasPermi = PerPrefix.AIRBOTTLE_TAG+ PerFun.EDIT)
|
|
|
@Log(title = "RFID标签管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public ResultData<Boolean> edit(@RequestBody QpRfidTag qpRfidTag) {
|
|
|
@@ -96,7 +98,7 @@ public class QpRfidTagController extends BaseController<QpRfidTag> {
|
|
|
* 删除RFID标签管理
|
|
|
*/
|
|
|
@ApiOperation(value = "删除RFID标签管理")
|
|
|
- @PreAuthorize(hasPermi = "airbottle:tag:remove")
|
|
|
+ @PreAuthorize(hasPermi = PerPrefix.AIRBOTTLE_TAG+ PerFun.REMOVE)
|
|
|
@Log(title = "RFID标签管理", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public ResultData<Boolean> remove(@PathVariable Long[] ids) {
|