|
@@ -68,7 +68,10 @@ public class MqQueueConfigController {
|
|
*/
|
|
*/
|
|
@PostMapping("/updateModelingLevel")
|
|
@PostMapping("/updateModelingLevel")
|
|
public ResultData updateModelingLevel(@RequestBody ModelingLevelParam param){
|
|
public ResultData updateModelingLevel(@RequestBody ModelingLevelParam param){
|
|
- if(param.getConfigId() == null && (param.getCameraId() == null && StringUtils.isBlank(param.getNum()))){
|
|
|
|
|
|
+ if(param.getConfigId() == null){
|
|
|
|
+ throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
|
+ }
|
|
|
|
+ if( param.getCameraId() == null && StringUtils.isBlank(param.getNum())){
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
}
|
|
}
|
|
if(param.getCameraId() != null){
|
|
if(param.getCameraId() != null){
|