|
|
|
/**
|
|
|
|
* Copyright 2018 人人开源 https://www.renren.io
|
|
|
|
* <p>
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
* <p>
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
* <p>
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package com.epmet.service;
|
|
|
|
|
|
|
|
import com.epmet.commons.mybatis.service.BaseService;
|
|
|
|
import com.epmet.commons.tools.page.PageData;
|
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto;
|
|
|
|
import com.epmet.dto.form.*;
|
|
|
|
import com.epmet.dto.result.*;
|
|
|
|
import com.epmet.entity.IcResiUserEntity;
|
|
|
|
import com.epmet.excel.support.ExportResiUserItemDTO;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 用户基础信息
|
|
|
|
*
|
|
|
|
* @author generator generator@elink-cn.com
|
|
|
|
* @since v1.0.0 2021-10-26
|
|
|
|
*/
|
|
|
|
public interface IcResiUserService extends BaseService<IcResiUserEntity> {
|
|
|
|
/**
|
|
|
|
* 单个删除
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
* @author generator
|
|
|
|
* @date 2021-10-26
|
|
|
|
*/
|
|
|
|
void delete(DelIcResiUserFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author sun
|
|
|
|
* @Description 党建互联平台--保存居民信息
|
|
|
|
**/
|
|
|
|
String add(TokenDto tokenDto, List<IcResiUserFormDTO> formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author sun
|
|
|
|
* @Description 党建互联平台--修改居民信息
|
|
|
|
**/
|
|
|
|
String edit(TokenDto tokenDto, List<IcResiUserFormDTO> formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 获取房间内人员
|
|
|
|
* @Param homeId
|
|
|
|
* @Return {@link List< HomeUserResultDTO>}
|
|
|
|
* @Author zhaoqifeng
|
|
|
|
* @Date 2021/11/1 10:52
|
|
|
|
*/
|
|
|
|
List<HomeUserResultDTO> getPeopleByRoom(String homeId);
|
|
|
|
|
|
|
|
PageData<Map<String,Object>> pageResiMap(IcResiUserPageFormDTO formDTO);
|
|
|
|
/**
|
|
|
|
* 编辑页面,显示居民信息详情
|
|
|
|
*
|
|
|
|
* @param pageFormDTO
|
|
|
|
* @return java.util.Map
|
|
|
|
* @author yinzuomei
|
|
|
|
* @date 2021/10/28 10:29 上午
|
|
|
|
*/
|
|
|
|
Map queryIcResiDetail(IcResiDetailFormDTO pageFormDTO);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Map<String,Object>> dynamicQuery(String customerId,
|
|
|
|
String formCode,
|
|
|
|
String resultTableName,
|
|
|
|
List<ResiUserQueryValueDTO> conditions,
|
|
|
|
String currentStaffAgencyId,
|
|
|
|
String staffOrgPath);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 查询个人数据
|
|
|
|
* @param formDTO
|
|
|
|
* @author zxc
|
|
|
|
* @date 2021/11/3 9:21 上午
|
|
|
|
*/
|
|
|
|
PersonDataResultDTO personData(PersonDataFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 根据名字搜索
|
|
|
|
* @param formDTO
|
|
|
|
* @param tokenDto
|
|
|
|
* @author zxc
|
|
|
|
* @date 2021/11/3 1:42 下午
|
|
|
|
*/
|
|
|
|
PageData<SearchByNameResultDTO> searchByName(SearchByNameFormDTO formDTO, TokenDto tokenDto);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* desc:条件导出
|
|
|
|
*
|
|
|
|
* @param exportResiUserItemDTO
|
|
|
|
* @param baseTableName
|
|
|
|
* @return Map<String,Map<String,Object>> 用户Id:用户信息所有的字段名及值
|
|
|
|
*/
|
|
|
|
List<Map<String, Object>> getDataForExport(ExportResiUserItemDTO exportResiUserItemDTO, String baseTableName, IcResiUserPageFormDTO pageFormDTO, String currentStaffAgencyId,
|
|
|
|
String staffOrgPath);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 家庭关系
|
|
|
|
* @Param userId
|
|
|
|
* @Return {@link OwnerRelationResultDTO}
|
|
|
|
* @Author zhaoqifeng
|
|
|
|
* @Date 2021/11/5 10:28
|
|
|
|
*/
|
|
|
|
OwnerRelationResultDTO getOwnerRelation(String userId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 获取一栋楼每个房间人员分类的数量
|
|
|
|
* @Param buildId
|
|
|
|
* @Return {@link Map< String, Map< String, String>>}
|
|
|
|
* @Author zhaoqifeng
|
|
|
|
* @Date 2021/11/5 14:40
|
|
|
|
*/
|
|
|
|
Map<String, Map<String, String>> getHomeUserCategoryCount(String buildId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* desc:根据formCode 获取标单项
|
|
|
|
*
|
|
|
|
* @param customerId
|
|
|
|
* @param formCode
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
List<FormItemResult> listFormItems(String customerId, String formCode);
|
|
|
|
|
|
|
|
List<DemandUserResDTO> queryDemandUsers(DemandUserFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 返回ic_resi_user.id
|
|
|
|
*
|
|
|
|
* @param customerId
|
|
|
|
* @param idNum
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
String getByIdCard(String customerId, String idNum);
|
|
|
|
}
|