|
|
@@ -11,6 +11,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
import org.apache.commons.collections.ArrayStack;
|
|
|
import org.apache.commons.collections.list.AbstractLinkedList;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
@@ -19,6 +20,8 @@ import org.jeecg.common.constant.CommonConstant;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
import org.jeecg.common.system.util.JwtUtil;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
|
+import org.jeecg.common.system.vo.MedicalDto;
|
|
|
+import org.jeecg.common.system.vo.MedicalEnchanceDto;
|
|
|
import org.jeecg.common.util.SpringContextUtils;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
import org.jeecg.modules.medical.Constant;
|
|
|
@@ -63,17 +66,14 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
@RestController
|
|
|
@RequestMapping("/medical/factorEnchance")
|
|
|
@Slf4j
|
|
|
+@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
|
|
public class FactorEnchanceController extends JeecgController<FactorEnchance, IFactorEnchanceService> {
|
|
|
- @Autowired
|
|
|
- private IFactorEnchanceService factorEnchanceService;
|
|
|
- @Autowired
|
|
|
- private IFactorCondRelaService factorCondRelaService;
|
|
|
- @Autowired
|
|
|
- private IFactorAttrRelaService factorAttrRelaService;
|
|
|
- @Autowired
|
|
|
- private IMedicalInsRuleInfoService medicalInsRuleInfoService;
|
|
|
- @Autowired
|
|
|
- private IRuleFactorRelaService ruleFactorRelaService;
|
|
|
+ private final IFactorEnchanceService factorEnchanceService;
|
|
|
+ private final IFactorCondRelaService factorCondRelaService;
|
|
|
+ private final IFactorAttrRelaService factorAttrRelaService;
|
|
|
+ private final IMedicalInsRuleInfoService medicalInsRuleInfoService;
|
|
|
+ private final IRuleFactorRelaService ruleFactorRelaService;
|
|
|
+ private final IEventAttrService eventAttrService;
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -247,7 +247,7 @@ public class FactorEnchanceController extends JeecgController<FactorEnchance, IF
|
|
|
factorEnchance.setFactorCatalogStr(first.get().getRuleName());
|
|
|
}
|
|
|
factorEnchance.setFactorCatalogId(factorEnchance.getFactorCatalog());
|
|
|
- if (factorEnchance.getEnhanceType() == 1 || factorEnchance.getEnhanceType() == 4) {
|
|
|
+ if (factorEnchance.getEnhanceType() == 1 || factorEnchance.getEnhanceType() == 4|| factorEnchance.getEnhanceType() == 7) {
|
|
|
List<FactorAttrRela> inList = factorAttrRelaService.lambdaQuery().eq(FactorAttrRela::getIoType, Constant.INPUT).eq(FactorAttrRela::getFactorEnhanceId, factorEnchance.getId()).list();
|
|
|
if (inList.size() > 0) {
|
|
|
inList.sort(Comparator.comparing(FactorAttrRela::getSeqNum));
|
|
|
@@ -288,84 +288,288 @@ public class FactorEnchanceController extends JeecgController<FactorEnchance, IF
|
|
|
factorEnchance.setFactorCatalogStr(first.get().getRuleName());
|
|
|
}
|
|
|
factorEnchance.setFactorCatalogId(factorEnchance.getFactorCatalog());
|
|
|
- if (factorEnchance.getEnhanceType() == 1 || factorEnchance.getEnhanceType() == 4) {
|
|
|
+ if (factorEnchance.getEnhanceType() == 1 || factorEnchance.getEnhanceType() == 4|| factorEnchance.getEnhanceType() == 7) {
|
|
|
List<FactorAttrRela> inList = factorAttrRelaService.lambdaQuery().eq(FactorAttrRela::getIoType, Constant.INPUT).eq(FactorAttrRela::getFactorEnhanceId, factorEnchance.getId()).list();
|
|
|
if (inList.size() > 0) {
|
|
|
inList.sort(Comparator.comparing(FactorAttrRela::getSeqNum));
|
|
|
List<Integer> in = inList.stream().map(item -> item.getEventAttrId()).collect(Collectors.toList());
|
|
|
- factorEnchance.setInParamList(in);
|
|
|
+ List<EventAttr> list = eventAttrService.lambdaQuery().in(EventAttr::getId, in).list();
|
|
|
+ if (list.size() > 0) {
|
|
|
+ List<String> collect = list.stream().map(item -> item.getChName()).collect(Collectors.toList());
|
|
|
+ factorEnchance.setInParamNameList(collect);
|
|
|
+ }
|
|
|
}
|
|
|
List<FactorAttrRela> outList = factorAttrRelaService.lambdaQuery().eq(FactorAttrRela::getIoType, Constant.OUTPUT).eq(FactorAttrRela::getFactorEnhanceId, factorEnchance.getId()).list();
|
|
|
if (outList.size() > 0) {
|
|
|
- inList.sort(Comparator.comparing(FactorAttrRela::getSeqNum));
|
|
|
+ outList.sort(Comparator.comparing(FactorAttrRela::getSeqNum));
|
|
|
List<Integer> out = outList.stream().map(item -> item.getEventAttrId()).collect(Collectors.toList());
|
|
|
- factorEnchance.setOutParamList(out);
|
|
|
+ List<EventAttr> list = eventAttrService.lambdaQuery().in(EventAttr::getId, out).list();
|
|
|
+ if (list.size() > 0) {
|
|
|
+ List<String> collect = list.stream().map(item -> item.getChName()).collect(Collectors.toList());
|
|
|
+ factorEnchance.setOutParamNameList(collect);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (factorEnchance.getEnhanceType() == 2 && factorEnchance.getExtAttr3().equals("0")) {
|
|
|
List<FactorCondRela> factorCondRelaList = factorCondRelaService.lambdaQuery().eq(FactorCondRela::getFactorEnhanceId, factorEnchance.getId()).list();
|
|
|
factorEnchance.setFactorCondRelaList(factorCondRelaList);
|
|
|
+ List<FactorAttrRela> outList = factorAttrRelaService.lambdaQuery().eq(FactorAttrRela::getIoType, Constant.OUTPUT).eq(FactorAttrRela::getFactorEnhanceId, factorEnchance.getId()).list();
|
|
|
+ if (outList.size() > 0) {
|
|
|
+ outList.sort(Comparator.comparing(FactorAttrRela::getSeqNum));
|
|
|
+ List<Integer> out = outList.stream().map(item -> item.getEventAttrId()).collect(Collectors.toList());
|
|
|
+ List<EventAttr> list = eventAttrService.lambdaQuery().in(EventAttr::getId, out).list();
|
|
|
+ if (list.size() > 0) {
|
|
|
+ List<String> collect = list.stream().map(item -> item.getChName()).collect(Collectors.toList());
|
|
|
+ factorEnchance.setOutParamNameList(collect);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
- LinkedHashMap<String, Object> map = new LinkedHashMap<>();
|
|
|
+ if (factorEnchance.getEnhanceType() == 6) {
|
|
|
+ List<FactorCondRela> factorCondRelaList = factorCondRelaService.lambdaQuery().eq(FactorCondRela::getFactorEnhanceId, factorEnchance.getId()).list();
|
|
|
+ factorEnchance.setFactorCondRelaList(factorCondRelaList);
|
|
|
+ List<FactorAttrRela> outList = factorAttrRelaService.lambdaQuery().eq(FactorAttrRela::getIoType, Constant.OUTPUT).eq(FactorAttrRela::getFactorEnhanceId, factorEnchance.getId()).list();
|
|
|
+ if (outList.size() > 0) {
|
|
|
+ outList.sort(Comparator.comparing(FactorAttrRela::getSeqNum));
|
|
|
+ List<Integer> out = outList.stream().map(item -> item.getEventAttrId()).collect(Collectors.toList());
|
|
|
+ List<EventAttr> list = eventAttrService.lambdaQuery().in(EventAttr::getId, out).list();
|
|
|
+ if (list.size() > 0) {
|
|
|
+ List<String> collect = list.stream().map(item -> item.getChName()).collect(Collectors.toList());
|
|
|
+ factorEnchance.setOutParamNameList(collect);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+// if (dictDtos.size() > 0) {
|
|
|
+// dictDtos.forEach(it -> {
|
|
|
+// switch (it.getValue()) {
|
|
|
+// case "medicineDataType":
|
|
|
+// it.setComponent("j-dict-select-tag");
|
|
|
+// it.setDictCode("medicine_data_type");
|
|
|
+// break;
|
|
|
+// case "changeClass":
|
|
|
+// it.setComponent("j-dict-select-tag");
|
|
|
+// it.setDictCode("change_class");
|
|
|
+// break;
|
|
|
+// case "categoriesItems":
|
|
|
+// it.setComponent("j-dict-select-tag");
|
|
|
+// it.setDictCode("categories_items");
|
|
|
+// break;
|
|
|
+// case "medicalInsLevel":
|
|
|
+// it.setComponent("j-dict-select-tag");
|
|
|
+// it.setDictCode("medical_ins_level");
|
|
|
+// break;
|
|
|
+// case "doctorLevel":
|
|
|
+// it.setComponent("j-dict-select-tag");
|
|
|
+// it.setDictCode("doctor_level");
|
|
|
+// break;
|
|
|
+// case "state":
|
|
|
+// it.setComponent("j-dict-select-tag");
|
|
|
+// it.setDictCode("state");
|
|
|
+// break;
|
|
|
+// case "medicalDiagnoseCode":
|
|
|
+// it.setComponent("a-textarea");
|
|
|
+// break;
|
|
|
+// case "correlationMedicalDiagnoseCode":
|
|
|
+// it.setComponent("a-textarea");
|
|
|
+// break;
|
|
|
+// case "gender":
|
|
|
+// it.setComponent("j-dict-select-tag");
|
|
|
+// it.setDictCode("sex");
|
|
|
+// break;
|
|
|
+// default:
|
|
|
+// it.setComponent("a-input");
|
|
|
+// break;
|
|
|
+// }
|
|
|
+// });
|
|
|
+//
|
|
|
+// }
|
|
|
+
|
|
|
+// LinkedHashMap<String, Object> map = new LinkedHashMap<>();
|
|
|
String title = "";
|
|
|
+ List<MedicalEnchanceDto> dtoList = new ArrayList<>();
|
|
|
switch (enchanceTypeEnum) {
|
|
|
case SQL:
|
|
|
- map.put("要素提取标题", factorEnchance.getRuleEnchanceName());
|
|
|
- map.put("医保规则", factorEnchance.getFactorCatalogStr());
|
|
|
- map.put("数据库", factorEnchance.getExtAttr1());
|
|
|
- map.put("SQL语句", factorEnchance.getEnhanceValue());
|
|
|
- map.put("输入要素", factorEnchance.getInParamList());
|
|
|
- map.put("输出要素", factorEnchance.getOutParamList());
|
|
|
- map.put("备注", factorEnchance.getExtAttr2());
|
|
|
+ MedicalEnchanceDto dto1 = new MedicalEnchanceDto();
|
|
|
+ dto1.setText("要素提取标题");
|
|
|
+ dto1.setValue(factorEnchance.getRuleEnchanceName());
|
|
|
+ dto1.setComponent("a-input");
|
|
|
+ dtoList.add(dto1);
|
|
|
+ MedicalEnchanceDto dto2 = new MedicalEnchanceDto();
|
|
|
+ dto2.setText("医保规则");
|
|
|
+ dto2.setValue(factorEnchance.getFactorCatalogStr());
|
|
|
+ dto2.setComponent("a-input");
|
|
|
+ dtoList.add(dto2);
|
|
|
+ MedicalEnchanceDto dto3 = new MedicalEnchanceDto();
|
|
|
+ dto3.setText("数据库");
|
|
|
+ dto3.setValue(factorEnchance.getExtAttr1());
|
|
|
+ dto3.setComponent("a-input");
|
|
|
+ dtoList.add(dto3);
|
|
|
+ MedicalEnchanceDto dto4 = new MedicalEnchanceDto();
|
|
|
+ dto4.setText("SQL语句");
|
|
|
+ dto4.setValue(factorEnchance.getEnhanceValue());
|
|
|
+ dto4.setComponent("a-input");
|
|
|
+ dtoList.add(dto4);
|
|
|
+ MedicalEnchanceDto dto5 = new MedicalEnchanceDto();
|
|
|
+ dto5.setText("输入要素");
|
|
|
+ dto5.setValue(factorEnchance.getInParamNameList());
|
|
|
+ dto5.setComponent("a-select");
|
|
|
+ dtoList.add(dto5);
|
|
|
+ MedicalEnchanceDto dto6 = new MedicalEnchanceDto();
|
|
|
+ dto6.setText("输出要素");
|
|
|
+ dto6.setValue(factorEnchance.getOutParamNameList());
|
|
|
+ dto6.setComponent("a-select");
|
|
|
+ dtoList.add(dto6);
|
|
|
+ MedicalEnchanceDto dto7 = new MedicalEnchanceDto();
|
|
|
+ dto7.setText("备注");
|
|
|
+ dto7.setValue(factorEnchance.getExtAttr2());
|
|
|
+ dto7.setComponent("a-input");
|
|
|
+ dtoList.add(dto7);
|
|
|
title = "SQL取值";
|
|
|
break;
|
|
|
case LOGICAL_EXPRESSION:
|
|
|
- map.put("要素提取标题", factorEnchance.getRuleEnchanceName());
|
|
|
- map.put("医保规则", factorEnchance.getFactorCatalogStr());
|
|
|
- map.put("判断类型", factorEnchance.getExtAttr1());
|
|
|
+
|
|
|
+ MedicalEnchanceDto logical1 = new MedicalEnchanceDto();
|
|
|
+ logical1.setText("要素提取标题");
|
|
|
+ logical1.setValue(factorEnchance.getRuleEnchanceName());
|
|
|
+ logical1.setComponent("a-input");
|
|
|
+ dtoList.add(logical1);
|
|
|
+ MedicalEnchanceDto logical2 = new MedicalEnchanceDto();
|
|
|
+ logical2.setText("医保规则");
|
|
|
+ logical2.setValue(factorEnchance.getFactorCatalogStr());
|
|
|
+ logical2.setComponent("a-input");
|
|
|
+ dtoList.add(logical2);
|
|
|
+
|
|
|
+ MedicalEnchanceDto logical3 = new MedicalEnchanceDto();
|
|
|
+ logical3.setText("判断类型");
|
|
|
+ logical3.setValue(factorEnchance.getExtAttr1());
|
|
|
+ logical3.setComponent("a-input");
|
|
|
+ dtoList.add(logical3);
|
|
|
+
|
|
|
+ MedicalEnchanceDto logical4 = new MedicalEnchanceDto();
|
|
|
+ // logical4.setComponent("a-input");
|
|
|
+// map.put("要素提取标题", factorEnchance.getRuleEnchanceName());
|
|
|
+// map.put("医保规则", factorEnchance.getFactorCatalogStr());
|
|
|
+// map.put("判断类型", factorEnchance.getExtAttr1());
|
|
|
if (factorEnchance.getExtAttr3().equals("0")) {
|
|
|
- factorEnchance.getFactorCondRelaList().forEach(it -> {
|
|
|
- map.put("逻辑表达式", it.getExtAttr1());
|
|
|
- map.put("比较符", it.getOperator());
|
|
|
- map.put("引用属性类型", it.getRefAttrType());
|
|
|
- if (it.getRefAttrType() == 1) {
|
|
|
- map.put("扩展属性", it.getExtAttr1());
|
|
|
- } else {
|
|
|
- map.put("引用属性标识", it.getRefEventAttrId());
|
|
|
- }
|
|
|
- });
|
|
|
+ logical4.setText("逻辑表达式");
|
|
|
+ logical4.setValue(factorEnchance.getFactorCondRelaList());
|
|
|
+// factorEnchance.getFactorCondRelaList().forEach(it -> {
|
|
|
+// map.put("逻辑表达式", it.getExtAttr1());
|
|
|
+// map.put("比较符", it.getOperator());
|
|
|
+// map.put("引用属性类型", it.getRefAttrType());
|
|
|
+// if (it.getRefAttrType() == 1) {
|
|
|
+// map.put("扩展属性", it.getExtAttr1());
|
|
|
+// } else {
|
|
|
+// map.put("引用属性标识", it.getRefEventAttrId());
|
|
|
+// }
|
|
|
+// });
|
|
|
} else {
|
|
|
- map.put("判断表达式字符串", factorEnchance.getEnhanceValue());
|
|
|
+ logical4.setText("判断表达式字符串");
|
|
|
+ logical4.setValue(factorEnchance.getEnhanceValue());
|
|
|
}
|
|
|
- map.put("输出要素", factorEnchance.getOutParamList());
|
|
|
+ dtoList.add(logical4);
|
|
|
+
|
|
|
+ MedicalEnchanceDto logical5 = new MedicalEnchanceDto();
|
|
|
+ logical5.setText("输出要素");
|
|
|
+ logical5.setValue(factorEnchance.getOutParamNameList());
|
|
|
+ logical5.setComponent("a-select");
|
|
|
+ dtoList.add(logical5);
|
|
|
+// map.put("输出要素", factorEnchance.getOutParamList());
|
|
|
title = "逻辑判断";
|
|
|
|
|
|
break;
|
|
|
case PLUGIN:
|
|
|
- map.put("插件名称", factorEnchance.getRuleEnchanceName());
|
|
|
- map.put("医保规则", factorEnchance.getFactorCatalogStr());
|
|
|
- map.put("描述", factorEnchance.getRemarks());
|
|
|
- map.put("插件Bean名称", factorEnchance.getEnhanceValue());
|
|
|
- map.put("输入要素", factorEnchance.getInParamList());
|
|
|
- map.put("输出要素", factorEnchance.getOutParamList());
|
|
|
+ MedicalEnchanceDto plugin1 = new MedicalEnchanceDto();
|
|
|
+ plugin1.setText("要素提取标题");
|
|
|
+ plugin1.setValue(factorEnchance.getRuleEnchanceName());
|
|
|
+ plugin1.setComponent("a-input");
|
|
|
+ dtoList.add(plugin1);
|
|
|
+ MedicalEnchanceDto plugin2 = new MedicalEnchanceDto();
|
|
|
+ plugin2.setText("医保规则");
|
|
|
+ plugin2.setValue(factorEnchance.getFactorCatalogStr());
|
|
|
+ plugin2.setComponent("a-input");
|
|
|
+ dtoList.add(plugin2);
|
|
|
+// map.put("插件名称", factorEnchance.getRuleEnchanceName());
|
|
|
+// map.put("医保规则", factorEnchance.getFactorCatalogStr());
|
|
|
+ MedicalEnchanceDto plugin3 = new MedicalEnchanceDto();
|
|
|
+ plugin3.setText("描述");
|
|
|
+ plugin3.setValue(factorEnchance.getRemarks());
|
|
|
+ plugin3.setComponent("a-input");
|
|
|
+ dtoList.add(plugin3);
|
|
|
+// map.put("描述", factorEnchance.getRemarks());
|
|
|
+ MedicalEnchanceDto plugin4 = new MedicalEnchanceDto();
|
|
|
+ plugin4.setText("插件Bean名称");
|
|
|
+ plugin4.setValue(factorEnchance.getEnhanceValue());
|
|
|
+ plugin4.setComponent("a-input");
|
|
|
+ dtoList.add(plugin4);
|
|
|
+// map.put("插件Bean名称", factorEnchance.getEnhanceValue());
|
|
|
+// map.put("输入要素", factorEnchance.getInParamList());
|
|
|
+// map.put("输出要素", factorEnchance.getOutParamList());
|
|
|
+ MedicalEnchanceDto plugin5 = new MedicalEnchanceDto();
|
|
|
+ plugin5.setText("输入要素");
|
|
|
+ plugin5.setValue(factorEnchance.getInParamNameList());
|
|
|
+ plugin5.setComponent("a-select");
|
|
|
+ dtoList.add(plugin5);
|
|
|
+ MedicalEnchanceDto plugin6 = new MedicalEnchanceDto();
|
|
|
+ plugin6.setText("输出要素");
|
|
|
+ plugin6.setValue(factorEnchance.getOutParamNameList());
|
|
|
+ plugin6.setComponent("a-select");
|
|
|
+ dtoList.add(plugin6);
|
|
|
title = "插件提取";
|
|
|
|
|
|
break;
|
|
|
case CONSTANT:
|
|
|
- map.put("要素提取标题", factorEnchance.getRuleEnchanceName());
|
|
|
- map.put("医保规则", factorEnchance.getFactorCatalogStr());
|
|
|
- map.put("常量值", factorEnchance.getExtAttr1());
|
|
|
- map.put("输出要素", factorEnchance.getOutParamList());
|
|
|
+ MedicalEnchanceDto constant1 = new MedicalEnchanceDto();
|
|
|
+ constant1.setText("要素提取标题");
|
|
|
+ constant1.setValue(factorEnchance.getRuleEnchanceName());
|
|
|
+ constant1.setComponent("a-input");
|
|
|
+ dtoList.add(constant1);
|
|
|
+ MedicalEnchanceDto constant2 = new MedicalEnchanceDto();
|
|
|
+ constant2.setText("医保规则");
|
|
|
+ constant2.setValue(factorEnchance.getFactorCatalogStr());
|
|
|
+ constant2.setComponent("a-input");
|
|
|
+ dtoList.add(constant2);
|
|
|
+// map.put("要素提取标题", factorEnchance.getRuleEnchanceName());
|
|
|
+// map.put("医保规则", factorEnchance.getFactorCatalogStr());
|
|
|
+// map.put("常量值", factorEnchance.getExtAttr1());
|
|
|
+ MedicalEnchanceDto constant3 = new MedicalEnchanceDto();
|
|
|
+ constant3.setText("常量值");
|
|
|
+ constant3.setValue(factorEnchance.getExtAttr1());
|
|
|
+ constant3.setComponent("a-input");
|
|
|
+ dtoList.add(constant3);
|
|
|
+// map.put("输出要素", factorEnchance.getOutParamList());
|
|
|
+ MedicalEnchanceDto constant4 = new MedicalEnchanceDto();
|
|
|
+ constant4.setText("输出要素");
|
|
|
+ constant4.setValue(factorEnchance.getOutParamNameList());
|
|
|
+ constant4.setComponent("a-select");
|
|
|
+ dtoList.add(constant4);
|
|
|
title = "常量赋值";
|
|
|
|
|
|
break;
|
|
|
case PROPERTIES:
|
|
|
- map.put("要素提取标题", factorEnchance.getRuleEnchanceName());
|
|
|
- map.put("医保规则", factorEnchance.getFactorCatalogStr());
|
|
|
- map.put("输入要素", factorEnchance.getInParamList());
|
|
|
- map.put("输出要素", factorEnchance.getOutParamList());
|
|
|
+ MedicalEnchanceDto prop1 = new MedicalEnchanceDto();
|
|
|
+ prop1.setText("要素提取标题");
|
|
|
+ prop1.setValue(factorEnchance.getRuleEnchanceName());
|
|
|
+ prop1.setComponent("a-input");
|
|
|
+ dtoList.add(prop1);
|
|
|
+ MedicalEnchanceDto prop2 = new MedicalEnchanceDto();
|
|
|
+ prop2.setText("医保规则");
|
|
|
+ prop2.setValue(factorEnchance.getFactorCatalogStr());
|
|
|
+ prop2.setComponent("a-input");
|
|
|
+ dtoList.add(prop2);
|
|
|
+// map.put("要素提取标题", factorEnchance.getRuleEnchanceName());
|
|
|
+// map.put("医保规则", factorEnchance.getFactorCatalogStr());
|
|
|
+// map.put("输入要素", factorEnchance.getInParamList());
|
|
|
+// map.put("输出要素", factorEnchance.getOutParamList());
|
|
|
+ MedicalEnchanceDto prop3 = new MedicalEnchanceDto();
|
|
|
+ prop3.setText("输入要素");
|
|
|
+ prop3.setValue(factorEnchance.getInParamNameList());
|
|
|
+ prop3.setComponent("a-select");
|
|
|
+ dtoList.add(prop3);
|
|
|
+ MedicalEnchanceDto prop4 = new MedicalEnchanceDto();
|
|
|
+ prop4.setText("输出要素");
|
|
|
+ prop4.setValue(factorEnchance.getOutParamNameList());
|
|
|
+ prop4.setComponent("a-select");
|
|
|
+ dtoList.add(prop4);
|
|
|
title = "属性赋值";
|
|
|
|
|
|
break;
|
|
|
@@ -378,9 +582,9 @@ public class FactorEnchanceController extends JeecgController<FactorEnchance, IF
|
|
|
if (factorEnchance == null) {
|
|
|
return Result.error("未找到对应数据");
|
|
|
}
|
|
|
- HashMap<String,Object> hashMap = new HashMap<>();
|
|
|
- hashMap.put("title",title);
|
|
|
- hashMap.put("map",map);
|
|
|
+ HashMap<String, Object> hashMap = new HashMap<>();
|
|
|
+ hashMap.put("title", title);
|
|
|
+ hashMap.put("data", dtoList);
|
|
|
return Result.OK(hashMap);
|
|
|
}
|
|
|
|