diff --git a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/RentHouseFormDTO.java b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/RentHouseFormDTO.java
new file mode 100644
index 0000000000..88c584ccc8
--- /dev/null
+++ b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/RentHouseFormDTO.java
@@ -0,0 +1,21 @@
+package com.epmet.dto.form;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @author zhy
+ * @date 2022/4/26 11:18
+ */
+@Data
+public class RentHouseFormDTO implements Serializable {
+ private static final long serialVersionUID = 2636608477324780974L;
+
+ private String id;
+
+ /**
+ * 1出租;0未出租
+ */
+ private Integer rentFlag;
+}
diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/HouseController.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/HouseController.java
index 8f6b2ab84e..e1cb16c102 100644
--- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/HouseController.java
+++ b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/HouseController.java
@@ -150,6 +150,21 @@ public class HouseController implements ResultDataResolver {
return new Result();
}
+ /**
+ * 小寨子社区-合同签订后变更成出租状态
+ *
+ * @param formDTO
+ * @return com.epmet.commons.tools.utils.Result
+ * @author zhy
+ * @date 2022/4/26 11:16
+ */
+ @NoRepeatSubmit
+ @PostMapping("update2rent")
+ public Result update2Rent(@RequestBody RentHouseFormDTO formDTO) {
+ houseService.update2Rent(formDTO);
+ return new Result();
+ }
+
/**
* lzh
*
diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/HouseService.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/HouseService.java
index babb8ff07d..bc92618b3c 100644
--- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/HouseService.java
+++ b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/HouseService.java
@@ -21,7 +21,9 @@ import com.epmet.commons.tools.page.PageData;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.form.*;
import com.epmet.dto.result.*;
-
+import com.epmet.dto.result.HouseInfoDTO;
+import com.epmet.dto.result.IcHouseListResultDTO;
+import com.epmet.dto.result.ImportTaskCommonResultDTO;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
@@ -40,6 +42,16 @@ public interface HouseService {
void updateHouse(String customerId, IcHouseAddFormDTO formDTO);
+ /**
+ * 小寨子社区-合同签订后变更成出租状态
+ *
+ * @param formDTO
+ * @return com.epmet.commons.tools.utils.Result
+ * @author zhy
+ * @date 2022/4/26 11:16
+ */
+ void update2Rent(RentHouseFormDTO formDTO);
+
/**
* 删除小区
* @param houseId
diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java
index a5108068d5..82df952253 100644
--- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java
+++ b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java
@@ -19,13 +19,12 @@ import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.utils.Result;
import com.epmet.constant.CustomerGridConstant;
-import com.epmet.commons.tools.utils.Result;
-import com.epmet.constant.CustomerGridConstant;
import com.epmet.constants.ImportTaskConstants;
import com.epmet.dao.*;
import com.epmet.dto.*;
import com.epmet.dto.form.*;
import com.epmet.dto.result.*;
+import com.epmet.entity.IcHouseEntity;
import com.epmet.enums.HousePurposeEnums;
import com.epmet.enums.HouseTypeEnums;
import com.epmet.feign.EpmetCommonServiceOpenFeignClient;
@@ -52,7 +51,6 @@ import java.text.NumberFormat;
import java.util.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.atomic.AtomicInteger;
-import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
@Slf4j
@@ -141,6 +139,13 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver {
icHouseService.update(icHouseDTO);
}
+ @Override
+ @Transactional(rollbackFor = Exception.class)
+ public void update2Rent(RentHouseFormDTO formDTO) {
+ IcHouseEntity entity = ConvertUtils.sourceToTarget(formDTO, IcHouseEntity.class);
+ icHouseService.updateById(entity);
+ }
+
/**
* 删除
* @param houseId
diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/IcResiUserAttachmentDTO.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/IcResiUserAttachmentDTO.java
new file mode 100644
index 0000000000..19dc8202e8
--- /dev/null
+++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/IcResiUserAttachmentDTO.java
@@ -0,0 +1,148 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+
+/**
+ * 项目节点附件表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2020-12-21
+ */
+@Data
+public class IcResiUserAttachmentDTO implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * 唯一标识
+ */
+ private String id;
+
+ /**
+ * 客户ID
+ */
+ private String customerId;
+
+ /**
+ * 用户ID
+ */
+ private String userId;
+
+ /**
+ * 文件所属内容(内部备注: public 公开答复:internal)
+ */
+ private String filePlace;
+
+ /**
+ * 文件名
+ */
+ private String fileName;
+
+ /**
+ * 附件名(uuid随机生成)
+ */
+ private String attachmentName;
+
+ /**
+ * 文件大小
+ */
+ private Integer attachmentSize;
+
+ /**
+ * 文件格式(JPG、PNG、JPEG、BMP、GIF、PDF、PPT、PPTX、DOC、DOCX、XLS、XLSX、MP3、WMA、M4A、MP4、AVI、MOV、RMVB、RM、WMV)
+ */
+ private String attachmentFormat;
+
+ /**
+ * 文件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc))
+ */
+ private String attachmentType;
+
+ /**
+ * url地址
+ */
+ private String attachmentUrl;
+
+ /**
+ * 排序(需求确定,按上传顺序排序)
+ */
+ private Integer sort;
+
+ /**
+ * 语音或视频时长,秒
+ */
+ private Integer duration;
+
+ /**
+ * 是否强制发布(0:否 1:是)
+ */
+ private Integer isRelease;
+
+ /**
+ * 附件状态(审核中:auditing;
+ * auto_passed: 自动通过;
+ * review:结果不确定,需要人工审核;
+ * block: 结果违规;
+ * rejected:人工审核驳回;
+ * approved:人工审核通过)
+ * 现在图片是同步审核的,所以图片只有auto_passed一种状态
+ */
+ private String status;
+
+ /**
+ * 附件审核结果描述
+ */
+ private String reason;
+
+ /**
+ * 删除标识:0.未删除 1.已删除
+ */
+ private String delFlag;
+
+ /**
+ * 乐观锁
+ */
+ private Integer revision;
+
+ /**
+ * 创建人
+ */
+ private String createdBy;
+
+ /**
+ * 创建时间
+ */
+ private Date createdTime;
+
+ /**
+ * 更新人
+ */
+ private String updatedBy;
+
+ /**
+ * 更新时间
+ */
+ private Date updatedTime;
+
+}
\ No newline at end of file
diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/RentTenantDataFormDTO.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/RentTenantDataFormDTO.java
new file mode 100644
index 0000000000..1652e30259
--- /dev/null
+++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/RentTenantDataFormDTO.java
@@ -0,0 +1,24 @@
+package com.epmet.dto.form;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+import java.io.Serializable;
+
+/**
+ * 租客,房东信息
+ *
+ * @author zhy
+ * @date 2022/4/26 10:54
+ */
+@Data
+public class RentTenantDataFormDTO implements Serializable {
+ private static final long serialVersionUID = 9156247659994638103L;
+
+ @NotBlank(message = "userId不能为空",groups = PersonDataFormDTO.PersonDataForm.class)
+ private String userId;
+
+ @NotBlank(message = "tokenDto获取customerId不能为空",groups = PersonDataFormDTO.PersonDataForm.class)
+ private String customerId;
+
+}
diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/RentTenantFormDTO.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/RentTenantFormDTO.java
new file mode 100644
index 0000000000..06f1e1d8dd
--- /dev/null
+++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/RentTenantFormDTO.java
@@ -0,0 +1,89 @@
+package com.epmet.dto.form;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.LinkedHashMap;
+import java.util.List;
+
+/**
+ * 租客,房东信息
+ *
+ * @author zhy
+ * @date 2022/4/26 10:54
+ */
+@Data
+public class RentTenantFormDTO implements Serializable {
+ private static final long serialVersionUID = 9156247659994638103L;
+
+ /**
+ * 头像
+ */
+ private String img;
+
+ /**
+ * customerId
+ */
+ private String customerId;
+
+ /**
+ * gridId
+ */
+ private String gridId;
+
+ /**
+ *
+ */
+ private String agencyId;
+
+ /**
+ *
+ */
+ private String pids;
+
+ /**
+ * 所属小区ID
+ */
+ private String villageId;
+
+ /**
+ * 所属楼宇Id
+ */
+ private String buildId;
+
+ /**
+ * 单元id
+ */
+ private String unitId;
+
+ /**
+ * 所属家庭Id
+ */
+ private String homeId;
+
+ /**
+ * 是否本地户籍
+ */
+ private String isBdhj;
+
+ /**
+ * 姓名
+ */
+ private String name;
+
+ /**
+ * 手机号
+ */
+ private String mobile;
+
+ /**
+ * 性别
+ */
+ private String gender;
+
+ /**
+ * 身份证号
+ */
+ private String idCard;
+
+}
diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/RentTenantDataResultDTO.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/RentTenantDataResultDTO.java
new file mode 100644
index 0000000000..1ee188c346
--- /dev/null
+++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/RentTenantDataResultDTO.java
@@ -0,0 +1,537 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.dto.result;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+
+/**
+ * 用户基础信息
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2021-10-26
+ */
+@Data
+public class RentTenantDataResultDTO implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * 主键
+ */
+ private String id;
+
+ /**
+ * 客户Id customer.id
+ */
+ private String customerId;
+
+ /**
+ *
+ */
+ private String agencyId;
+
+ /**
+ *
+ */
+ private String pids;
+
+ /**
+ * 网格ID
+ */
+ private String gridId;
+
+ /**
+ * 所属小区ID
+ */
+ private String villageId;
+
+ /**
+ * 所属楼宇Id
+ */
+ private String buildId;
+
+ /**
+ * 单元id
+ */
+ private String unitId;
+
+ /**
+ * 所属家庭Id
+ */
+ private String homeId;
+
+ /**
+ * 是否本地户籍
+ */
+ private String isBdhj;
+
+ /**
+ * 姓名
+ */
+ private String name;
+
+ /**
+ * 手机号
+ */
+ private String mobile;
+
+ /**
+ * 性别
+ */
+ private String gender;
+
+ /**
+ * 身份证号
+ */
+ private String idCard;
+
+ /**
+ * 出生日期
+ */
+ private String birthday;
+
+ /**
+ * 备注
+ */
+ private String remarks;
+
+ /**
+ * 联系人
+ */
+ private String contacts;
+
+ /**
+ * 联系人电话
+ */
+ private String contactsMobile;
+
+ /**
+ * 九小场所url
+ */
+ private String ninePlace;
+
+ /**
+ * 是否党员
+ */
+ private String isParty;
+
+ /**
+ * 是否低保户
+ */
+ private String isDbh;
+
+ /**
+ * 是否保障房
+ */
+ private String isEnsureHouse;
+
+ /**
+ * 是否失业
+ */
+ private String isUnemployed;
+
+ /**
+ * 是否育龄妇女
+ */
+ private String isYlfn;
+
+ /**
+ * 是否退役军人
+ */
+ private String isVeterans;
+
+ /**
+ * 是否统战人员
+ */
+ private String isUnitedFront;
+
+ /**
+ * 是否信访人员
+ */
+ private String isXfry;
+
+ /**
+ * 是否志愿者
+ */
+ private String isVolunteer;
+
+ /**
+ * 是否老年人
+ */
+ private String isOldPeople;
+
+ /**
+ * 是否空巢
+ */
+ private String isKc;
+
+ /**
+ * 是否失独
+ */
+ private String isSd;
+
+ /**
+ * 是否失能
+ */
+ private String isSn;
+
+ /**
+ * 是否失智
+ */
+ private String isSz;
+
+ /**
+ * 是否残疾
+ */
+ private String isCj;
+
+ /**
+ * 是否大病
+ */
+ private String isDb;
+
+ /**
+ * 是否慢病
+ */
+ private String isMb;
+
+ /**
+ * 是否特殊人群
+ */
+ private String isSpecial;
+
+ /**
+ * 文化程度【字典表】
+ */
+ private String culture;
+
+ /**
+ * 文化程度备注
+ */
+ private String cultureRemakes;
+
+ /**
+ * 特长【字典表】
+ */
+ private String specialSkill;
+
+ /**
+ * 兴趣爱好
+ */
+ private String hobby;
+
+ /**
+ * 兴趣爱好备注
+ */
+ private String hobbyRemakes;
+
+ /**
+ * 宗教信仰
+ */
+ private String faith;
+
+ /**
+ * 宗教信仰备注
+ */
+ private String faithRemakes;
+
+ /**
+ * 残疾类别【字典表】
+ */
+ private String cjlb;
+
+ /**
+ * 残疾登记(状况)【字典表】
+ */
+ private String cjzk;
+
+ /**
+ * 残疾证号
+ */
+ private String cjzh;
+
+ /**
+ * 残疾说明
+ */
+ private String cjsm;
+
+ /**
+ * 有无监护人【yes no】
+ */
+ private String ynJdr;
+
+ /**
+ * 有无技能特长【yes no】
+ */
+ private String ynJntc;
+
+ /**
+ * 有无劳动能力
+ */
+ private String ynLdnl;
+
+ /**
+ * 有无非义务教育阶段助学【yes no】
+ */
+ private String ynFywjyjdzx;
+
+ /**
+ * 所患大病
+ */
+ private String shdb;
+
+ /**
+ * 患大病时间
+ */
+ private String dbsj;
+
+ /**
+ * 所患慢性病
+ */
+ private String shmxb;
+
+ /**
+ * 患慢性病时间
+ */
+ private String mxbsj;
+
+ /**
+ * 是否参保
+ */
+ private String isCb;
+
+ /**
+ * 自付金额
+ */
+ private String zfje;
+
+ /**
+ * 救助金额
+ */
+ private String jzje;
+
+ /**
+ * 救助时间[yyyy-MM-dd]
+ */
+ private String jzsj;
+
+ /**
+ * 享受救助明细序号
+ */
+ private String jzmxxh;
+
+ /**
+ * 健康信息备注
+ */
+ private String healthRemakes;
+
+ /**
+ * 工作单位
+ */
+ private String gzdw;
+
+ /**
+ * 职业
+ */
+ private String zy;
+
+ /**
+ * 离退休时间
+ */
+ private String ltxsj;
+
+ /**
+ * 工作信息备注
+ */
+ private String workRemake;
+
+ /**
+ * 退休金额
+ */
+ private String txje;
+
+ /**
+ * 月收入
+ */
+ private String ysr;
+
+ /**
+ * 是否经济低保
+ */
+ private String isJjdb;
+
+ /**
+ * 籍贯
+ */
+ private String jg;
+
+ /**
+ * 户籍所在地
+ */
+ private String hjszd;
+
+ /**
+ * 现居住地
+ */
+ private String xjzd;
+
+ /**
+ * 人户情况
+ */
+ private String rhzk;
+
+ /**
+ * 居住信息备注
+ */
+ private String jzxxRemakes;
+
+ /**
+ * 民族【字典表】
+ */
+ private String mz;
+
+ /**
+ * 与户主关系【字典表】
+ */
+ private String yhzgx;
+
+ /**
+ * 居住情况【字典表】
+ */
+ private String jzqk;
+
+ /**
+ * 婚姻状况【字典表】
+ */
+ private String hyzk;
+
+ /**
+ * 配偶情况【字典表】
+ */
+ private String poqk;
+
+ /**
+ * 有无赡养人
+ */
+ private String ynSyr;
+
+ /**
+ * 与赡养人关系【字典表】
+ */
+ private String ysyrgx;
+
+ /**
+ * 赡养人电话
+ */
+ private String syrMobile;
+
+ /**
+ * 家庭信息备注
+ */
+ private String jtxxRemakes;
+
+ /**
+ * 用户状态【0:正常 1:转出】
+ */
+ private String status;
+
+ /**
+ * 删除标识 0.未删除 1.已删除
+ */
+ private Integer delFlag;
+
+ /**
+ * 乐观锁
+ */
+ private Integer revision;
+
+ /**
+ * 创建人
+ */
+ private String createdBy;
+
+ /**
+ * 创建时间
+ */
+ private Date createdTime;
+
+ /**
+ * 更新人
+ */
+ private String updatedBy;
+
+ /**
+ * 更新时间
+ */
+ private Date updatedTime;
+
+ /**
+ * 预留字段1
+ */
+ private String field1;
+
+ /**
+ * 预留字段2
+ */
+ private String field2;
+
+ /**
+ * 预留字段3
+ */
+ private String field3;
+
+ /**
+ * 预留字段4
+ */
+ private String field4;
+
+ /**
+ * 预留字段5
+ */
+ private String field5;
+
+ /**
+ * 预留字段6
+ */
+ private String field6;
+
+ /**
+ * 预留字段7
+ */
+ private String field7;
+
+ /**
+ * 预留字段8
+ */
+ private String field8;
+
+ /**
+ * 预留字段9
+ */
+ private String field9;
+
+ /**
+ * 预留字段10
+ */
+ private String field10;
+
+}
\ No newline at end of file
diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java
index cd0fd2bc12..3cb454e1a5 100644
--- a/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java
+++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java
@@ -722,4 +722,27 @@ public interface EpmetUserOpenFeignClient {
@PostMapping("/epmetuser/icresiuser/userchartlist")
Result> userChartList(@RequestBody UserChartFormDTO userDTO);
+
+ /**
+ * 租客房东根据身份证更新头像
+ *
+ * @param formDTO
+ * @return com.epmet.commons.tools.utils.Result
+ * @author zhy
+ * @date 2022/4/26 10:48
+ */
+ @PostMapping("/epmetuser/icresiuser/rent/rentUpdate")
+ Result rentUpdate(@RequestBody RentTenantFormDTO formDTO);
+
+ /**
+ * 租客房东根据身份证更新头像
+ *
+ * @param formDTO
+ * @return com.epmet.commons.tools.utils.Result
+ * @author zhy
+ * @date 2022/4/26 10:48
+ */
+ @PostMapping("/epmetuser/icresiuser/rent/tenantData")
+ Result tenantData(@RequestBody RentTenantDataFormDTO formDTO);
+
}
diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/fallback/EpmetUserOpenFeignClientFallback.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/fallback/EpmetUserOpenFeignClientFallback.java
index 7fc46de0d5..5a5498e889 100644
--- a/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/fallback/EpmetUserOpenFeignClientFallback.java
+++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/fallback/EpmetUserOpenFeignClientFallback.java
@@ -537,4 +537,14 @@ public class EpmetUserOpenFeignClientFallback implements EpmetUserOpenFeignClien
public Result> userChartList(UserChartFormDTO userDTO) {
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "userChartList", userDTO);
}
+
+ @Override
+ public Result rentUpdate(RentTenantFormDTO formDTO) {
+ return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "rentUpdate", formDTO);
+ }
+
+ @Override
+ public Result tenantData(RentTenantDataFormDTO formDTO) {
+ return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "tenantData", formDTO);
+ }
}
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserAttachmentController.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserAttachmentController.java
new file mode 100644
index 0000000000..c40febf1f8
--- /dev/null
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserAttachmentController.java
@@ -0,0 +1,94 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.controller;
+
+import com.epmet.commons.tools.page.PageData;
+import com.epmet.commons.tools.utils.ExcelUtils;
+import com.epmet.commons.tools.utils.Result;
+import com.epmet.commons.tools.validator.AssertUtils;
+import com.epmet.commons.tools.validator.ValidatorUtils;
+import com.epmet.commons.tools.validator.group.AddGroup;
+import com.epmet.commons.tools.validator.group.DefaultGroup;
+import com.epmet.commons.tools.validator.group.UpdateGroup;
+import com.epmet.dto.IcResiUserAttachmentDTO;
+import com.epmet.excel.ProjectProcessAttachmentExcel;
+import com.epmet.service.IcResiUserAttachmentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * 项目节点附件表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2020-12-21
+ */
+@RestController
+@RequestMapping("icresiuserattachment")
+public class IcResiUserAttachmentController {
+
+ @Autowired
+ private IcResiUserAttachmentService icResiUserAttachmentService;
+
+ @GetMapping("page")
+ public Result> page(@RequestParam Map params){
+ PageData page = icResiUserAttachmentService.page(params);
+ return new Result>().ok(page);
+ }
+
+ @GetMapping("{id}")
+ public Result get(@PathVariable("id") String id){
+ IcResiUserAttachmentDTO data = icResiUserAttachmentService.get(id);
+ return new Result().ok(data);
+ }
+
+ @PostMapping
+ public Result save(@RequestBody IcResiUserAttachmentDTO dto){
+ //效验数据
+ ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
+ icResiUserAttachmentService.save(dto);
+ return new Result();
+ }
+
+ @PutMapping
+ public Result update(@RequestBody IcResiUserAttachmentDTO dto){
+ //效验数据
+ ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
+ icResiUserAttachmentService.update(dto);
+ return new Result();
+ }
+
+ @DeleteMapping
+ public Result delete(@RequestBody String[] ids){
+ //效验数据
+ AssertUtils.isArrayEmpty(ids, "id");
+ icResiUserAttachmentService.delete(ids);
+ return new Result();
+ }
+
+ @GetMapping("export")
+ public void export(@RequestParam Map params, HttpServletResponse response) throws Exception {
+ List list = icResiUserAttachmentService.list(params);
+ ExcelUtils.exportExcelToTarget(response, null, list, ProjectProcessAttachmentExcel.class);
+ }
+
+}
\ No newline at end of file
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java
index e21583fe6d..63372e0bd6 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java
@@ -229,16 +229,51 @@ public class IcResiUserController implements ResultDataResolver {
@PostMapping("edit")
public Result edit(@LoginUser TokenDto tokenDto, @RequestBody List formDTO) {
String resiUserId = icResiUserService.edit(tokenDto, formDTO);
+ //推送MQ事件
+ editResiMq(tokenDto.getCustomerId(), resiUserId);
+ return new Result();
+ }
+
+ /**
+ * 租客房东根据身份证更新头像
+ *
+ * @param formDTO
+ * @return com.epmet.commons.tools.utils.Result
+ * @author zhy
+ * @date 2022/4/26 10:48
+ */
+ @PostMapping("rent/rentUpdate")
+ public Result rentUpdate(@RequestBody RentTenantFormDTO formDTO) {
+ String resiUserId = icResiUserService.rentUpdate(formDTO);
+ //推送MQ事件
+ editResiMq(formDTO.getCustomerId(), resiUserId);
+ return new Result();
+ }
+
+ private void editResiMq(String customerId, String userId) {
//推送MQ事件
IcResiUserAddMQMsg mqMsg = new IcResiUserAddMQMsg();
- mqMsg.setCustomerId(tokenDto.getCustomerId());
- log.info("customer id is {}", tokenDto.getCustomerId());
- mqMsg.setIcResiUser(resiUserId);
+ mqMsg.setCustomerId(customerId);
+ log.info("customer id is {}", customerId);
+ mqMsg.setIcResiUser(userId);
SystemMsgFormDTO form = new SystemMsgFormDTO();
form.setMessageType(SystemMessageType.IC_RESI_USER_EDIT);
form.setContent(mqMsg);
epmetMessageOpenFeignClient.sendSystemMsgByMQ(form);
- return new Result();
+ }
+
+ /**
+ * 租客房东黑名单查询个人数据
+ *
+ * @param formDTO
+ * @return com.epmet.commons.tools.utils.Result
+ * @author zhy
+ * @date 2022/4/26 15:51
+ */
+ @PostMapping("rent/tenantData")
+ public Result tenantData(@RequestBody RentTenantDataFormDTO formDTO) {
+ ValidatorUtils.validateEntity(formDTO, RentTenantDataFormDTO.class);
+ return new Result().ok(icResiUserService.tenantData(formDTO));
}
/**
@@ -940,4 +975,19 @@ public class IcResiUserController implements ResultDataResolver {
List r = icResiUserService.listHomeUserBrief(houseId, customerId);
return new Result().ok(r);
}
+// @PostMapping("test-async")
+// public Result testAsync(HttpServletRequest request) {
+//// tl.set("wxz");
+// executorService.submit(() -> {
+// try {
+// Thread.sleep(500l);
+// log.info("[我是子线程]:" + EpmetRequestHolder.getHeader("app"));
+// System.out.println("---");
+// } catch (InterruptedException e) {
+// log.error("method exception", e);
+// }
+// icResiUserImportService.testAsync();
+// });
+// return new Result();
+// }
}
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiUserAttachmentDao.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiUserAttachmentDao.java
new file mode 100644
index 0000000000..233a0e756c
--- /dev/null
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiUserAttachmentDao.java
@@ -0,0 +1,45 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.dao;
+
+import com.epmet.commons.mybatis.dao.BaseDao;
+import com.epmet.dto.result.PublicAndInternalFileResultDTO;
+import com.epmet.entity.IcResiUserAttachmentEntity;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * 项目节点附件表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2020-12-21
+ */
+@Mapper
+public interface IcResiUserAttachmentDao extends BaseDao {
+
+ /**
+ * @Description 根据项目ID查询附件
+ * @Param projectId
+ * @author zxc
+ * @date 2020/12/21 下午4:33
+ */
+ List selectAttachByProjectId(@Param("projectId")String projectId);
+
+}
\ No newline at end of file
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiUserDao.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiUserDao.java
index 9392de35a4..6de40fe9fa 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiUserDao.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiUserDao.java
@@ -164,6 +164,8 @@ public interface IcResiUserDao extends BaseDao {
**/
IcResiUserDTO getResiUser(IcResiUserDTO dto);
+ IcResiUserDTO getResiUserByIdCard(@Param("idCard") String idCard,@Param("customerId") String customerId);
+
/**
* @param agencyId
* @param gridId
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/entity/IcResiUserAttachmentEntity.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/entity/IcResiUserAttachmentEntity.java
new file mode 100644
index 0000000000..a8bc7dd061
--- /dev/null
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/entity/IcResiUserAttachmentEntity.java
@@ -0,0 +1,119 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 项目节点附件表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2020-12-21
+ */
+@Data
+@EqualsAndHashCode(callSuper=false)
+@TableName("ic_resi_user_attachment")
+public class IcResiUserAttachmentEntity extends BaseEpmetEntity {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * 客户ID
+ */
+ private String customerId;
+
+ /**
+ * 项目ID
+ */
+ private String projectId;
+
+ /**
+ * 项目进展表ID
+ */
+ private String processId;
+
+ /**
+ * 文件所属内容(内部备注: public 公开答复:internal)
+ */
+ private String filePlace;
+
+ /**
+ * 文件名
+ */
+ private String fileName;
+
+ /**
+ * 附件名(uuid随机生成)
+ */
+ private String attachmentName;
+
+ /**
+ * 文件大小
+ */
+ private Integer attachmentSize;
+
+ /**
+ * 文件格式(JPG、PNG、JPEG、BMP、GIF、PDF、PPT、PPTX、DOC、DOCX、XLS、XLSX、MP3、WMA、M4A、MP4、AVI、MOV、RMVB、RM、WMV)
+ */
+ private String attachmentFormat;
+
+ /**
+ * 文件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc))
+ */
+ private String attachmentType;
+
+ /**
+ * url地址
+ */
+ private String attachmentUrl;
+
+ /**
+ * 排序(需求确定,按上传顺序排序)
+ */
+ private Integer sort;
+
+ /**
+ * 语音或视频时长,秒
+ */
+ private Integer duration;
+
+ /**
+ * 是否强制发布(0:否 1:是)
+ */
+ private Integer isRelease;
+
+ /**
+ * 附件状态(审核中:auditing;
+ * auto_passed: 自动通过;
+ * review:结果不确定,需要人工审核;
+ * block: 结果违规;
+ * rejected:人工审核驳回;
+ * approved:人工审核通过)
+ * 现在图片是同步审核的,所以图片只有auto_passed一种状态
+ */
+ private String status;
+
+ /**
+ * 附件审核结果描述
+ */
+ private String reason;
+
+}
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/excel/ProjectProcessAttachmentExcel.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/excel/ProjectProcessAttachmentExcel.java
new file mode 100644
index 0000000000..1809357326
--- /dev/null
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/excel/ProjectProcessAttachmentExcel.java
@@ -0,0 +1,101 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.excel;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * 项目节点附件表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2020-12-21
+ */
+@Data
+public class ProjectProcessAttachmentExcel {
+
+ @Excel(name = "唯一标识")
+ private String id;
+
+ @Excel(name = "客户ID")
+ private String customerId;
+
+ @Excel(name = "项目ID")
+ private String projectId;
+
+ @Excel(name = "项目进展表ID")
+ private String processId;
+
+ @Excel(name = "文件所属内容(内部备注: public 公开答复:internal)")
+ private String filePlace;
+
+ @Excel(name = "文件名")
+ private String fileName;
+
+ @Excel(name = "附件名(uuid随机生成)")
+ private String attachmentName;
+
+ @Excel(name = "文件大小")
+ private Integer attachmentSize;
+
+ @Excel(name = "文件格式(JPG、PNG、JPEG、BMP、GIF、PDF、PPT、PPTX、DOC、DOCX、XLS、XLSX、MP3、WMA、M4A、MP4、AVI、MOV、RMVB、RM、WMV)")
+ private String attachmentFormat;
+
+ @Excel(name = "文件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc))")
+ private String attachmentType;
+
+ @Excel(name = "url地址")
+ private String attachmentUrl;
+
+ @Excel(name = "排序(需求确定,按上传顺序排序)")
+ private Integer sort;
+
+ @Excel(name = "语音或视频时长,秒")
+ private Integer duration;
+
+ @Excel(name = "是否强制发布(0:否 1:是)")
+ private Integer isRelease;
+
+ @Excel(name = "附件审核状态")
+ private String status;
+
+ @Excel(name = "附件审核结果描述")
+ private String reason;
+
+ @Excel(name = "删除标识:0.未删除 1.已删除")
+ private String delFlag;
+
+ @Excel(name = "乐观锁")
+ private Integer revision;
+
+ @Excel(name = "创建人")
+ private String createdBy;
+
+ @Excel(name = "创建时间")
+ private Date createdTime;
+
+ @Excel(name = "更新人")
+ private String updatedBy;
+
+ @Excel(name = "更新时间")
+ private Date updatedTime;
+
+
+}
\ No newline at end of file
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/feign/GovOrgFeignClient.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/feign/GovOrgFeignClient.java
index a2e6405300..e0f881766e 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/feign/GovOrgFeignClient.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/feign/GovOrgFeignClient.java
@@ -5,8 +5,11 @@ import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.CustomerGridDTO;
import com.epmet.dto.form.CommonGridIdFormDTO;
import com.epmet.dto.form.CustomerGridFormDTO;
+import com.epmet.dto.result.GridInfoResultDTO;
import com.epmet.feign.fallback.GovOrgFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -29,6 +32,16 @@ public interface GovOrgFeignClient {
@PostMapping("/gov/org/customergrid/getcustomergridbygridid")
Result getCustomerGridByGridId(CustomerGridFormDTO formDTO);
+ /**
+ * @param gridId
+ * @return com.epmet.commons.tools.utils.Result
+ * @Author yinzuomei
+ * @Description 根据网格id查询所属组织信息
+ * @Date 2020/4/26 23:16
+ **/
+ @GetMapping("/gov/org/customergrid/getGridInfo/{gridId}")
+ Result queryGridInfo(@PathVariable("gridId") String gridId);
+
/**
* @Description 查询一个网格下的所有工作人员[copy wangc]
* @param gridIdFormDTO
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/feign/fallback/GovOrgFeignClientFallBack.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/feign/fallback/GovOrgFeignClientFallBack.java
index 2366577ef6..047208bdc4 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/feign/fallback/GovOrgFeignClientFallBack.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/feign/fallback/GovOrgFeignClientFallBack.java
@@ -6,6 +6,7 @@ import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.CustomerGridDTO;
import com.epmet.dto.form.CommonGridIdFormDTO;
import com.epmet.dto.form.CustomerGridFormDTO;
+import com.epmet.dto.result.GridInfoResultDTO;
import com.epmet.feign.GovOrgFeignClient;
import org.springframework.stereotype.Component;
@@ -24,6 +25,11 @@ public class GovOrgFeignClientFallBack implements GovOrgFeignClient {
return ModuleUtils.feignConError(ServiceConstant.GOV_ORG_SERVER, "getcustomergridbygridid", formDTO);
}
+ @Override
+ public Result queryGridInfo(String gridId) {
+ return ModuleUtils.feignConError(ServiceConstant.GOV_ORG_SERVER, "getGridInfo",gridId);
+ }
+
@Override
public Result> getGridStaffs(CommonGridIdFormDTO gridIdFormDTO) {
return ModuleUtils.feignConError(ServiceConstant.GOV_ORG_SERVER, "getGridStaffs", gridIdFormDTO);
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/IcResiUserAttachmentService.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/IcResiUserAttachmentService.java
new file mode 100644
index 0000000000..9c2b826adf
--- /dev/null
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/IcResiUserAttachmentService.java
@@ -0,0 +1,95 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.service;
+
+import com.epmet.commons.mybatis.service.BaseService;
+import com.epmet.commons.tools.page.PageData;
+import com.epmet.dto.IcResiUserAttachmentDTO;
+import com.epmet.entity.IcResiUserAttachmentEntity;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 项目节点附件表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2020-12-21
+ */
+public interface IcResiUserAttachmentService extends BaseService {
+
+ /**
+ * 默认分页
+ *
+ * @param params
+ * @return PageData
+ * @author generator
+ * @date 2020-12-21
+ */
+ PageData page(Map params);
+
+ /**
+ * 默认查询
+ *
+ * @param params
+ * @return java.util.List
+ * @author generator
+ * @date 2020-12-21
+ */
+ List list(Map params);
+
+ /**
+ * 单条查询
+ *
+ * @param id
+ * @return IcResiUserAttachmentDTO
+ * @author generator
+ * @date 2020-12-21
+ */
+ IcResiUserAttachmentDTO get(String id);
+
+ /**
+ * 默认保存
+ *
+ * @param dto
+ * @return void
+ * @author generator
+ * @date 2020-12-21
+ */
+ void save(IcResiUserAttachmentDTO dto);
+
+ /**
+ * 默认更新
+ *
+ * @param dto
+ * @return void
+ * @author generator
+ * @date 2020-12-21
+ */
+ void update(IcResiUserAttachmentDTO dto);
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return void
+ * @author generator
+ * @date 2020-12-21
+ */
+ void delete(String[] ids);
+}
\ No newline at end of file
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/IcResiUserService.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/IcResiUserService.java
index 19f3640d71..2b823fdc10 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/IcResiUserService.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/IcResiUserService.java
@@ -96,6 +96,7 @@ public interface IcResiUserService extends BaseService {
PersonDataResultDTO personData(PersonDataFormDTO formDTO);
/**
+ * @Description 根据名字搜索
* @param formDTO
* @Description 根据名字搜索
* @author zxc
@@ -278,4 +279,24 @@ public interface IcResiUserService extends BaseService {
List listHomeUserBrief(String houseId, String customerId);
List> dynamicQuery(String loginUserCustomerId, String formCode, String icResiUser, List showSqlColumns, List conditions, String agencyId, String finalStaffOrgPath);
+
+ /**
+ * 租客房东黑名单查询个人数据
+ *
+ * @param formDTO
+ * @return com.epmet.dto.result.RentTenantDataResultDTO
+ * @author zhy
+ * @date 2022/4/26 16:03
+ */
+ RentTenantDataResultDTO tenantData(RentTenantDataFormDTO formDTO);
+
+ /**
+ * 租客房东根据身份证更新头像
+ *
+ * @param formDTO
+ * @return com.epmet.commons.tools.utils.Result
+ * @author zhy
+ * @date 2022/4/26 10:48
+ */
+ String rentUpdate(RentTenantFormDTO formDTO);
}
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcNatServiceImpl.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcNatServiceImpl.java
index 5649e202fe..92712c498b 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcNatServiceImpl.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcNatServiceImpl.java
@@ -322,6 +322,8 @@ public class IcNatServiceImpl extends BaseServiceImpl imp
String app = EpmetRequestHolder.getHeader(AppClientConstant.APP);
String client = EpmetRequestHolder.getHeader(AppClientConstant.CLIENT);
+ log.info("【核酸检测导入】userId:{}, app:{}, client:{}", userId, app, client);
+
LoginUserDetailsResultDTO loginUserDetails = SpringContextUtils.getBean(UserService.class).getLoginUserDetails(app, client, userId);
String agencyId = loginUserDetails.getAgencyId();
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserAttachmentServiceImpl.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserAttachmentServiceImpl.java
new file mode 100644
index 0000000000..f2e191f1b1
--- /dev/null
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserAttachmentServiceImpl.java
@@ -0,0 +1,99 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.epmet.commons.mybatis.service.impl.BaseServiceImpl;
+import com.epmet.commons.tools.constant.FieldConstant;
+import com.epmet.commons.tools.page.PageData;
+import com.epmet.commons.tools.utils.ConvertUtils;
+import com.epmet.dao.IcResiUserAttachmentDao;
+import com.epmet.dto.IcResiUserAttachmentDTO;
+import com.epmet.entity.IcResiUserAttachmentEntity;
+import com.epmet.service.IcResiUserAttachmentService;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 项目节点附件表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2020-12-21
+ */
+@Service
+public class IcResiUserAttachmentServiceImpl extends BaseServiceImpl implements IcResiUserAttachmentService {
+
+ @Override
+ public PageData page(Map params) {
+ IPage page = baseDao.selectPage(
+ getPage(params, FieldConstant.CREATED_TIME, false),
+ getWrapper(params)
+ );
+ return getPageData(page, IcResiUserAttachmentDTO.class);
+ }
+
+ @Override
+ public List list(Map params) {
+ List entityList = baseDao.selectList(getWrapper(params));
+
+ return ConvertUtils.sourceToTarget(entityList, IcResiUserAttachmentDTO.class);
+ }
+
+ private QueryWrapper getWrapper(Map params){
+ String id = (String)params.get(FieldConstant.ID_HUMP);
+
+ QueryWrapper wrapper = new QueryWrapper<>();
+ wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
+
+ return wrapper;
+ }
+
+ @Override
+ public IcResiUserAttachmentDTO get(String id) {
+ IcResiUserAttachmentEntity entity = baseDao.selectById(id);
+ return ConvertUtils.sourceToTarget(entity, IcResiUserAttachmentDTO.class);
+ }
+
+ @Override
+ @Transactional(rollbackFor = Exception.class)
+ public void save(IcResiUserAttachmentDTO dto) {
+ IcResiUserAttachmentEntity entity = ConvertUtils.sourceToTarget(dto, IcResiUserAttachmentEntity.class);
+ insert(entity);
+ }
+
+ @Override
+ @Transactional(rollbackFor = Exception.class)
+ public void update(IcResiUserAttachmentDTO dto) {
+ IcResiUserAttachmentEntity entity = ConvertUtils.sourceToTarget(dto, IcResiUserAttachmentEntity.class);
+ updateById(entity);
+ }
+
+ @Override
+ @Transactional(rollbackFor = Exception.class)
+ public void delete(String[] ids) {
+ // 逻辑删除(@TableLogic 注解)
+ baseDao.deleteBatchIds(Arrays.asList(ids));
+ }
+
+}
\ No newline at end of file
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserServiceImpl.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserServiceImpl.java
index 0bcd38c55d..1cffa9c4a0 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserServiceImpl.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserServiceImpl.java
@@ -105,7 +105,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl
+
+
+
+
+
+
+ SELECT
+ ID AS attachmentId,
+ FILE_NAME AS name,
+ ATTACHMENT_URL AS url,
+ ATTACHMENT_TYPE AS type,
+ ATTACHMENT_FORMAT AS format,
+ IFNULL(ATTACHMENT_SIZE,0) AS size,
+ IFNULL(DURATION,0) AS duration,
+ PROCESS_ID,
+ FILE_PLACE
+ FROM project_process_attachment
+ WHERE DEL_FLAG = '0'
+ AND PROJECT_ID = #{projectId}
+ order by sort
+
+
\ No newline at end of file
diff --git a/epmet-user/epmet-user-server/src/main/resources/mapper/IcResiUserDao.xml b/epmet-user/epmet-user-server/src/main/resources/mapper/IcResiUserDao.xml
index 2f7b823bb5..bdbab0392f 100644
--- a/epmet-user/epmet-user-server/src/main/resources/mapper/IcResiUserDao.xml
+++ b/epmet-user/epmet-user-server/src/main/resources/mapper/IcResiUserDao.xml
@@ -365,7 +365,19 @@
AND customer_id = #{customerId}
AND id_card = #{idCard}
-
+
+ SELECT
+ id,
+ `name`,
+ id_card,
+ mobile
+ FROM
+ ic_resi_user
+ WHERE
+ del_flag = '0'
+ AND customer_id = #{customerId}
+ AND id_card = #{idCard}
+
SELECT