|
|
|
@ -34,7 +34,7 @@ public class InstantController { |
|
|
|
|
|
|
|
@GetMapping("/page") |
|
|
|
@Operation(summary = "获得模型实例分页列表") |
|
|
|
@PreAuthorize("@ss.hasPermission('run:instant:query')") |
|
|
|
@PreAuthorize("@ss.hasPermission('run:instant:list')") |
|
|
|
public CommonResult<PageResult<InstantRespVO>> getInstantPage(@Valid InstantPageReqVO pageReqVO) { |
|
|
|
PageResult<InstantDO> pageResult = instantService.getInstantPage(pageReqVO); |
|
|
|
return success(BeanUtils.toBean(pageResult, InstantRespVO.class)); |
|
|
|
@ -114,7 +114,7 @@ public class InstantController { |
|
|
|
|
|
|
|
@PostMapping("/calc") |
|
|
|
@Operation(summary = "回算模型实例" ) |
|
|
|
@PreAuthorize("@ss.hasPermission('run:instant:query')") |
|
|
|
@PreAuthorize("@ss.hasPermission('run:instant:calc')") |
|
|
|
public CommonResult<InstantCalcResultVO> calcInstant( @Valid @RequestBody InstantCalcReqVO instantCalcReqVO) { |
|
|
|
InstantCalcResultVO instantCalcResult= instantService.calcInstant(instantCalcReqVO); |
|
|
|
return success(instantCalcResult); |
|
|
|
|