refactor(sis): 1
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
@@ -7,6 +7,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.dromara.sis.domain.bo.SisElevatorFloorRefBo;
|
||||
import org.dromara.sis.domain.vo.SisElevatorFloorRefVo;
|
||||
import org.dromara.sis.service.ISisElevatorFloorRefService;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
@@ -69,7 +70,7 @@ public class SisElevatorInfoController extends BaseController {
|
||||
@SaCheckPermission("sis:elevatorInfo:query")
|
||||
@GetMapping("/{elevatorId}")
|
||||
public R<SisElevatorInfoVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable("elevatorId") Long elevatorId) {
|
||||
@PathVariable("elevatorId") Long elevatorId) {
|
||||
return R.ok(sisElevatorInfoService.queryById(elevatorId));
|
||||
}
|
||||
|
||||
@@ -115,7 +116,18 @@ public class SisElevatorInfoController extends BaseController {
|
||||
*/
|
||||
@RepeatSubmit()
|
||||
@PostMapping("/ref/add")
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody SisElevatorFloorRefBo bo) {
|
||||
public R<Void> addRef(@Validated(AddGroup.class) @RequestBody SisElevatorFloorRefBo bo) {
|
||||
return toAjax(sisElevatorFloorRefService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询电梯⇄楼层关联
|
||||
*
|
||||
* @param id 电梯id
|
||||
*/
|
||||
@GetMapping("/ref/{id}")
|
||||
public R<List<SisElevatorFloorRefVo>> queryRef(@NotNull(message = "电梯id不能为空")
|
||||
@PathVariable("id") Long id) {
|
||||
return R.ok(sisElevatorFloorRefService.queryByElevatorId(id));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user