|
@@ -48,6 +48,8 @@ public class SceneController {
|
|
|
ISysUserService sysUserService;
|
|
|
@Autowired
|
|
|
IJyUserService jyUserService;
|
|
|
+ @Autowired
|
|
|
+ ISceneCopyLogService sceneCopyLogService;
|
|
|
|
|
|
@PostMapping("/list")
|
|
|
public ResultData list(@RequestBody SceneParam param){
|
|
@@ -180,6 +182,12 @@ public class SceneController {
|
|
|
if(param.getId() == null){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
+ if(StringUtils.isNotBlank(param.getSceneNum())){
|
|
|
+ List<SceneCopyLog> byNewNum = sceneCopyLogService.getByNewNum(param.getSceneNum());
|
|
|
+ if(byNewNum!=null && !byNewNum.isEmpty()){
|
|
|
+ throw new BusinessException(ResultCode.COPY_NUM_NOT_GEN_OBJ);
|
|
|
+ }
|
|
|
+ }
|
|
|
FdkkResponse fdkkResponse = laserClient.buildSceneObj(param, StpUtil.getTokenValue());
|
|
|
if(fdkkResponse.getCode() != 200){
|
|
|
throw new BusinessException(fdkkResponse.getCode(),fdkkResponse.getMsg());
|