diff --git a/src/main/java/com/cm/population/controller/resources/basepopulationinfo/BasePopulationInfoResourceController.java b/src/main/java/com/cm/population/controller/resources/basepopulationinfo/BasePopulationInfoResourceController.java new file mode 100644 index 0000000..e56cdbb --- /dev/null +++ b/src/main/java/com/cm/population/controller/resources/basepopulationinfo/BasePopulationInfoResourceController.java @@ -0,0 +1,49 @@ +package com.cm.population.controller.resources.basepopulationinfo; + +import com.cm.common.annotation.CheckRequestBodyAnnotation; +import com.cm.common.base.AbstractController; +import com.cm.common.component.SecurityComponent; +import com.cm.common.constants.ISystemConstant; +import com.cm.common.exception.RemoveException; +import com.cm.common.exception.SearchException; +import com.cm.common.pojo.ListPage; +import com.cm.common.pojo.dtos.CurrentUserIdInfoDTO; +import com.cm.common.result.ErrorResult; +import com.cm.common.result.SuccessResult; +import com.cm.common.result.SuccessResultData; +import com.cm.common.result.SuccessResultList; +import com.cm.population.pojo.dtos.basepopulationinfo.BasePopulationInfoDTO; +import com.cm.population.pojo.vos.basepopulationinfo.BasePopulationInfoVO; +import com.cm.population.service.basepopulationinfo.IBasePopulationInfoService; +import io.swagger.annotations.*; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; +import java.util.Map; + +/** + * @ClassName: BasePopulationInfoController + * @Description: 人员信息基础表 + * @Author: WenG + * @Date: 2020-11-16 17:17 + * @Version: 1.0 + **/ +@Api(tags = ISystemConstant.API_TAGS_RESOURCE_PREFIX + "人员信息基础表接口") +@RestController +@RequestMapping(ISystemConstant.RESOURCE_PREFIX + "/basepopulationinfo") +public class BasePopulationInfoResourceController extends AbstractController { + + @Autowired + private IBasePopulationInfoService basePopulationInfoService; + @Autowired + private SecurityComponent securityComponent; + + @ApiOperation(value = "人员信息基础表统计", notes = "人员信息基础表统计接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @PostMapping("countbasepopulationinfo") + SuccessResultData countBasePopulationInfo(@RequestBody Map params) throws SearchException { + return basePopulationInfoService.countBasePopulationInfo(params); + } + +} \ No newline at end of file