|
@@ -2,19 +2,15 @@ package com.ims.eval.controller;
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
-import com.ims.eval.entity.EvaluationPersonnel;
|
|
|
import com.ims.eval.entity.EvaluationPortal;
|
|
|
-import com.ims.eval.entity.Indicator;
|
|
|
import com.ims.eval.entity.dto.result.R;
|
|
|
import com.ims.eval.service.IEvaluationPortalService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -52,5 +48,17 @@ public class EvaluationPortalController {
|
|
|
return R.ok().data(data);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 年度排行榜数据
|
|
|
+ *
|
|
|
+ * @param binSection binSection
|
|
|
+ * @param year 年度
|
|
|
+ * @return 结果
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/annualRankingData")
|
|
|
+ public R annualRankingData(@RequestParam(value = "binSection") String binSection,
|
|
|
+ @RequestParam(value = "year") String year) {
|
|
|
+ Map<String, Object> data = portalService.selectPortalList(binSection, year, null);
|
|
|
+ return R.ok().data(data);
|
|
|
+ }
|
|
|
}
|