| | |
| | | package org.springblade.modules.place.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springblade.common.constant.CommonConstant; |
| | | import org.springblade.modules.place.entity.PlacePractitionerEntity; |
| | | import org.springblade.modules.place.vo.PlacePractitionerVO; |
| | | import org.springblade.modules.place.mapper.PlacePractitionerMapper; |
| | |
| | | import org.springblade.core.mp.base.BaseServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 场所从业人员 服务实现类 |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 统计少数民族和未成年数量 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Object countByType() { |
| | | // 未成年数量 |
| | | Integer minors = baseMapper.selectPlaceCountByType(CommonConstant.NUMBER_ONE); |
| | | // 少数民族 |
| | | Integer nationalMinority = baseMapper.selectPlaceCountByType(CommonConstant.NUMBER_TWO); |
| | | Map<String, Integer> resultMap = new HashMap<>(); |
| | | resultMap.put("minors",minors); |
| | | resultMap.put("nationalMinority",nationalMinority); |
| | | return resultMap; |
| | | } |
| | | } |