From 42a7bcbf8d9d3bd1844d4fc6ce4fd357b465bf2a Mon Sep 17 00:00:00 2001 From: luyan Date: Wed, 23 Aug 2023 14:00:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=A8=E8=81=8C=E5=85=9A?= =?UTF-8?q?=E5=91=98=E6=8A=A5=E9=81=93=E5=92=8C=E6=B5=81=E5=8A=A8=E5=85=9A?= =?UTF-8?q?=E5=91=98=E6=8A=A5=E9=81=93=EF=BC=9A=E7=A7=BB=E9=99=A4=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=BF=A1=E6=81=AF=E4=B8=AD=E5=8C=85=E8=81=94=E7=A4=BE?= =?UTF-8?q?=E5=8C=BA=EF=BC=8C=E5=9C=A8=E5=85=9A=E5=91=98=E6=8A=A5=E9=81=93?= =?UTF-8?q?=E4=B8=AD=E5=BF=85=E5=A1=AB=EF=BC=9B=E6=B5=81=E5=8A=A8=E5=85=9A?= =?UTF-8?q?=E5=91=98=E5=A2=9E=E5=8A=A0=E6=98=AF=E5=90=A6=E6=98=AF=E5=85=9A?= =?UTF-8?q?=E5=91=98=EF=BC=8C=E4=BB=A5=E5=8F=8A=E5=85=A5=E5=85=9A=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=AD=97=E6=AE=B5=EF=BC=8C=E5=90=8E=E5=8F=B0=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=B5=81=E5=8A=A8=E5=85=9A=E5=91=98=E7=A4=BE=E5=8C=BA?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E5=92=8C=E6=98=AF=E5=90=A6=E5=85=9A=E5=91=98?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../esua/epdc/user/dto/PartyMembersDTO.java | 156 +++++++++--------- .../epdc/user/dto/party/FlowPartyDTO.java | 31 ++-- .../epdc/user/dto/party/ReportPartyDTO.java | 5 + .../controller/ReportPartyController.java | 4 +- .../epdc/party/entity/FlowPartyEntity.java | 58 ++++--- .../epdc/party/entity/ReportPartyEntity.java | 6 - .../service/impl/FlowPartyServiceImpl.java | 12 +- .../service/impl/ReportPartyServiceImpl.java | 16 +- 8 files changed, 165 insertions(+), 123 deletions(-) diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/PartyMembersDTO.java b/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/PartyMembersDTO.java index e2a672e05..3ca788b22 100644 --- a/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/PartyMembersDTO.java +++ b/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/PartyMembersDTO.java @@ -31,114 +31,120 @@ import java.util.Date; */ @Data public class PartyMembersDTO implements Serializable { - private static final long serialVersionUID = 1L; - private String tagIds; + private static final long serialVersionUID = 8381758784113388927L; - private String[] tagIdsNew; + private String tagIds; - private String tagName; + private String[] tagIdsNew; - private String id; + private String tagName; - private String realName; + private String id; - private String mobile; + private String realName; - private String identityNo; + private String mobile; - private String post; + private String identityNo; - private String postValue; + private String post; - private String cadreFlag; + private String postValue; - private String registFlag; + private String cadreFlag; - private String registName; + private String registFlag; - private Date registTime; + private String registName; - private String streetName; + private Date registTime; - private Long streetId; + private String streetName; - private String communityName; + private Long streetId; - private Long communityId; + private String communityName; - private String gridName; + private Long communityId; - private Long gridId; + private String gridName; - private long deptId; + private Long gridId; - private Integer revision; + private long deptId; - private String createdBy; + private Integer revision; - private Date createdTime; + private String createdBy; - private String updatedBy; + private Date createdTime; - private Date updatedTime; + private String updatedBy; - private String delFlag; + private Date updatedTime; - private String allDeptNames; + private String delFlag; - private String deptStrIds; + private String allDeptNames; - private String[] allDeptIds; + private String deptStrIds; - private String partyOrganization; + private String[] allDeptIds; - /** - * 父所有部门ID - */ - private String parentDeptIds; - /** - * 父所有部门名称 - */ - private String parentDeptNames; - /** - * 所有部门ID - */ - private String allDeptIdsStr; + private String partyOrganization; - /** - * 入党时间 - */ - private Date joinDate; - /** - * 职务(字典项) - */ - private String position; + /** + * 父所有部门ID + */ + private String parentDeptIds; + /** + * 父所有部门名称 + */ + private String parentDeptNames; + /** + * 所有部门ID + */ + private String allDeptIdsStr; - /** - * 职务名称 - */ - private String positionName; - /** - * 是否是流动性党员 0否1是 - */ - private String isMobility; - /** - * 流动党员证号 - */ - private String mobilityNum; - /** - * 文化程度(字典项) - */ - private String education; - /** - * 备注 - */ - private String note; + /** + * 入党时间 + */ + private Date joinDate; + /** + * 职务(字典项) + */ + private String position; - /** - * 地址 - */ - private String address; + /** + * 职务名称 + */ + private String positionName; + /** + * 是否是流动性党员 0否1是 + */ + private String isMobility; + /** + * 流动党员证号 + */ + private String mobilityNum; + /** + * 文化程度(字典项) + */ + private String education; + /** + * 备注 + */ + private String note; + + /** + * 地址 + */ + private String address; + + /** + * 党员类别:1、“商户党员”,2、“企业党员”,3、“机关党员”,4、“居民党员” + */ + private Integer partyType; } diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/party/FlowPartyDTO.java b/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/party/FlowPartyDTO.java index 092fcb12f..39c20059a 100755 --- a/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/party/FlowPartyDTO.java +++ b/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/party/FlowPartyDTO.java @@ -31,49 +31,60 @@ import java.io.Serializable; @Data public class FlowPartyDTO implements Serializable { - private static final long serialVersionUID = 1L; + + private static final long serialVersionUID = -6292115918565727132L; /** * 流动党员ID */ - private String id; + private String id; /** * 党员姓名 */ - private String name; + private String name; /** * 身份证号码 */ - private String idCard; + private String idCard; /** * 联系电话 */ - private String mobile; + private String mobile; /** * 是否自由职业 0、否 1、是 */ - private Integer freelance; + private Integer freelance; + + /** + * 是否党员 0、否 1、是 + */ + private Integer party; + + /** + * 入党时间 + */ + private String partyDate; /** * 现工作单位 */ - private String workUnit; + private String workUnit; /** * 工作单位地址 */ - private String workAddr; + private String workAddr; /** * 居住网格id */ - private Long deptId; + private Long deptId; - private String[] allDeptIds; + private String[] allDeptIds; /*** *父所有部门 diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/party/ReportPartyDTO.java b/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/party/ReportPartyDTO.java index a77943a56..5f34bdffc 100755 --- a/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/party/ReportPartyDTO.java +++ b/esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/user/dto/party/ReportPartyDTO.java @@ -161,6 +161,11 @@ public class ReportPartyDTO implements Serializable { @NotBlank(message = "包联单位不能为空") private String[] couplingCommunity; + /** + * 包联社区名称 + */ + private String couplingCommunityName; + /** * 报到时间 */ diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/controller/ReportPartyController.java b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/controller/ReportPartyController.java index ed7aadba4..50fa4cf76 100755 --- a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/controller/ReportPartyController.java +++ b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/controller/ReportPartyController.java @@ -72,7 +72,7 @@ public class ReportPartyController { if (StringUtils.isNotEmpty(dto.getIdCard()) && StringUtils.isNotEmpty(dto.getName())) { int sum = reportPartyService.findByIdCardAndName(dto.getIdCard(),dto.getName()); if(sum == 1){ - throw new RenException("您已经报到,请等待审核!"); + throw new RenException("您已经报到,无需再次报道!"); } } reportPartyService.save(dto); @@ -86,7 +86,7 @@ public class ReportPartyController { if (StringUtils.isNotEmpty(dto.getIdCard()) && StringUtils.isNotEmpty(dto.getName())) { int sum = reportPartyService.findByIdCardAndName(dto.getIdCard(),dto.getName()); if(sum == 1){ - throw new RenException("您已经报到,请等待审核!"); + throw new RenException("您已经报到,无需再次报道!"); } } reportPartyService.update(dto); diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/entity/FlowPartyEntity.java b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/entity/FlowPartyEntity.java index 1001f1847..1a7079ed2 100755 --- a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/entity/FlowPartyEntity.java +++ b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/entity/FlowPartyEntity.java @@ -22,6 +22,8 @@ import com.elink.esua.epdc.commons.mybatis.entity.DeptScope; import lombok.Data; import lombok.EqualsAndHashCode; +import java.util.Date; + /** * 流动党员报道表 * @@ -29,62 +31,72 @@ import lombok.EqualsAndHashCode; * @since v1.0.0 2023-06-30 */ @Data -@EqualsAndHashCode(callSuper=false) +@EqualsAndHashCode(callSuper = false) @TableName("flow_party") public class FlowPartyEntity extends DeptScope { - private static final long serialVersionUID = 6728231988052417884L; + private static final long serialVersionUID = 6728231988052417884L; - /** + /** * 党员姓名 */ - private String name; + private String name; /** * 身份证号码 */ - private String idCard; + private String idCard; /** * 联系电话 */ - private String mobile; + private String mobile; /** * 是否自由职业 0、否 1、是 */ - private Integer freelance; + private Integer freelance; + + /** + * 是否党员 0、否 1、是 + */ + private Integer party; + + /** + * 入党时间 + */ + private Date partyDate; /** * 现工作单位 */ - private String workUnit; + private String workUnit; /** * 工作单位地址 */ - private String workAddr; + private String workAddr; /** * 居住网格id */ - private String deptId; + private String deptId; - private String allDeptIds; + private String allDeptIds; - /** - * 审核状态 0、待审核 1、审核通过 - */ - private Integer status; + /** + * 审核状态 0、待审核 1、审核通过 + */ + private Integer status; - /** - * 现属党支部 - */ - private String partyName; + /** + * 现属党支部 + */ + private String partyName; - /** - * 审核意见 - */ - private String examineMsg; + /** + * 审核意见 + */ + private String examineMsg; } diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/entity/ReportPartyEntity.java b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/entity/ReportPartyEntity.java index ba26e03b6..6d8aafd50 100755 --- a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/entity/ReportPartyEntity.java +++ b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/entity/ReportPartyEntity.java @@ -22,8 +22,6 @@ import com.elink.esua.epdc.commons.mybatis.entity.DeptScope; import lombok.Data; import lombok.EqualsAndHashCode; -import java.util.Date; - /** * 党员报道 * @@ -127,8 +125,4 @@ public class ReportPartyEntity extends DeptScope { */ private String couplingCommunity; - /** - * 报到时间 - */ - private Date createdTime; } diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/service/impl/FlowPartyServiceImpl.java b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/service/impl/FlowPartyServiceImpl.java index c91a79715..41873e438 100755 --- a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/service/impl/FlowPartyServiceImpl.java +++ b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/party/service/impl/FlowPartyServiceImpl.java @@ -17,6 +17,7 @@ package com.elink.esua.epdc.party.service.impl; +import cn.hutool.core.date.DateUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; @@ -85,12 +86,16 @@ public class FlowPartyServiceImpl extends BaseServiceImpl wrapper = new QueryWrapper<>(); wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); wrapper.like(StringUtils.isNotBlank(name), FieldConstant.NAME_HUMP, name); wrapper.like(StringUtils.isNotBlank(idCard), FieldConstant.ID_CARD, idCard); wrapper.like(StringUtils.isNotBlank(mobile), FieldConstant.MOBILE_HUMP, mobile); + wrapper.likeLeft(StringUtils.isNotBlank(deptId), "PARENT_DEPT_IDS", deptId); wrapper.eq(StringUtils.isNotBlank(status), "STATUS", status); + wrapper.eq(StringUtils.isNotBlank(party), "PARTY", party); return wrapper; } @@ -112,7 +117,7 @@ public class FlowPartyServiceImpl extends BaseServiceImpl parentResult = null; + Result parentResult; if (dto.getAllDeptIds() != null && dto.getAllDeptIds().length > 1) { entity.setDeptId(dto.getAllDeptIds()[dto.getAllDeptIds().length - 1]); parentResult = adminFeignClient.getParentAndAllDept(dto.getAllDeptIds()[dto.getAllDeptIds().length - 1]); @@ -128,6 +133,9 @@ public class FlowPartyServiceImpl extends BaseServiceImpl { result.getList().forEach(dto -> { if (entity.getId().equals(dto.getId())) { - dto.setAllDeptIds(entity.getAllDeptIds().split(",")); + String[] ids; + if (StringUtils.isNotEmpty(entity.getAllDeptIds())) { + dto.setAllDeptIds(entity.getAllDeptIds().split(",")); + } + if (StringUtils.isNotEmpty(entity.getCouplingCommunity())) { + ids = entity.getCouplingCommunity().split(","); + String deptId = ids[ids.length - 1]; + ParentAndAllDeptDTO deptDTO = adminFeignClient.getParentAndAllDept(deptId).getData(); + dto.setCouplingCommunityName(deptDTO.getAllDeptNames()); + } } }); });