首页>代码>springboot+mybatis+layui实现的简单就业信息管理系统>/employment-manage/src/main/java/com/javaer/employmentmanage/controller/EmploymentStatisticController.java
package com.javaer.employmentmanage.controller; import com.javaer.employmentmanage.common.CommonResult; import com.javaer.employmentmanage.service.EmploymentInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import java.util.List; import java.util.Map; @Controller public class EmploymentStatisticController { @Autowired EmploymentInfoService employmentInfoService; @RequestMapping("/employmentmanage/statistic") public String index(){ return "system/employmentstatistic/employmentstatistic"; } @ResponseBody @RequestMapping("/employmentmanage/statistic/{fieldName}") public CommonResult<List<Map<String, String>>> getStatisticData(@PathVariable("fieldName") String fieldName, @RequestParam("limit") int pageSize, @RequestParam("page") int pageNum){ List<Map<String, String>> statisticResult = employmentInfoService.getStudentCount(fieldName, pageNum, pageSize); return CommonResult.generateSuccessResult(statisticResult.size(), statisticResult); } }
最近下载更多
zhijidong LV4
1月15日
admin_z LV22
2023年12月27日
709885402 LV4
2023年8月31日
zhangwuxuan
2023年7月16日
暂无贡献等级
lipiao161 LV16
2023年6月29日
静静123456 LV3
2023年6月23日
hahaha_123 LV2
2023年6月14日
jlmarket LV22
2023年6月7日
微信网友_6482083022819328 LV9
2023年5月19日
王华伟 LV19
2023年4月26日
最近浏览更多
whb5566 LV10
4月24日
微信网友_6961718086799360 LV1
4月22日
微信网友_6927932988952576 LV12
3月31日
heweimin LV12
3月21日
eagerwujin LV4
2月25日
pangzhihui LV12
2月24日
涛涛8888 LV6
1月26日
fglmm520
1月18日
暂无贡献等级
zhijidong LV4
1月15日
lo8lukoukoum LV4
1月7日