| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import org.springblade.common.utils.SpringUtils; |
| | | import org.springblade.core.mp.base.BaseServiceImpl; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.house.service.IHouseRentalService; |
| | | import org.springblade.modules.house.service.IHouseholdService; |
| | | import org.springblade.modules.house.vo.HouseRentalTenantVO; |
| | | import org.springblade.modules.place.service.IPlaceExtService; |
| | | import org.springblade.modules.task.entity.TaskEntity; |
| | | import org.springblade.modules.task.mapper.TaskMapper; |
| | | import org.springblade.modules.task.service.ITaskReportForRepairsService; |
| | | import org.springblade.modules.task.service.ITaskService; |
| | | import org.springblade.modules.task.vo.TaskVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public Object countTypeNumber() { |
| | | TaskVO taskVO = new TaskVO(); |
| | | Map<String, Object> objectObjectHashMap = new HashMap<>(); |
| | | taskVO.setUserId(AuthUtil.getUserId()); |
| | | taskVO.setType(1); |
| | | taskVO.setStatus(1); |
| | | // 综治任务 |
| | | Integer comprehensiveTask = baseMapper.selectTaskCount(taskVO); |
| | | taskVO.setType(2); |
| | | // 组建任务 |
| | | Integer residentialTask = baseMapper.selectTaskCount(taskVO); |
| | | taskVO.setType(3); |
| | | // 公安任务 |
| | | Integer publicTask = baseMapper.selectTaskCount(taskVO); |
| | | |
| | | taskVO.setReportType(2); |
| | | // 标签时间 |
| | | Integer bqsj = baseMapper.selectTaskCount(taskVO); |
| | | taskVO.setReportType(1); |
| | | // 标签时间 |
| | | Integer qbhs = baseMapper.selectTaskCount(taskVO); |
| | | // 报事报修 |
| | | // Integer statistics = iTaskReportForRepairsService.getStatistics(AuthUtil.getUserId()); |
| | | Integer bsbx = SpringUtils.getBean(ITaskReportForRepairsService.class).getStatistics(AuthUtil.getUserId(), ""); |
| | | // 住房审核 |
| | | Integer statistics1 = iHouseholdService.statistics(AuthUtil.getUserId()); |
| | | Integer zhsh = iHouseholdService.statistics(AuthUtil.getUserId(),""); |
| | | // 出租审核 |
| | | Integer statisticsCount = iHouseRentalService.getStatisticsCount(new HouseRentalTenantVO()); |
| | | |
| | | objectObjectHashMap.put("comprehensiveTask", comprehensiveTask); |
| | | objectObjectHashMap.put("residentialTask", residentialTask); |
| | | objectObjectHashMap.put("publicTask", publicTask); |
| | | |
| | | // objectObjectHashMap.put("baoshi", statistics); |
| | | objectObjectHashMap.put("zhufang", statistics1); |
| | | objectObjectHashMap.put("chuzhu", statisticsCount); |
| | | HouseRentalTenantVO houseRentalTenantVO = new HouseRentalTenantVO(); |
| | | houseRentalTenantVO.setUserId(AuthUtil.getUserId()); |
| | | Integer czsh = iHouseRentalService.getStatisticsCount(houseRentalTenantVO); |
| | | // 场所审核 |
| | | Integer cssh = SpringUtils.getBean(IPlaceExtService.class).selectCount(AuthUtil.getUserId(), "", 1); |
| | | objectObjectHashMap.put("qbhs", qbhs); |
| | | objectObjectHashMap.put("bqsj", bqsj); |
| | | objectObjectHashMap.put("bsbx", bsbx); |
| | | objectObjectHashMap.put("zhsh", zhsh); |
| | | objectObjectHashMap.put("czsh", czsh); |
| | | objectObjectHashMap.put("cssh", cssh); |
| | | return objectObjectHashMap; |
| | | } |
| | | |