|
@@ -272,8 +272,13 @@ public class FactorEnchanceController extends JeecgController<FactorEnchance, IF
|
|
|
@GetMapping(value = "/queryDynamicDataById")
|
|
@GetMapping(value = "/queryDynamicDataById")
|
|
|
public Result<?> queryDynamicDataById(@RequestParam(name = "id", required = true) String id) {
|
|
public Result<?> queryDynamicDataById(@RequestParam(name = "id", required = true) String id) {
|
|
|
RuleFactorRela ruleFactorRela = ruleFactorRelaService.getById(id);
|
|
RuleFactorRela ruleFactorRela = ruleFactorRelaService.getById(id);
|
|
|
-
|
|
|
|
|
|
|
+ if (ruleFactorRela == null) {
|
|
|
|
|
+ return Result.error("未找到对应数据");
|
|
|
|
|
+ }
|
|
|
FactorEnchance factorEnchance = factorEnchanceService.getById(ruleFactorRela.getFactorEnhanceId());
|
|
FactorEnchance factorEnchance = factorEnchanceService.getById(ruleFactorRela.getFactorEnhanceId());
|
|
|
|
|
+ if (factorEnchance == null) {
|
|
|
|
|
+ return Result.error("未找到对应数据");
|
|
|
|
|
+ }
|
|
|
EnchanceTypeEnum enchanceTypeEnum = EnchanceTypeEnum.getType(factorEnchance.getEnhanceType());
|
|
EnchanceTypeEnum enchanceTypeEnum = EnchanceTypeEnum.getType(factorEnchance.getEnhanceType());
|
|
|
List<MedicalInsRuleInfo> ruleInfoList = medicalInsRuleInfoService.list();
|
|
List<MedicalInsRuleInfo> ruleInfoList = medicalInsRuleInfoService.list();
|
|
|
|
|
|