|  |  |  | 
|---|
|  |  |  | List<TaskModelCheckResultDto> chkResult = taskService.checkTaskModel(simulatAssess.getProductId(), | 
|---|
|  |  |  | simulatAssess.getTaskModelId()); | 
|---|
|  |  |  | if (chkResult.size() > 0) { | 
|---|
|  |  |  | //            result = Result.error("模型不完整,请检查模型定义及参数配置。"); | 
|---|
|  |  |  | result = Result.ok(chkResult); | 
|---|
|  |  |  | result = Result.error("模型不完整,请检查模型定义及参数配置。"); | 
|---|
|  |  |  | //            result = Result.ok(chkResult); | 
|---|
|  |  |  | return result; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | element.addAttribute("k", algo.getVoteNum().toString()); | 
|---|
|  |  |  | } else if ("switch".equals(algo.getAlgorithmType())) { | 
|---|
|  |  |  | element.addAttribute("type", "standby"); | 
|---|
|  |  |  | element.addAttribute("k", algo.getVoteNum().toString()); | 
|---|
|  |  |  | } else if ("bridge".equals(algo.getAlgorithmType())) { | 
|---|
|  |  |  | element.addAttribute("type", "bridge"); | 
|---|
|  |  |  | } | 
|---|