|
@@ -148,6 +148,9 @@ public class SceneController {
|
|
|
|
|
|
@PostMapping("/sceneDetail")
|
|
|
public ResultData sceneDetail(@RequestBody LaserSceneParam param){
|
|
|
+ if(param.getId() == null){
|
|
|
+ throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
+ }
|
|
|
FdkkResponse fdkkResponse = laserClient.sceneDetail(param, StpUtil.getTokenValue());
|
|
|
if(fdkkResponse.getCode() != 200){
|
|
|
throw new BusinessException(fdkkResponse.getCode(),fdkkResponse.getMsg());
|
|
@@ -157,7 +160,9 @@ public class SceneController {
|
|
|
|
|
|
@PostMapping("/buildSceneObj")
|
|
|
public ResultData buildSceneObj(@RequestBody LaserSceneParam param){
|
|
|
-
|
|
|
+ if(param.getId() == null){
|
|
|
+ throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
+ }
|
|
|
FdkkResponse fdkkResponse = laserClient.buildSceneObj(param, StpUtil.getTokenValue());
|
|
|
if(fdkkResponse.getCode() != 200){
|
|
|
throw new BusinessException(fdkkResponse.getCode(),fdkkResponse.getMsg());
|