浏览代码

计算优先级配置接口,设置接口

lyhzzz 1 年之前
父节点
当前提交
9be28afa80
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/main/java/com/fdkankan/manage/controller/MqQueueConfigController.java

+ 4 - 1
src/main/java/com/fdkankan/manage/controller/MqQueueConfigController.java

@@ -68,7 +68,10 @@ public class MqQueueConfigController {
      */
     @PostMapping("/updateModelingLevel")
     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);
         }
         if(param.getCameraId() != null){