增加判断
This commit is contained in:
parent
cdc4f4eabb
commit
4b77fc747e
|
@ -30,7 +30,7 @@ import java.util.List;
|
||||||
@Validated
|
@Validated
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/sacle/warn")
|
@RequestMapping("/scale/warn")
|
||||||
public class SysWarnRecordController extends BaseController {
|
public class SysWarnRecordController extends BaseController {
|
||||||
|
|
||||||
private final ISysWarnRecordService sysWarnRecordService;
|
private final ISysWarnRecordService sysWarnRecordService;
|
||||||
|
@ -38,7 +38,7 @@ public class SysWarnRecordController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 查询预警记录列表
|
* 查询预警记录列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("sacle:warn:list")
|
@SaCheckPermission("scale:warn:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo<SysWarnRecordVo> list(SysWarnRecordBo bo, PageQuery pageQuery) {
|
public TableDataInfo<SysWarnRecordVo> list(SysWarnRecordBo bo, PageQuery pageQuery) {
|
||||||
return sysWarnRecordService.queryPageList(bo, pageQuery);
|
return sysWarnRecordService.queryPageList(bo, pageQuery);
|
||||||
|
@ -47,7 +47,7 @@ public class SysWarnRecordController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 导出预警记录列表
|
* 导出预警记录列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("sacle:warn:export")
|
@SaCheckPermission("scale:warn:export")
|
||||||
@Log(title = "预警记录", businessType = BusinessType.EXPORT)
|
@Log(title = "预警记录", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(SysWarnRecordBo bo, HttpServletResponse response) {
|
public void export(SysWarnRecordBo bo, HttpServletResponse response) {
|
||||||
|
@ -60,7 +60,7 @@ public class SysWarnRecordController extends BaseController {
|
||||||
*
|
*
|
||||||
* @param warnId 主键
|
* @param warnId 主键
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("sacle:warn:query")
|
@SaCheckPermission("scale:warn:query")
|
||||||
@GetMapping("/{warnId}")
|
@GetMapping("/{warnId}")
|
||||||
public R<SysWarnRecordVo> getInfo(@NotNull(message = "主键不能为空")
|
public R<SysWarnRecordVo> getInfo(@NotNull(message = "主键不能为空")
|
||||||
@PathVariable Long warnId) {
|
@PathVariable Long warnId) {
|
||||||
|
@ -70,7 +70,7 @@ public class SysWarnRecordController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 修改预警记录
|
* 修改预警记录
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("sacle:warn:edit")
|
@SaCheckPermission("scale:warn:edit")
|
||||||
@Log(title = "预警记录", businessType = BusinessType.UPDATE)
|
@Log(title = "预警记录", businessType = BusinessType.UPDATE)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PutMapping()
|
@PutMapping()
|
||||||
|
|
Loading…
Reference in New Issue