|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.ims.eval.dao.result.CustomException;
|
|
|
import com.ims.eval.dao.result.R;
|
|
|
import com.ims.eval.entity.Indicator;
|
|
|
+import com.ims.eval.entity.IndicatorDictionary;
|
|
|
import com.ims.eval.service.IIndicatorService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -12,6 +13,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -85,6 +87,19 @@ public class IndicatorController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 根据多指标查询指标项
|
|
|
+ *
|
|
|
+ * @param indicatorCode 指标编码
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping(value = "selectByCode")
|
|
|
+ public R selectByCode(
|
|
|
+ @RequestParam(value = "indicatorCede", required = false) String indicatorCode) {
|
|
|
+ Map<String,List<IndicatorDictionary>> list = iIndicatorService.selectByCode(indicatorCode);
|
|
|
+ return R.ok().data(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 添加
|
|
|
*
|
|
|
* @param indicator
|