|
|
@@ -24,7 +24,7 @@ import com.ruoyi.common.core.web.page.TableDataInfo;
|
|
|
|
|
|
/**
|
|
|
* 合格证Controller
|
|
|
- *
|
|
|
+ *
|
|
|
* @author ruoyi
|
|
|
* @date 2026-03-31
|
|
|
*/
|
|
|
@@ -38,7 +38,7 @@ public class CertificateController extends BaseController
|
|
|
/**
|
|
|
* 查询合格证列表
|
|
|
*/
|
|
|
- @RequiresPermissions("base:certificate:list")
|
|
|
+
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(Certificate certificate)
|
|
|
{
|
|
|
@@ -50,7 +50,7 @@ public class CertificateController extends BaseController
|
|
|
/**
|
|
|
* 导出合格证列表
|
|
|
*/
|
|
|
- @RequiresPermissions("base:certificate:export")
|
|
|
+
|
|
|
@Log(title = "合格证", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, Certificate certificate)
|
|
|
@@ -63,7 +63,7 @@ public class CertificateController extends BaseController
|
|
|
/**
|
|
|
* 获取合格证详细信息
|
|
|
*/
|
|
|
- @RequiresPermissions("base:certificate:query")
|
|
|
+
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
{
|
|
|
@@ -73,7 +73,7 @@ public class CertificateController extends BaseController
|
|
|
/**
|
|
|
* 新增合格证
|
|
|
*/
|
|
|
- @RequiresPermissions("base:certificate:add")
|
|
|
+
|
|
|
@Log(title = "合格证", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody Certificate certificate)
|
|
|
@@ -84,7 +84,7 @@ public class CertificateController extends BaseController
|
|
|
/**
|
|
|
* 修改合格证
|
|
|
*/
|
|
|
- @RequiresPermissions("base:certificate:edit")
|
|
|
+
|
|
|
@Log(title = "合格证", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody Certificate certificate)
|
|
|
@@ -95,7 +95,7 @@ public class CertificateController extends BaseController
|
|
|
/**
|
|
|
* 删除合格证
|
|
|
*/
|
|
|
- @RequiresPermissions("base:certificate:remove")
|
|
|
+
|
|
|
@Log(title = "合格证", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|