|
@@ -33,8 +33,8 @@ public class MqQueueConfigController {
|
|
|
IMqQueueConfigService queueConfigService;
|
|
|
|
|
|
@PostMapping("/allList")
|
|
|
- public ResultData allList(){
|
|
|
- return ResultData.ok(queueConfigService.getNormalConfig());
|
|
|
+ public ResultData allList(@RequestBody ModelingLevelParam param){
|
|
|
+ return ResultData.ok(queueConfigService.getNormalConfig(param.getType()));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -49,7 +49,7 @@ public class MqQueueConfigController {
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(param.getNum())){
|
|
|
- MqNumLevel byNum = mqNumLevelService.getByNum(param.getNum());
|
|
|
+ MqNumLevel byNum = mqNumLevelService.getByNum(param.getNum(),param.getType());
|
|
|
if(byNum != null){
|
|
|
return ResultData.ok(queueConfigService.getById(byNum.getQueueConfigId()));
|
|
|
}
|
|
@@ -60,7 +60,7 @@ public class MqQueueConfigController {
|
|
|
return ResultData.ok(queueConfigService.getById(byCameraId.getQueueConfigId()));
|
|
|
}
|
|
|
}
|
|
|
- return ResultData.ok(queueConfigService.getDefaultConfig());
|
|
|
+ return ResultData.ok(queueConfigService.getDefaultConfig(param.getType()));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -83,9 +83,9 @@ public class MqQueueConfigController {
|
|
|
}
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(param.getNum())){
|
|
|
- MqNumLevel mqNumLevel = mqNumLevelService.getByNum(param.getNum());
|
|
|
+ MqNumLevel mqNumLevel = mqNumLevelService.getByNum(param.getNum(),param.getType());
|
|
|
if(mqNumLevel == null){
|
|
|
- mqNumLevelService.saveEntity(param.getNum(),param.getConfigId());
|
|
|
+ mqNumLevelService.saveEntity(param.getNum(),param.getConfigId(),param.getType());
|
|
|
}else {
|
|
|
mqNumLevelService.updateLevelById(mqNumLevel.getId(),param.getConfigId());
|
|
|
}
|