瀏覽代碼

代码优化

hlf 1 年之前
父節點
當前提交
8817da8201

+ 0 - 43
ims-service/ims-eval/src/main/java/com/ims/eval/api/HomeController.java

@@ -1,43 +0,0 @@
-package com.ims.eval.api;
-
-import com.ims.eval.entity.dto.result.R;
-import com.ims.eval.service.IEvaluationPortalService;
-import lombok.extern.slf4j.Slf4j;
-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.Map;
-
-/**
- * APP首页
- *
- * @author hlf
- * @date 2023/7/12 10:58
- * 文件说明:
- */
-@Slf4j
-@RestController
-@RequestMapping("//evaluation-app-home")
-public class HomeController {
-
-	@Autowired
-	private IEvaluationPortalService portalService;
-
-	/**
-	 * 年度排行榜数据
-	 *
-	 * @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);
-	}
-
-}

+ 13 - 5
ims-service/ims-eval/src/main/java/com/ims/eval/controller/EvaluationPortalController.java

@@ -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);
+	}
 }