From 2e64c232ab6b51b2cecf1ee96e1e9b709234f326 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期六, 21 八月 2021 16:35:14 +0800
Subject: [PATCH] 随手拍改版接口开发

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationHouseUserServiceImpl.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationHouseUserServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationHouseUserServiceImpl.java
index f6f48b1..b1b96c0 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationHouseUserServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationHouseUserServiceImpl.java
@@ -1,9 +1,11 @@
 package com.panzhihua.service_community.service.impl;
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.panzhihua.common.model.dtos.grid.AddComMngHousePopulationDTO;
 import com.panzhihua.common.model.dtos.grid.DelComMngHousePopulationDTO;
+import com.panzhihua.common.model.dtos.grid.admin.PageComMngVillagePopulationHouseDTO;
 import com.panzhihua.common.model.vos.R;
 import com.panzhihua.common.utlis.Snowflake;
 import com.panzhihua.service_community.dao.ComMngPopulationHouseUserDAO;
@@ -26,6 +28,11 @@
 @Service
 public class ComMngPopulationHouseUserServiceImpl extends ServiceImpl<ComMngPopulationHouseUserDAO, ComMngPopulationHouseUserDO> implements ComMngPopulationHouseUserService {
 
+    /**
+     * 批量向房屋新增人员
+     * @param housePopulationDTO    请求参数
+     * @return  添加结果
+     */
     @Override
     @Transactional(rollbackFor = Exception.class)
     public R addBuildingHousePopulation(AddComMngHousePopulationDTO housePopulationDTO){
@@ -61,6 +68,11 @@
         return R.ok();
     }
 
+    /**
+     * 批量删除房屋内人员
+     * @param housePopulationDTO    请求参数
+     * @return  删除结果
+     */
     @Override
     public R delBuildingHousePopulation(DelComMngHousePopulationDTO housePopulationDTO){
 
@@ -84,4 +96,9 @@
         return R.ok();
     }
 
+    @Override
+    public R getVillagePopulationHouseAdmin(PageComMngVillagePopulationHouseDTO villagePopulationDTO){
+        return R.ok(this.baseMapper.getVillagePopulationHouseAdmin(new Page(villagePopulationDTO.getPageNum(),villagePopulationDTO.getPageSize()),villagePopulationDTO));
+    }
+
 }

--
Gitblit v1.7.1