1 changed files with 98 additions and 0 deletions
@ -0,0 +1,98 @@ |
|||||
|
package com.zdxt.code.controller; |
||||
|
|
||||
|
import com.zdxt.code.domain.ComprehensiveAnalysis; |
||||
|
import com.zdxt.code.service.ComprehensiveAnalysisService; |
||||
|
import com.zdxt.common.controller.BaseController; |
||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Controller; |
||||
|
import org.springframework.ui.Model; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
|
||||
|
import java.time.LocalDate; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Controller |
||||
|
@RequestMapping("/code/comprehensiveAnalysis") |
||||
|
public class ComprehensiveAnalysisController extends BaseController { |
||||
|
@Autowired |
||||
|
private ComprehensiveAnalysisService comprehensiveAnalysisService; |
||||
|
private String prefix = "project/code/comprehensiveAnalysis"; |
||||
|
|
||||
|
@RequiresPermissions("code:comprehensiveAnalysis:view") |
||||
|
@GetMapping() |
||||
|
public String complaintStatic(Model model) { |
||||
|
model.addAttribute("yearList", yearMake()); |
||||
|
return prefix + "/comprehensiveAnalysis"; |
||||
|
} |
||||
|
|
||||
|
@GetMapping("/sixIndicators") |
||||
|
@ResponseBody |
||||
|
public List<ComprehensiveAnalysis> sixIndicators(ComprehensiveAnalysis comprehensiveAnalysis){ |
||||
|
//传入的区域,街道为中文
|
||||
|
return comprehensiveAnalysisService.sixIndicators(comprehensiveAnalysis); |
||||
|
} |
||||
|
@GetMapping("/sixIndicatorsGroupByQY") |
||||
|
@ResponseBody |
||||
|
public List<ComprehensiveAnalysis> sixIndicatorsGroupByQY(ComprehensiveAnalysis comprehensiveAnalysis){ |
||||
|
//传入的区域,街道为中文
|
||||
|
return comprehensiveAnalysisService.sixIndicatorsGroupByQY(comprehensiveAnalysis); |
||||
|
} |
||||
|
@GetMapping("/sixIndicatorsGroupByJD") |
||||
|
@ResponseBody |
||||
|
public List<ComprehensiveAnalysis> sixIndicatorsGroupByJD(ComprehensiveAnalysis comprehensiveAnalysis){ |
||||
|
//传入的区域,街道为中文
|
||||
|
return comprehensiveAnalysisService.sixIndicatorsGroupByJD(comprehensiveAnalysis); |
||||
|
} |
||||
|
@GetMapping("/checkCategoryList") |
||||
|
@ResponseBody |
||||
|
public List<ComprehensiveAnalysis> checkCategoryList(ComprehensiveAnalysis comprehensiveAnalysis){ |
||||
|
//传入的区域,街道为中文
|
||||
|
return comprehensiveAnalysisService.checkCategoryList(comprehensiveAnalysis); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("/companyOrgTypeList") |
||||
|
@ResponseBody |
||||
|
public List<ComprehensiveAnalysis> companyOrgTypeList(ComprehensiveAnalysis comprehensiveAnalysis){ |
||||
|
//传入的区域,街道为中文
|
||||
|
return comprehensiveAnalysisService.companyOrgTypeList(comprehensiveAnalysis); |
||||
|
} |
||||
|
@GetMapping("/complaintTypeList") |
||||
|
@ResponseBody |
||||
|
public List<ComprehensiveAnalysis> complaintTypeList(ComprehensiveAnalysis comprehensiveAnalysis){ |
||||
|
//传入的区域,街道为中文
|
||||
|
return comprehensiveAnalysisService.complaintTypeList(comprehensiveAnalysis); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("/registrationNumberRankingByEnterprise") |
||||
|
@ResponseBody |
||||
|
public List<ComprehensiveAnalysis> registrationNumberRankingByEnterprise(ComprehensiveAnalysis comprehensiveAnalysis){ |
||||
|
//传入的区域,街道为中文
|
||||
|
return comprehensiveAnalysisService.registrationNumberRankingByEnterprise(comprehensiveAnalysis); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("/registrationNumberRankingByBureauDept") |
||||
|
@ResponseBody |
||||
|
public List<ComprehensiveAnalysis> registrationNumberRankingByBureauDept(ComprehensiveAnalysis comprehensiveAnalysis){ |
||||
|
//传入的区域,街道为中文
|
||||
|
return comprehensiveAnalysisService.registrationNumberRankingByBureauDept(comprehensiveAnalysis); |
||||
|
} |
||||
|
@GetMapping("/complaintNumberRankingByBureauDept") |
||||
|
@ResponseBody |
||||
|
public List<ComprehensiveAnalysis> complaintNumberRankingByBureauDept(ComprehensiveAnalysis comprehensiveAnalysis){ |
||||
|
//传入的区域,街道为中文
|
||||
|
return comprehensiveAnalysisService.complaintNumberRankingByBureauDept(comprehensiveAnalysis); |
||||
|
} |
||||
|
|
||||
|
public List<Integer> yearMake() { |
||||
|
int current = LocalDate.now().getYear(); |
||||
|
List<Integer> yearList = new ArrayList<>(); |
||||
|
for (int i = current; i >= 2023; i--) { |
||||
|
yearList.add(i); |
||||
|
} |
||||
|
return yearList; |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue