You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.9 KiB
53 lines
1.9 KiB
package com.epmet.controller;
|
|
|
|
import com.epmet.commons.tools.utils.Result;
|
|
import com.epmet.dto.result.lingshan.LingShanSpecialCrowdStatsByOrgResultDTO;
|
|
import com.epmet.dto.result.lingshan.LingShanSpecialCrowdStatsBySpecialTypeResultDTO;
|
|
import com.epmet.service.LingShanScreenService;
|
|
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;
|
|
|
|
/**
|
|
* 灵山大屏
|
|
*/
|
|
@RestController
|
|
@RequestMapping("lingshanScreen")
|
|
public class LingShanScreenController {
|
|
|
|
@Autowired
|
|
private LingShanScreenService lingShanScreenService;
|
|
|
|
/**
|
|
* @description: 特殊人群-按组织分组统计数量
|
|
* @param parentAgencyId:
|
|
* @return
|
|
* @author: WangXianZhang
|
|
* @date: 2023/4/27 10:20 AM
|
|
*/
|
|
@GetMapping("specialCrowdStats/qtyOfSubOrg")
|
|
public Result specialCrowdStatsCountBySubOrg(@RequestParam("parentAgencyId") String parentAgencyId,
|
|
@RequestParam(value = "specialType", required = false) String specialType) {
|
|
|
|
List<LingShanSpecialCrowdStatsByOrgResultDTO> l = lingShanScreenService.specialCrowdStatsCountBySubOrg(parentAgencyId, specialType);
|
|
return new Result().ok(l);
|
|
}
|
|
|
|
/**
|
|
* @description: 组织下每一类人群数量
|
|
* @param parentAgencyId:
|
|
* @return
|
|
* @author: WangXianZhang
|
|
* @date: 2023/4/27 12:16 PM
|
|
*/
|
|
@GetMapping("specialCrowdStats/qtyOfSpecialType")
|
|
public Result specialCrowdStatsCountBySpecialType(@RequestParam("parentAgencyId") String parentAgencyId) {
|
|
List<LingShanSpecialCrowdStatsBySpecialTypeResultDTO> l = lingShanScreenService.specialCrowdStatsCountBySpecialType(parentAgencyId);
|
|
return new Result().ok(l);
|
|
}
|
|
|
|
}
|
|
|