Merge branch 'test' into 'test_bak'
Test
See merge request root/zhihuishequ!220
| | |
| | | |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.*; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActFourMemberVO; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * (ComActFourMember)表控制层 |
| | |
| | | commonPage.setStatus(1); |
| | | return this.communityService.comActFourMemberSelectAll(commonPage); |
| | | } |
| | | /** |
| | | * 分页查询所有数据 |
| | | * |
| | | * @param commonPage 查询实体 |
| | | * @return 所有数据 |
| | | */ |
| | | @ApiOperation(value = "分页查询",response = ComMngPopulationVO.class) |
| | | @PostMapping("queryMember") |
| | | public R selectMember(@RequestBody CommonPage commonPage) { |
| | | commonPage.setParamId(this.getCommunityId()); |
| | | return this.communityService.comActFourMemberQueryMember(commonPage); |
| | | } |
| | | |
| | | /** |
| | | *居民数据详情 |
| | | */ |
| | | @ApiOperation(value = "居民数据详情",response = FourMemberDetailVO.class) |
| | | @GetMapping("/memberDetail") |
| | | public R memberDetail(@RequestParam("id")Long id){ |
| | | return this.communityService.comActFourMemberMemberDetail(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "房屋级联菜单查询") |
| | | @PostMapping("/cascade/list") |
| | | public R getCascadeHouseAddress(@RequestBody CascadeHouseDTO cascadeHouseDTO) { |
| | | // 获取登陆用户绑定社区id |
| | | LoginUserInfoVO loginUser = this.getLoginUserInfo(); |
| | | if (loginUser != null) { |
| | | cascadeHouseDTO.setCommunityId(loginUser.getCommunityId()); |
| | | } |
| | | return communityService.getCascadeHouseAddress(cascadeHouseDTO); |
| | | } |
| | | |
| | | /** |
| | | * 查询房屋二级级联菜单 |
| | | * |
| | | * @param cascadeHouseDTO |
| | | * 请求参数 |
| | | * @return 菜单列表 |
| | | */ |
| | | @ApiOperation(value = "房屋级联菜单查询") |
| | | @PostMapping("/second/list") |
| | | public R getSecondHouseAddress(@RequestBody CascadeHouseDTO cascadeHouseDTO) { |
| | | cascadeHouseDTO.setCommunityId(this.getCommunityId()); |
| | | return communityService.getSecondHouseAddress(cascadeHouseDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询实有房屋列表", response = ComMngPopulationHouseAdminVO.class) |
| | | @PostMapping("/pageHouse") |
| | | public R pageHouse(@RequestBody ComMngPopulationHouseAdminDTO populationHouseAdminDTO) { |
| | | // 获取登陆用户绑定社区id |
| | | LoginUserInfoVO loginUser = this.getLoginUserInfo(); |
| | | if (loginUser != null) { |
| | | populationHouseAdminDTO.setCommunityId(loginUser.getCommunityId()); |
| | | } |
| | | return communityService.pageHouse(populationHouseAdminDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询实有房屋详情", response = ComMngPopulationHouseDetailAdminVO.class) |
| | | @PostMapping("/house/detail") |
| | | public R getHouseDetail(@RequestParam(value = "houseId") Long houseId) { |
| | | return communityService.getHouseDetail(houseId); |
| | | } |
| | | |
| | | /** |
| | | * 编辑实有房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @ApiOperation(value = "编辑实有房屋信息") |
| | | @PostMapping("/population/house/user/edit") |
| | | public R editHouseUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | return communityService.editHouseUser(comMngPopulationHouseUserVO); |
| | | } |
| | | |
| | | /** |
| | | * 新增实有房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @ApiOperation(value = "新增实有房屋信息") |
| | | @PostMapping("/population/house/user/insert") |
| | | public R insertHouseUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | return communityService.insertHouseUser(comMngPopulationHouseUserVO); |
| | | } |
| | | |
| | | /** |
| | | * 根据房屋id列表删除房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 删除结果 |
| | | */ |
| | | @ApiOperation(value = "删除实有房屋信息") |
| | | @PostMapping("/population/house/user/delete") |
| | | public R deleteHousesUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | return communityService.deleteHousesUser(comMngPopulationHouseUserVO); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查询 |
| | | * |
| | | * @param id |
| | | * 请求参数 |
| | | * @return 删除结果 |
| | | */ |
| | | @ApiOperation(value = "id查询信息") |
| | | @GetMapping("/population/house/user/detail") |
| | | public R detailHousesUser(@RequestParam("id") Long id) { |
| | | return communityService.detailHousesUser(id); |
| | | } |
| | | } |
| | |
| | | @ApiOperation(value = "分页查询所有数据",response = ComPropertyVO.class) |
| | | @PostMapping("queryAll") |
| | | public R selectAll(@RequestBody CommonPage commonPage) { |
| | | commonPage.setStatus(1); |
| | | return this.propertyService.comPropertyHelpSelectAll(commonPage); |
| | | } |
| | | |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.interfaces.OperLog; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | // } |
| | | return partyBuildingService.listPartyOrganizationByApp(comListPartyDTO); |
| | | } |
| | | |
| | | @OperLog(operModul = "党员管理", operType = 2) |
| | | @ApiOperation(value = "编辑党员") |
| | | @PutMapping("updatepartybuildingmember") |
| | | public R updatePartyBuildingMember(@RequestBody PartyBuildingMemberVO partyBuildingMemberVO) { |
| | | if(partyBuildingMemberVO.getIsPb()!=null){ |
| | | Long id = partyBuildingMemberVO.getId(); |
| | | if(partyBuildingMemberVO.getIsPb()==1){ |
| | | if (null == id || 0 == id) { |
| | | return partyBuildingService.addPartyBuildingMember(partyBuildingMemberVO); |
| | | } |
| | | return partyBuildingService.updatePartyBuildingMember(partyBuildingMemberVO); |
| | | } |
| | | return partyBuildingService.deleteprepartybuildingmember(id); |
| | | } |
| | | return R.fail(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 实有房屋新增请求参数 |
| | | * @author zzj |
| | | */ |
| | | @Data |
| | | @ApiModel("实有房屋新增请求参数") |
| | | public class ComMngPopulationHouseInsertAdminDTO implements Serializable { |
| | | |
| | | /** |
| | | * 房屋地址 |
| | | */ |
| | | @ApiModelProperty("房屋地址") |
| | | private String address; |
| | | |
| | | /** |
| | | * 房屋编号 |
| | | */ |
| | | @ApiModelProperty("房屋编号") |
| | | private String code; |
| | | |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty("社区id") |
| | | private Long communityId; |
| | | |
| | | /** |
| | | * 街路巷id |
| | | */ |
| | | @ApiModelProperty("街路巷id") |
| | | private String alley; |
| | | |
| | | /** |
| | | * 门牌号 |
| | | */ |
| | | @ApiModelProperty("门牌号") |
| | | private String houseNum; |
| | | |
| | | /** |
| | | * 楼排号 |
| | | */ |
| | | @ApiModelProperty("楼排号") |
| | | private String floor; |
| | | /** |
| | | * 单元号 |
| | | */ |
| | | @ApiModelProperty("单元号") |
| | | private String unitNo; |
| | | /** |
| | | * 户室(房间号) |
| | | */ |
| | | @ApiModelProperty("户室(房间号)") |
| | | private String houseNo; |
| | | |
| | | /** |
| | | * 房屋状态(1.自住 2.租住 3.其他) |
| | | */ |
| | | @ApiModelProperty("房屋状态(1.自住 2.租住 3.其他)") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 房屋用途(1.住宅 2.公寓 3.宿舍 4.仓库 5.其他) |
| | | */ |
| | | @ApiModelProperty("房屋用途(1.住宅 2.公寓 3.宿舍 4.仓库 5.其他)") |
| | | private Integer purpose; |
| | | |
| | | /** |
| | | * 管控状态(1.常规 2.关注 3.管控) |
| | | */ |
| | | @ApiModelProperty("管控状态(1.常规 2.关注 3.管控)") |
| | | private Integer controlStatus; |
| | | |
| | | /** |
| | | * 空户(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty("空户(1.是 2.否)") |
| | | private Integer isEmpty; |
| | | |
| | | /** |
| | | * 建筑用途 |
| | | */ |
| | | @ApiModelProperty("建筑用途") |
| | | private String constructPurpose; |
| | | |
| | | /** |
| | | * 建筑面积 |
| | | */ |
| | | @ApiModelProperty("建筑面积") |
| | | private BigDecimal constructArea; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 小区id |
| | | */ |
| | | @ApiModelProperty("小区id") |
| | | private Long villageId; |
| | | |
| | | /** |
| | | * 街道id |
| | | * |
| | | * @return |
| | | */ |
| | | @ApiModelProperty("街道id") |
| | | private Long streetId; |
| | | |
| | | /** |
| | | * 层次递归字段(省>市>区县>街道>社区>小区>详细地址) |
| | | */ |
| | | private String path; |
| | | @ApiModelProperty("人员id") |
| | | private Long populationId; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel |
| | | public class ComMngPopulationHouseUserVO { |
| | | private Long id; |
| | | |
| | | /** |
| | | * 实有人口id |
| | | */ |
| | | @ApiModelProperty("实有人口id") |
| | | private Long populId; |
| | | |
| | | /** |
| | | * 实有房屋id |
| | | */ |
| | | @ApiModelProperty("实有房屋id") |
| | | private Long houseId; |
| | | |
| | | /** |
| | | * 与户主关系(1.户主 2.配偶 3.子女 4.孙女 5.父母 6.其他) |
| | | */ |
| | | @ApiModelProperty("与户主关系(1.户主 2.配偶 3.子女 4.孙女 5.父母 6.其他)") |
| | | private Integer relation; |
| | | |
| | | /** |
| | | * 人和房屋关系’ (1.自住2、租住) |
| | | */ |
| | | @ApiModelProperty("人和房屋关系’ (1.自住2、租住)") |
| | | private Integer relationId; |
| | | |
| | | /** |
| | | * 人和房屋关系’ (1.是、0.否) |
| | | */ |
| | | @ApiModelProperty("人和房屋关系’ (1.是、0.否)") |
| | | private Integer residence; |
| | | } |
| | |
| | | @ApiModelProperty("高龄认证显示提示(1.是 2.否)") |
| | | private Integer bigAgeTips; |
| | | |
| | | @ApiModelProperty("是否四长四员 1.是 2.否") |
| | | private Integer isFourMember; |
| | | |
| | | } |
| | |
| | | private Date createAt; |
| | | |
| | | @ExcelProperty(value = "评价星级", index = 4) |
| | | private Integer starLevel; |
| | | private String starLevel; |
| | | |
| | | @ExcelProperty(value = "评价详情", index = 5) |
| | | private String evaluateContent; |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import com.panzhihua.common.model.helper.encrypt.EncryptDecryptField; |
| | | import com.panzhihua.common.model.helper.sensitive.Sensitive; |
| | | import com.panzhihua.common.model.helper.sensitive.SensitiveStrategy; |
| | | import com.panzhihua.common.model.vos.user.ComHouseMemberVo; |
| | | import com.panzhihua.common.model.vos.user.ComMngFamilyInfoVO; |
| | | import com.panzhihua.common.model.vos.user.ComMngHouseVo; |
| | | import com.panzhihua.common.model.vos.user.UserElectronicFileVO; |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zzj |
| | | */ |
| | | @Data |
| | | @ApiModel |
| | | public class ComMngPopulationDetailVO { |
| | | /** |
| | | * 自增 id |
| | | */ |
| | | @ApiModelProperty("实有人口id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | /** |
| | | * 街道id |
| | | */ |
| | | @ApiModelProperty("街道id") |
| | | private Integer streetId; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty("社区id") |
| | | private Integer actId; |
| | | /** |
| | | * 小区id(实有房屋id) |
| | | */ |
| | | @ApiModelProperty("小区id(实有房屋id)") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private long villageId; |
| | | /** |
| | | * 家庭成员(姓名) |
| | | */ |
| | | @ApiModelProperty("家庭成员(姓名)") |
| | | @NotBlank(groups = {AddGroup.class}, message = "家庭成员(姓名)不可为空") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("性别(1.男 2.女 3.未知)") |
| | | @NotBlank(groups = {AddGroup.class}, message = "性别不可为空") |
| | | private Integer sex; |
| | | |
| | | @ApiModelProperty("年龄") |
| | | @NotBlank(groups = {AddGroup.class}, message = "年龄不可为空") |
| | | private Integer age; |
| | | |
| | | @ApiModelProperty("身份证号码") |
| | | @NotBlank(groups = {AddGroup.class}, message = "身份证号码不可为空") |
| | | private String cardNo; |
| | | |
| | | @ApiModelProperty("出生年月") |
| | | private String birthday; |
| | | |
| | | @ApiModelProperty("街路巷") |
| | | @NotBlank(groups = {AddGroup.class}, message = "街路巷不可为空") |
| | | private String road; |
| | | |
| | | @ApiModelProperty("门牌号") |
| | | @NotBlank(groups = {AddGroup.class}, message = "门牌号不可为空") |
| | | private String doorNo; |
| | | |
| | | @ApiModelProperty("楼排号") |
| | | @NotBlank(groups = {AddGroup.class}, message = "楼排号不可为空") |
| | | private String floor; |
| | | |
| | | @ApiModelProperty("单元号") |
| | | @NotBlank(groups = {AddGroup.class}, message = "单元号不可为空") |
| | | private String unitNo; |
| | | |
| | | @ApiModelProperty("户室(房间号)") |
| | | private String houseNo; |
| | | |
| | | @ApiModelProperty("政治面貌(1.中共党员2.中共预备党员3.共青团员4.民革党员5.民盟盟员6.民建会员7.8.农工党党员9.致公党党员10.九三学社社员11.台盟盟员12.无党派人士13.群众)") |
| | | private Integer politicalOutlook; |
| | | |
| | | @ApiModelProperty("政治面貌名称") |
| | | private String politicalOutlookName; |
| | | |
| | | @ApiModelProperty("工作单位") |
| | | private String workCompany; |
| | | |
| | | @ApiModelProperty("特殊情况") |
| | | private String specialSituation; |
| | | |
| | | @ApiModelProperty("联系方式") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("备注") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("标签集合(多个标签以,隔开,如物业工作人员,物业") |
| | | private String label; |
| | | |
| | | @ApiModelProperty("创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createAt; |
| | | |
| | | @ApiModelProperty("修改时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date updateAt; |
| | | |
| | | @ApiModelProperty("籍贯") |
| | | private String nativePlace; |
| | | |
| | | @ApiModelProperty("民族") |
| | | private String nationCode; |
| | | |
| | | @ApiModelProperty("民族") |
| | | private String nation; |
| | | |
| | | @ApiModelProperty("小区名字") |
| | | private String alley; |
| | | |
| | | @ApiModelProperty("户主关系列表") |
| | | private List<ComHouseMemberVo> comMngFamilyInfoVOS; |
| | | |
| | | @ApiModelProperty("家庭成员信息") |
| | | private List<ComMngFamilyInfoVO> familyInfoVOList; |
| | | |
| | | @ApiModelProperty("用户电子档信息") |
| | | private UserElectronicFileVO userElectronicFileVO; |
| | | |
| | | @ApiModelProperty("是否租住 是否租住(0.否 1.是)") |
| | | @NotBlank(groups = {AddGroup.class}, message = "是否租住不可为空") |
| | | private Integer isRent; |
| | | |
| | | @ApiModelProperty("文化程度(1.小学 2.初中 3.高中 4.中专 5.大专 6.本科 7.硕士 8.博士 9.其他)") |
| | | private Integer cultureLevel; |
| | | |
| | | @ApiModelProperty("文化程度名称") |
| | | private String cultureLevelName; |
| | | |
| | | @ApiModelProperty("职业") |
| | | private String profession; |
| | | |
| | | @ApiModelProperty("婚姻状况(10.未婚 20.已婚 21.初婚 22.再婚 23.复婚 30.丧偶 40.离婚 90.未说明的婚姻状况 60.其他)") |
| | | private Integer marriage; |
| | | |
| | | @ApiModelProperty("婚姻状况名称") |
| | | private String marriageName; |
| | | |
| | | @ApiModelProperty("健康状况") |
| | | private String healthy; |
| | | |
| | | @ApiModelProperty("外地or本地(1.本地 2.外地)") |
| | | private Integer outOrLocal; |
| | | |
| | | @ApiModelProperty("户口所在地") |
| | | private String censusRegister; |
| | | |
| | | /** |
| | | * 居住地址 |
| | | */ |
| | | @ApiModelProperty("居住地址") |
| | | private String address; |
| | | |
| | | @ApiModelProperty("与户主关系(1.户主 2.配偶 3.子女 4.孙女 5.父母 6.其他)") |
| | | private Integer relation; |
| | | |
| | | @ApiModelProperty("与户主关系名称") |
| | | private String relationName; |
| | | |
| | | @ApiModelProperty("身份证无加密字段") |
| | | private String cardNoStr; |
| | | |
| | | @ApiModelProperty("房屋列表") |
| | | private List<ComMngHouseVo> houseList; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty("与户主关系名称") |
| | | private String relationName; |
| | | |
| | | @ApiModelProperty("身份证无加密字段") |
| | | private String cardNoStr; |
| | | |
| | | @ApiModelProperty("房屋列表") |
| | | private List<ComMngHouseVo> houseList; |
| | | |
| | |
| | | private String authVideo; |
| | | |
| | | @ApiModelProperty(value = "审核人员id") |
| | | private String approverId; |
| | | private Long approverId; |
| | | |
| | | @ApiModelProperty(value = "审核人员名称") |
| | | private String approverName; |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community; |
| | | |
| | | import com.panzhihua.common.model.vos.partybuilding.ComPbMemberVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.PartyBuildingMemberVO; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author zzj |
| | | */ |
| | | @Data |
| | | @ApiModel |
| | | public class FourMemberDetailVO { |
| | | @ApiModelProperty("基础数据及房屋数据") |
| | | private ComMngPopulationVO comMngPopulationVO; |
| | | @ApiModelProperty("党员数据") |
| | | private ComPbMemberVO partyBuildingMemberVO; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.partybuilding; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author zzj |
| | | */ |
| | | @Data |
| | | @ApiModel |
| | | public class ComPbMemberVO { |
| | | private Long id; |
| | | |
| | | /** |
| | | * 所属党组织id |
| | | */ |
| | | @ApiModelProperty("所属党组织id") |
| | | private Long orgId; |
| | | |
| | | /** |
| | | * 身份证号 |
| | | */ |
| | | @ApiModelProperty("身份证号") |
| | | private String idCard; |
| | | |
| | | /** |
| | | * 姓名 |
| | | */ |
| | | @ApiModelProperty("姓名") |
| | | private String name; |
| | | |
| | | /** |
| | | * 头像图片路径 |
| | | */ |
| | | @ApiModelProperty("头像图片路径") |
| | | private String photoPath; |
| | | |
| | | /** |
| | | * 入党时间 |
| | | */ |
| | | @ApiModelProperty("入党时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date joinTime; |
| | | |
| | | /** |
| | | * 转正时间 |
| | | */ |
| | | @ApiModelProperty("转正时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date employmentTime; |
| | | |
| | | /** |
| | | * 党员审查结果 |
| | | */ |
| | | private Integer auditResult; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty("创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty("修改时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
| | | private Date updateAt; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | private Long communityId; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 驳回原因 |
| | | */ |
| | | private String refuseReason; |
| | | @ApiModelProperty("手机号") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("党组织") |
| | | private String orgName; |
| | | |
| | | } |
| | |
| | | private Integer auditResult; |
| | | @ApiModelProperty(value = "驳回原因") |
| | | private String refuseReason; |
| | | @ApiModelProperty(value = "是否党员 1是 2否") |
| | | private Integer isPb; |
| | | } |
| | |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long populId; |
| | | |
| | | @ApiModelProperty("人和房屋关系") |
| | | @ApiModelProperty("人和房屋关系’ (1.自住2、租住)(取字典表国家标准编码)") |
| | | private Integer relationId; |
| | | |
| | | @ApiModelProperty("与户主关系") |
| | | @ApiModelProperty("与户主关系(1.户主 2.配偶 3.子女 4.孙女 5.父母 6.其他)(取字典表国家标准编码)") |
| | | private Integer relation; |
| | | |
| | | @ApiModelProperty("房屋地址") |
| | | private String address; |
| | | |
| | | @ApiModelProperty("房屋状态") |
| | | @ApiModelProperty("房屋状态(1.自住 2.租住 3.其他)(取字典表国家标准编码)") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("是否居住地 1.是 0.否") |
| | | private Integer residence; |
| | | |
| | | @ApiModelProperty("房屋用途(1.住宅 2.公寓 3.宿舍 4.仓库 5.其他)(取字典表国家标准编码)") |
| | | private Integer purpose; |
| | | |
| | | @ApiModelProperty("管控状态(1.常规 2.关注 3.管控)(取字典表国家标准编码)") |
| | | private Integer controlStatus; |
| | | |
| | | @ApiModelProperty("关系主键id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | } |
| | |
| | | @ApiModelProperty("房屋信息") |
| | | private List<ComMngStructHouseVO> comMngStructHouseVOS; |
| | | |
| | | @ApiModelProperty("街路巷") |
| | | private String alley; |
| | | |
| | | @ApiModelProperty("地区号") |
| | | private String houseNum; |
| | | } |
| | |
| | | R deleteHouses(@RequestBody List<Long> Ids); |
| | | |
| | | /** |
| | | * 新增实有房屋信息 |
| | | * |
| | | * @param houseEditAdminDTO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("/common/data/population/house/insert") |
| | | R insertHouse(@RequestBody ComMngPopulationHouseInsertAdminDTO houseEditAdminDTO); |
| | | |
| | | /** |
| | | * 实有房屋统计 |
| | | * |
| | | * @param communityId |
| | |
| | | */ |
| | | @PostMapping("pagemicrowishAdmin") |
| | | R pageMicroWishAdmin(@RequestBody ComActMicroWishVO comActMicroWishVO); |
| | | |
| | | /** |
| | | * 小程序四长四员查询居民列表 |
| | | */ |
| | | @PostMapping("/comActFourMember/member") |
| | | R comActFourMemberQueryMember(@RequestBody CommonPage commonPage); |
| | | |
| | | /** |
| | | *居民数据详情 |
| | | */ |
| | | @GetMapping("/comActFourMember/memberDetail") |
| | | R comActFourMemberMemberDetail(@RequestParam("id")Long id); |
| | | |
| | | /** |
| | | * 根据房屋id列表删除房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("/common/data/population/house/user/delete") |
| | | R deleteHousesUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO); |
| | | |
| | | /** |
| | | * 新增实有房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("/common/data/population/house/user/insert") |
| | | public R insertHouseUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO); |
| | | |
| | | /** |
| | | * 编辑实有房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("/common/data/population/house/user/edit") |
| | | public R editHouseUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO); |
| | | |
| | | /** |
| | | * 根据id查询 |
| | | * |
| | | * @param id |
| | | * 请求参数 |
| | | * @return 删除结果 |
| | | */ |
| | | @GetMapping("/common/data/population/house/user/detail") |
| | | public R detailHousesUser(@RequestParam("id") Long id); |
| | | } |
| | |
| | | sb.append(userAnswers.getAnswerContent()==null?"无":userAnswers.getAnswerContent() + ","); |
| | | continue; |
| | | }else{ |
| | | if(isOldDuo){ |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | } |
| | | isOldDuo = false; |
| | | } |
| | | sb.append(userAnswers.getAnswerContent()==null?"无":userAnswers.getAnswerContent() + ","); |
| | |
| | | sb.append(userAnswers.getAnswerContent()==null?"无":userAnswers.getAnswerContent() + ","); |
| | | continue; |
| | | }else{ |
| | | if(isOldDuo){ |
| | | String answer = sb.toString(); |
| | | userData.add(answer.substring(0, answer.length() - 1)); |
| | | sb = new StringBuffer(); |
| | | } |
| | | isOldDuo = false; |
| | | } |
| | | sb.append(userAnswers.getAnswerContent()==null?"无":userAnswers.getAnswerContent() + ","); |
| | |
| | | @ApiOperation(value = "养老认证-养老认证审核---") |
| | | @PostMapping("/pensionAuthRecords/examine") |
| | | public R examinePensionAuthRecords(@RequestBody ComPensionAuthRecordVO comPensionAuthRecordVO) { |
| | | comPensionAuthRecordVO.setApproverId(this.getUserId()); |
| | | return communityService.examinePensionAuthRecords(comPensionAuthRecordVO); |
| | | } |
| | | |
| | |
| | | try { |
| | | inputStream = file.getInputStream(); |
| | | ComPensionAuthRecordImportExcelListen comPensionAuthRecordImportExcelListen = new ComPensionAuthRecordImportExcelListen( |
| | | communityService, this.getCommunityId(), this.getLoginUserInfo().getUserId(), stringRedisTemplate); |
| | | communityService, this.getCommunityId(), this.getUserId(), stringRedisTemplate); |
| | | EasyExcel.read(inputStream, null, comPensionAuthRecordImportExcelListen).sheet().doRead(); |
| | | } catch (IOException e) { |
| | | log.error("导入模板失败【{}】", e.getMessage()); |
| | |
| | | public R delete(@RequestBody ComActFourMemberVO comActFourMember) { |
| | | return this.comActFourMemberService.delete(comActFourMember); |
| | | } |
| | | |
| | | /** |
| | | * 小程序四长四员查询居民列表 |
| | | */ |
| | | @PostMapping("/member") |
| | | public R query(@RequestBody CommonPage commonPage){ |
| | | return this.comActFourMemberService.selectByMember(commonPage); |
| | | } |
| | | |
| | | /** |
| | | *居民数据详情 |
| | | */ |
| | | @GetMapping("/memberDetail") |
| | | public R memberDetail(@RequestParam("id")Long id){ |
| | | return this.comActFourMemberService.selectById(id); |
| | | } |
| | | } |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.grid.AddComMngHousePopulationDTO; |
| | | import com.panzhihua.common.model.dtos.grid.DelComMngHousePopulationDTO; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | private ComMngPopulationHouseService comMngPopulationHouseService; |
| | | @Resource |
| | | private ComMngVillageService comMngVillageService; |
| | | @Resource |
| | | private ComMngPopulationHouseUserService comMngPopulationHouseUserService; |
| | | |
| | | /** |
| | | * 小程序用户车辆登记 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 新增实有房屋信息 |
| | | * |
| | | * @param houseEditAdminDTO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("/population/house/insert") |
| | | public R insertHouse(@RequestBody ComMngPopulationHouseInsertAdminDTO houseEditAdminDTO) { |
| | | return comMngPopulationHouseService.insertHouse(houseEditAdminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 根据房屋id列表删除房屋信息 |
| | | * |
| | | * @param Ids |
| | |
| | | public R villageStatistics(@RequestParam("communityId") Long communityId) { |
| | | return comMngVillageService.villageStatistics(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 编辑实有房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("/population/house/user/edit") |
| | | public R editHouseUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | return comMngPopulationHouseUserService.updateAll(comMngPopulationHouseUserVO); |
| | | } |
| | | |
| | | /** |
| | | * 新增实有房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("/population/house/user/insert") |
| | | public R insertHouseUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | return comMngPopulationHouseUserService.insert(comMngPopulationHouseUserVO); |
| | | } |
| | | |
| | | /** |
| | | * 根据房屋id列表删除房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("/population/house/user/delete") |
| | | public R deleteHousesUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | return comMngPopulationHouseUserService.delete(comMngPopulationHouseUserVO); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查询 |
| | | * |
| | | * @param id |
| | | * 请求参数 |
| | | * @return 删除结果 |
| | | */ |
| | | @GetMapping("/population/house/user/detail") |
| | | public R detailHousesUser(@RequestParam("id") Long id) { |
| | | return comMngPopulationHouseUserService.detail(id); |
| | | } |
| | | } |
| | |
| | | public interface ComElderAuthElderliesDAO extends BaseMapper<ComElderAuthElderliesDO> { |
| | | |
| | | int haveElderAuthElderliesAmount(@Param("communityId") Long communityId, @Param("authPeriod") String authPeriod); |
| | | |
| | | /** |
| | | * 维护高龄老人健在状态 |
| | | * @param populationId 人口id |
| | | * @param isAlive 健在状态(1.健在 0.未健在) |
| | | */ |
| | | void editEditIsAlive(@Param("populationId") Long populationId,@Param("isAlive") Integer isAlive); |
| | | } |
| | |
| | | import java.util.Map; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.CascadeHouseDTO; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.community.ComMngPopulationDetailVO; |
| | | import com.panzhihua.common.model.vos.community.VillageVO; |
| | | import org.apache.ibatis.annotations.Insert; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | |
| | | IPage<ComMngPopulationVO> pagePopulation(Page page, |
| | | @Param("comMngPopulationVO") ComMngPopulationDTO comMngPopulationVO); |
| | | |
| | | @Select("<script> " |
| | | + "select cmp.id,cmv.`alley` as areaName,cmp.`name`,cmp.phone,cmp.label as tags,cmp.create_at from com_mng_population as cmp " |
| | | + "left join com_mng_village as cmv on cmv.village_id = cmp.village_id " |
| | | + "left join com_mng_population_community_tags as cmpct on cmp.id = cmpct.population_id " |
| | | + "where cmpct.community_id = #{pageInputUserDTO.communityId} and cmpct.label is not null " |
| | | + "<if test='pageInputUserDTO.name != null and pageInputUserDTO.name != ""'>" |
| | | + " AND cmp.`name` LIKE concat(#{pageInputUserDTO.name},'%') " + " </if> " |
| | | + "<if test='pageInputUserDTO.areaName != null and pageInputUserDTO.areaName != ""'>" |
| | | + " AND cmv.`alley` LIKE concat(#{pageInputUserDTO.areaName},'%') " + " </if> " |
| | | + "<if test='pageInputUserDTO.tags != null and pageInputUserDTO.tags != ""'>" |
| | | + " AND cmpct.label like concat('%',#{pageInputUserDTO.tags},'%') " + " </if> " |
| | | + " order by cmp.create_at desc " + "</script>") |
| | | /** |
| | | * 分页查询特殊群体列表 |
| | | * @param page 分页参数 |
| | | * @param pageInputUserDTO 请求参数 |
| | | * @return 特殊群体列表 |
| | | */ |
| | | IPage<InputUserInfoVO> specialInputUser(Page page, @Param("pageInputUserDTO") PageInputUserDTO pageInputUserDTO); |
| | | |
| | | @Select("<script> " |
| | |
| | | @Select("select count(cmpct.id) as populationTotal " |
| | | + ",(select count(cmpct.id) from com_mng_population_community_tags cmpct left join com_mng_population cmp on cmpct.population_id = cmp.id where cmpct.community_id = #{communityId} and cmp.out_or_local = 1) as localTotal " |
| | | + ",(select count(cmpct.id) from com_mng_population_community_tags cmpct left join com_mng_population cmp on cmpct.population_id = cmp.id where cmpct.community_id = #{communityId} and cmp.out_or_local = 2) as outTotal " |
| | | + ",(select count(cmpct.id) from com_mng_population_community_tags cmpct left join com_mng_population cmp on cmpct.population_id = cmp.id where cmpct.community_id = #{communityId} and IFNULL(cmpct.label,'') != '') as specialTotal " |
| | | + ",(select count(cmpct.id) from com_mng_population_community_tags cmpct left join com_mng_population cmp on cmpct.population_id = cmp.id where cmpct.community_id = #{communityId} and cmpct.label is not null) as specialTotal " |
| | | + ",(select count(village_id) from com_mng_village where community_id = #{communityId}) as villageTotal " |
| | | + ",(select count(id) from com_mng_population_community_tags where community_id = #{communityId} and label LIKE CONCAT('%','吸毒人员','%')) as drugTotal " |
| | | + ",(select count(id) from com_mng_population_community_tags where community_id = #{communityId} and label LIKE CONCAT('%','社区矫正','%')) as correctTotal " |
| | |
| | | * @return |
| | | */ |
| | | List<VillageVO> getSecondHouseAddress(Long communityId); |
| | | |
| | | /** |
| | | * 四长四员分页查询 |
| | | * @param page |
| | | * @param commonPage |
| | | * @return |
| | | */ |
| | | IPage<ComMngPopulationVO> query(Page page,@Param("commonPage") CommonPage commonPage); |
| | | |
| | | /** |
| | | * 居民详情 |
| | | */ |
| | | ComMngPopulationDetailVO getById(Long id); |
| | | } |
| | |
| | | @Mapper |
| | | public interface ComMngPopulationHouseDAO extends BaseMapper<ComMngPopulationHouseDO> { |
| | | |
| | | @Select("select cmphu.house_id,cmph.address,cmph.status,cmphu.popul_id,cmphu.residence,cmphu.relation_id,cmphu.relation from com_mng_population_house_user cmphu " |
| | | @Select("select cmphu.id, cmphu.house_id,cmph.address,cmph.status,cmph.purpose,cmph.control_status,cmphu.popul_id,cmphu.residence,cmphu.relation_id,cmphu.relation from com_mng_population_house_user cmphu " |
| | | + " left join com_mng_population_house as cmph on cmph.id = cmphu.house_id " |
| | | + " where cmphu.popul_id = #{populId}") |
| | | List<ComMngHouseVo> getPopulHouseListByPopulId(@Param("populId") Long populId); |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.panzhihua.common.model.vos.user.ComMngHouseVo; |
| | | import org.apache.ibatis.annotations.Insert; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | + ",#{item.relation},#{item.residence},#{item.startAt},#{item.endAt}" + ",now())" + " </foreach>" |
| | | + " </script>") |
| | | void insertAll(@Param("houseUserList") List<ComMngPopulationHouseUserDO> houseUserList); |
| | | |
| | | @Select("select cmphu.id, cmphu.house_id,cmph.address,cmph.status,cmph.purpose,cmph.control_status,cmphu.popul_id,cmphu.residence,cmphu.relation_id,cmphu.relation from com_mng_population_house_user cmphu " |
| | | + " left join com_mng_population_house as cmph on cmph.id = cmphu.house_id " |
| | | + " where cmphu.id = #{id}") |
| | | ComMngHouseVo detail(Long id); |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_community.dao; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.vos.partybuilding.*; |
| | | import com.panzhihua.service_community.model.dos.ComPbMemberDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.annotations.Update; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | | * @description: 党员 |
| | | * @author: huang.hongfa weixin hhf9596 qq 959656820 |
| | | * @create: 2020-11-30 10:52 |
| | | **/ |
| | | @Mapper |
| | | public interface ComPbMemberDAO extends BaseMapper<ComPbMemberDO> { |
| | | /** |
| | | * 根据用户手机号查询党员信息 |
| | | * @param idCard |
| | | * @return |
| | | */ |
| | | ComPbMemberVO selectById(String idCard); |
| | | } |
| | |
| | | |
| | | int havePensionAuthPensionerAmount(@Param("communityId") Long communityId, @Param("authPeriod") String authPeriod); |
| | | |
| | | /** |
| | | * 根据人口id维护养老金人员健在状态 |
| | | * @param populationId 人口id |
| | | * @param isAlive 健在状态(1.健在 0.未健在) |
| | | */ |
| | | void editPensionIsAlive(@Param("populationId") Long populationId,@Param("isAlive") Integer isAlive); |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_community.model.dos; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | | * @description: 党员 |
| | | * @author: huang.hongfa weixin hhf9596 qq 959656820 |
| | | * @create: 2020-11-30 10:48 |
| | | **/ |
| | | @Data |
| | | @TableName("com_pb_member") |
| | | public class ComPbMemberDO implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 党员在表中的id |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 所属党组织id |
| | | */ |
| | | private Long orgId; |
| | | |
| | | /** |
| | | * 身份证号 |
| | | */ |
| | | private String idCard; |
| | | |
| | | /** |
| | | * 姓名 |
| | | */ |
| | | private String name; |
| | | |
| | | /** |
| | | * 头像图片路径 |
| | | */ |
| | | private String photoPath; |
| | | |
| | | /** |
| | | * 入党时间 |
| | | */ |
| | | private Date joinTime; |
| | | |
| | | /** |
| | | * 转正时间 |
| | | */ |
| | | private Date employmentTime; |
| | | |
| | | /** |
| | | * 党员审查结果 |
| | | */ |
| | | private Integer auditResult; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | private Date updateAt; |
| | | /** |
| | | * 社区id |
| | | */ |
| | | private Long communityId; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 驳回原因 |
| | | */ |
| | | private String refuseReason; |
| | | |
| | | } |
| | |
| | | R delete(ComActFourMemberVO comActFourMemberVO); |
| | | |
| | | R get(Integer id); |
| | | |
| | | /** |
| | | * 小程序四长四员查询居民列表 |
| | | */ |
| | | R selectByMember(CommonPage commonPage); |
| | | |
| | | /** |
| | | * 居民详情 |
| | | */ |
| | | R selectById(Long id); |
| | | } |
| | |
| | | import com.panzhihua.common.model.dtos.community.CascadeHouseDTO; |
| | | import com.panzhihua.common.model.dtos.community.ComMngPopulationHouseAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.ComMngPopulationHouseEditAdminDTO; |
| | | import com.panzhihua.common.model.dtos.community.ComMngPopulationHouseInsertAdminDTO; |
| | | import com.panzhihua.common.model.dtos.grid.PageComMngVillageBuildHouseAppDTO; |
| | | import com.panzhihua.common.model.dtos.grid.admin.ComMngPopulationRelationHouseDTO; |
| | | import com.panzhihua.common.model.dtos.grid.admin.ComMngPopulationSubordinateDTO; |
| | |
| | | |
| | | R populationRelationHouse(ComMngPopulationRelationHouseDTO relationHouseDTO); |
| | | |
| | | /** |
| | | * 编辑实有房屋信息 |
| | | * |
| | | * @param houseEditAdminDTO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | R insertHouse(ComMngPopulationHouseInsertAdminDTO houseEditAdminDTO); |
| | | } |
| | |
| | | package com.panzhihua.service_community.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.panzhihua.common.model.dtos.community.ComMngPopulationHouseUserVO; |
| | | 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; |
| | |
| | | |
| | | R getVillagePopulationHouseAdmin(PageComMngVillagePopulationHouseDTO villagePopulationDTO); |
| | | |
| | | R insert(ComMngPopulationHouseUserVO comMngPopulationHouseUserVO); |
| | | |
| | | R updateAll(ComMngPopulationHouseUserVO comMngPopulationHouseUserVO); |
| | | |
| | | R delete(ComMngPopulationHouseUserVO comMngPopulationHouseUserVO); |
| | | |
| | | R detail(Long id); |
| | | } |
| | |
| | | // 查询所有即将开始的活动 |
| | | List<ComActActivityDO> actActivityList = comActActivityDAO.selectList(new QueryWrapper<ComActActivityDO>() |
| | | .lambda().le(ComActActivityDO::getBeginAt, DateUtils.addDays(new Date(), 1)) |
| | | .ge(ComActActivityDO::getBeginAt, new Date())); |
| | | .ge(ComActActivityDO::getBeginAt, new Date()).notIn(ComActActivityDO::getStatus,5,6)); |
| | | if (!actActivityList.isEmpty()) { |
| | | WxXCXTempSend util = new WxXCXTempSend(); |
| | | try { |
| | |
| | | |
| | | import cn.hutool.core.date.DateUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.enums.PopulCultureLevelEnum; |
| | | import com.panzhihua.common.enums.PopulMarriageEnum; |
| | | import com.panzhihua.common.enums.PopulPoliticalOutlookEnum; |
| | | import com.panzhihua.common.enums.PopulRelationEnum; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActFourMemberVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngPopulationDetailVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngPopulationVO; |
| | | import com.panzhihua.common.model.vos.community.FourMemberDetailVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.ComPbMemberVO; |
| | | import com.panzhihua.common.model.vos.user.AdministratorsUserVO; |
| | | import com.panzhihua.common.model.vos.user.ComHouseMemberVo; |
| | | import com.panzhihua.common.model.vos.user.ComMngHouseVo; |
| | | import com.panzhihua.common.service.partybuilding.PartyBuildingService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.service_community.dao.ComMngBuildingDAO; |
| | | import com.panzhihua.common.utlis.AgeUtils; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.dao.*; |
| | | import com.panzhihua.service_community.entity.ComActCommittee; |
| | | import com.panzhihua.service_community.entity.ComActFourMember; |
| | | import com.panzhihua.service_community.dao.ComActFourMemberDao; |
| | | import com.panzhihua.service_community.model.dos.ComMngBuildingDO; |
| | | import com.panzhihua.service_community.model.dos.ComMngPopulationDO; |
| | | import com.panzhihua.service_community.model.dos.ComMngPopulationHouseUserDO; |
| | | import com.panzhihua.service_community.model.dos.ComPbMemberDO; |
| | | import com.panzhihua.service_community.service.ComActFourMemberService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | private ComMngBuildingDAO comMngBuildingDAO; |
| | | @Resource |
| | | private UserService userService; |
| | | @Resource |
| | | private ComMngPopulationDAO comMngPopulationDAO; |
| | | @Resource |
| | | private ComPbMemberDAO comPbMemberDAO; |
| | | @Resource |
| | | private ComMngPopulationHouseUserDAO comMngPopulationHouseUserDAO; |
| | | @Resource |
| | | private ComMngPopulationHouseDAO comMngPopulationHouseDAO; |
| | | @Override |
| | | public R pageList(CommonPage commonPage) { |
| | | return R.ok(comActFourMemberDao.pageList(new Page(commonPage.getPage(),commonPage.getSize()),commonPage)); |
| | |
| | | public R get(Integer id) { |
| | | return R.ok(comActFourMemberDao.getById(id)); |
| | | } |
| | | |
| | | @Override |
| | | public R selectByMember(CommonPage commonPage) { |
| | | IPage<ComMngPopulationVO> comMngPopulationDOIPage=this.comMngPopulationDAO.query(new Page<ComMngPopulationDO>(commonPage.getPage(),commonPage.getSize()),commonPage); |
| | | if (!comMngPopulationDOIPage.getRecords().isEmpty()) { |
| | | comMngPopulationDOIPage.getRecords().forEach(populDO -> { |
| | | if (StringUtils.isNotEmpty(populDO.getBirthday())) { |
| | | populDO.setAge(AgeUtils.getAgeFromBirthTimes(populDO.getBirthday())); |
| | | } |
| | | }); |
| | | } |
| | | return R.ok(comMngPopulationDOIPage); |
| | | } |
| | | |
| | | @Override |
| | | public R selectById(Long id) { |
| | | FourMemberDetailVO fourMemberDetailVO=new FourMemberDetailVO(); |
| | | ComMngPopulationDO comMngPopulationDO = comMngPopulationDAO.selectById(id); |
| | | if (ObjectUtils.isEmpty(comMngPopulationDO)) { |
| | | return R.fail("用户信息不存在"); |
| | | } |
| | | // if(StringUtils.isNotEmpty(comMngPopulationDO.getBirthday())){//计算年龄 |
| | | // comMngPopulationDO.setAge(AgeUtils.getAgeFromBirthTimes(comMngPopulationDO.getBirthday())); |
| | | // } |
| | | |
| | | ComMngPopulationVO comMngPopulationVO = new ComMngPopulationVO(); |
| | | BeanUtils.copyProperties(comMngPopulationDO, comMngPopulationVO); |
| | | |
| | | // 查询户主关系信息 |
| | | // List<ComHouseMemberVo> comMngFamilyInfoVOS = |
| | | // populationDAO.listHouseMermberByUserId(comMngPopulationDO.getHouseId(),comMngPopulationDO.getId()); |
| | | // if (!comMngFamilyInfoVOS.isEmpty()) { |
| | | // comMngPopulationVO.setComMngFamilyInfoVOS(comMngFamilyInfoVOS); |
| | | // } |
| | | // 查询户主关系信息 |
| | | List<ComHouseMemberVo> comMngFamilyInfoVOS = comMngPopulationDAO.listHouseMermberByPopuId(comMngPopulationDO.getId()); |
| | | if (!comMngFamilyInfoVOS.isEmpty()) { |
| | | for (ComHouseMemberVo comHouseMemberVo : comMngFamilyInfoVOS) { |
| | | comHouseMemberVo.setAge(AgeUtils.getAgeFromBirthTimes(comHouseMemberVo.getBirthDay())); |
| | | } |
| | | comMngPopulationVO.setComMngFamilyInfoVOS(comMngFamilyInfoVOS); |
| | | } |
| | | // 设置户主关系 |
| | | List<ComMngPopulationHouseUserDO> comMngPopulationHouseUserDOS = |
| | | comMngPopulationHouseUserDAO.selectList((new QueryWrapper<ComMngPopulationHouseUserDO>().lambda() |
| | | .eq(ComMngPopulationHouseUserDO::getPopulId, id))); |
| | | if (!comMngPopulationHouseUserDOS.isEmpty()) { |
| | | comMngPopulationVO |
| | | .setRelation(comMngPopulationHouseUserDOS.get(comMngPopulationHouseUserDOS.size() - 1).getRelation()); |
| | | } |
| | | // 设置年龄 |
| | | if (StringUtils.isNotEmpty(comMngPopulationVO.getBirthday())) { |
| | | comMngPopulationVO.setAge(AgeUtils.getAgeFromBirthTimes(comMngPopulationVO.getBirthday())); |
| | | } |
| | | // 查询当前用户房屋信息 |
| | | List<ComMngHouseVo> houseList = comMngPopulationHouseDAO.getPopulHouseListByPopulId(id); |
| | | if (!houseList.isEmpty()) { |
| | | houseList.forEach(house -> { |
| | | |
| | | }); |
| | | comMngPopulationVO.setHouseList(houseList); |
| | | } |
| | | |
| | | if(comMngPopulationVO!=null&&StringUtils.isNotEmpty(comMngPopulationVO.getCardNoStr())){ |
| | | fourMemberDetailVO.setComMngPopulationVO(comMngPopulationVO); |
| | | ComPbMemberVO comPbMemberDO=comPbMemberDAO.selectById(comMngPopulationVO.getCardNoStr()); |
| | | if(comPbMemberDO!=null){ |
| | | fourMemberDetailVO.setPartyBuildingMemberVO(comPbMemberDO); |
| | | } |
| | | } |
| | | return R.ok(fourMemberDetailVO); |
| | | } |
| | | } |
| | |
| | | BeanUtils.copyProperties(addClusterMemberAdminDto,organizationMemberDO); |
| | | organizationMemberDO.setCreateAt(new Date()); |
| | | if(this.baseMapper.insert(organizationMemberDO) > 0){ |
| | | return R.ok(); |
| | | return R.ok("添加成功"); |
| | | } |
| | | return R.fail(); |
| | | return R.fail("添加失败"); |
| | | } |
| | | |
| | | /** |
| | |
| | | BeanUtils.copyProperties(editClusterMemberAdminDto,organizationMemberDO); |
| | | organizationMemberDO.setUpdateAt(new Date()); |
| | | if(this.baseMapper.updateById(organizationMemberDO) > 0){ |
| | | return R.ok(); |
| | | return R.ok("编辑成功"); |
| | | } |
| | | return R.fail(); |
| | | return R.fail("编辑失败"); |
| | | } |
| | | |
| | | /** |
| | |
| | | organizationMemberDO.setIsDel(ComClusterOrganizationMemberDO.isOk.yes); |
| | | organizationMemberDO.setUpdateAt(new Date()); |
| | | if(this.baseMapper.updateById(organizationMemberDO) > 0){ |
| | | return R.ok(); |
| | | return R.ok("删除成功"); |
| | | } |
| | | return R.fail(); |
| | | return R.fail("删除失败"); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | //判断组织是否存在 |
| | | if(!isOnly(memberExcel.getClusterName(),clusterMap)){ |
| | | if(isOnly(memberExcel.getClusterName(),clusterMap)){ |
| | | ComClusterMemberExcelErrorVO memberExcelErrorVO = new ComClusterMemberExcelErrorVO(); |
| | | BeanUtils.copyProperties(memberExcel,memberExcelErrorVO); |
| | | memberExcelErrorVO.setError("该组织在本社区不存在"); |
| | |
| | | } else { |
| | | sendAuthSubscribe(comElderAuthRecordsDO.getSubmitUserId(), "高龄认证", comElderAuthRecordVO.getRejectReason()); |
| | | } |
| | | comElderAuthRecordsDO.setApprovalDate(new Date()); |
| | | // comElderAuthRecordsDO.setApprovalDate(new Date()); |
| | | int nub = comElderAuthRecordsDAO.updateById(comElderAuthRecordsDO); |
| | | if (nub < 1) { |
| | | return R.fail("审核失败"); |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | } |
| | | ComMngCarDO comMngCarDO = new ComMngCarDO(); |
| | | BeanUtils.copyProperties(comMngCarSaveDTO, comMngCarDO); |
| | | comMngCarDO.setAreaName(comMngVillageDO.getGroupAt()); |
| | | //如果小区没有名字,则将街路巷和地区号拼接起来 |
| | | if(comMngVillageDO.getName() != null && StringUtils.isNotEmpty(comMngVillageDO.getName())){ |
| | | comMngCarDO.setAreaName(comMngVillageDO.getName()); |
| | | }else{ |
| | | StringBuilder sb = new StringBuilder(); |
| | | sb.append(comMngVillageDO.getAlley()); |
| | | if(!comMngVillageDO.getHouseNum().contains("号")){ |
| | | sb.append(comMngVillageDO.getHouseNum() + "号"); |
| | | } |
| | | comMngCarDO.setAreaName(sb.toString()); |
| | | } |
| | | // if(comMngVillageDO.getGroupAt() == null){ |
| | | // comMngCarDO.setAreaName(comMngVillageDO.getGroupAt()); |
| | | // } |
| | | comMngCarDO.setCommunityId(comMngVillageDO.getCommunityId()); |
| | | try { |
| | | comMngCarDO.setCardNo(AESUtil.encrypt128(comMngCarSaveDTO.getCardNo(), aesKey)); |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.ComMngPopulationHouseInsertAdminDTO; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public R insertHouse(ComMngPopulationHouseInsertAdminDTO houseEditAdminDTO) { |
| | | ComMngPopulationHouseDO houseDO=new ComMngPopulationHouseDO(); |
| | | BeanUtils.copyProperties(houseEditAdminDTO, houseDO); |
| | | houseDO.setCreateAt(new Date()); |
| | | if (this.baseMapper.insert(houseDO) > 0) { |
| | | ComMngPopulationHouseUserDO comMngPopulationHouseUserDO=new ComMngPopulationHouseUserDO(); |
| | | comMngPopulationHouseUserDO.setHouseId(houseDO.getId()); |
| | | comMngPopulationHouseUserDO.setPopulId(houseEditAdminDTO.getPopulationId()); |
| | | comMngPopulationHouseUserDAO.insert(comMngPopulationHouseUserDO); |
| | | return R.ok(); |
| | | } else { |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.ComMngPopulationHouseUserVO; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | new Page(villagePopulationDTO.getPageNum(), villagePopulationDTO.getPageSize()), villagePopulationDTO)); |
| | | } |
| | | |
| | | @Override |
| | | public R insert(ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | ComMngPopulationHouseUserDO comMngPopulationHouseUserDO=new ComMngPopulationHouseUserDO(); |
| | | BeanUtils.copyProperties(comMngPopulationHouseUserVO,comMngPopulationHouseUserDO); |
| | | comMngPopulationHouseUserDO.setId(Snowflake.getId()); |
| | | this.baseMapper.insert(comMngPopulationHouseUserDO); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Override |
| | | public R updateAll(ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | ComMngPopulationHouseUserDO comMngPopulationHouseUserDO=new ComMngPopulationHouseUserDO(); |
| | | BeanUtils.copyProperties(comMngPopulationHouseUserVO,comMngPopulationHouseUserDO); |
| | | this.baseMapper.updateById(comMngPopulationHouseUserDO); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Override |
| | | public R delete(ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | return R.ok(this.baseMapper.deleteById(comMngPopulationHouseUserVO.getId())); |
| | | } |
| | | |
| | | @Override |
| | | public R detail(Long id) { |
| | | return R.ok(this.baseMapper.detail(id)); |
| | | } |
| | | |
| | | } |
| | |
| | | ComElderAuthElderliesDO comElderAuthElderliesDO = |
| | | comElderAuthElderliesDAO.selectOne(new QueryWrapper<ComElderAuthElderliesDO>().lambda() |
| | | .eq(ComElderAuthElderliesDO::getPopulationId, populationDO.getId()).eq(ComElderAuthElderliesDO::getCommunityId, communityId)); |
| | | // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> |
| | | // userTagStr.split("\\(")[0]).collect(Collectors.toList()); |
| | | // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 |
| | | // Iterator<String> iterator = userTag.iterator(); |
| | | // while (iterator.hasNext()) { |
| | | // String s = iterator.next(); |
| | | // if (!labelList.contains(s)) |
| | | // iterator.remove(); |
| | | // } |
| | | String cardNoAES = populationDO.getCardNo(); |
| | | try { |
| | | cardNoAES = AESUtil.encrypt128(vo.getCardNo(), aesKey); |
| | |
| | | comElderAuthElderliesDO.setPersonnelCategory(ComElderAuthElderliesDO.personnelCategory.above100); |
| | | } |
| | | } |
| | | // if (!comElderAuthElderliesDO.getIsAlive().equals(1) || !comElderAuthElderliesDO.getIsRegister().equals(1)) { |
| | | // if (vo.getIsRegister().equals(1) && vo.getIsAlive().equals(1)) { |
| | | // Date nowDate = new Date(); |
| | | // // 获取当前年 |
| | | // int year = DateUtils.getYear(nowDate); |
| | | // // 获取当前月 |
| | | // int month = DateUtils.getMonth(nowDate) + 1; |
| | | // ComEldersAuthStatisticsDO comEldersAuthStatisticsDO = comEldersAuthStatisticsMapper.selectOne(new QueryWrapper<ComEldersAuthStatisticsDO>() |
| | | // .lambda().eq(ComEldersAuthStatisticsDO::getCommunityId, communityId).eq(ComEldersAuthStatisticsDO::getYear, year).eq(ComEldersAuthStatisticsDO::getMonth, month)); |
| | | // comEldersAuthStatisticsDO.setSum(comEldersAuthStatisticsDO.getSum() + 1); |
| | | // comEldersAuthStatisticsMapper.updateById(comEldersAuthStatisticsDO); |
| | | // } |
| | | // } |
| | | comElderAuthElderliesDAO.updateById(comElderAuthElderliesDO); |
| | | } else { |
| | | comElderAuthElderliesDO = new ComElderAuthElderliesDO(); |
| | |
| | | comElderAuthElderliesDO.setPersonnelCategory(ComElderAuthElderliesDO.personnelCategory.above100); |
| | | } |
| | | } |
| | | // if (vo.getIsRegister().equals(1) && vo.getIsAlive().equals(1)) { |
| | | // Date nowDate = new Date(); |
| | | // // 获取当前年 |
| | | // int year = DateUtils.getYear(nowDate); |
| | | // // 获取当前月 |
| | | // int month = DateUtils.getMonth(nowDate) + 1; |
| | | // ComEldersAuthStatisticsDO comEldersAuthStatisticsDO = comEldersAuthStatisticsMapper.selectOne(new QueryWrapper<ComEldersAuthStatisticsDO>() |
| | | // .lambda().eq(ComEldersAuthStatisticsDO::getCommunityId, communityId).eq(ComEldersAuthStatisticsDO::getYear, year).eq(ComEldersAuthStatisticsDO::getMonth, month)); |
| | | // comEldersAuthStatisticsDO.setSum(comEldersAuthStatisticsDO.getSum() + 1); |
| | | // comEldersAuthStatisticsMapper.updateById(comEldersAuthStatisticsDO); |
| | | // } |
| | | comElderAuthElderliesDAO.insert(comElderAuthElderliesDO); |
| | | } |
| | | |
| | | //维护养老认证健在状态 |
| | | comPensionAuthPensionerDAO.editPensionIsAlive(populationDO.getId(),vo.getIsAlive()); |
| | | return populationDO; |
| | | } |
| | | |
| | |
| | | comPensionAuthPensionerDAO.selectOne(new QueryWrapper<ComPensionAuthPensionerDO>().lambda() |
| | | .eq(ComPensionAuthPensionerDO::getPopulationId, populationDO.getId()) |
| | | .eq(ComPensionAuthPensionerDO::getCommunityId, communityId)); |
| | | // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> |
| | | // userTagStr.split("\\(")[0]).collect(Collectors.toList()); |
| | | // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 |
| | | // Iterator<String> iterator = userTag.iterator(); |
| | | // while (iterator.hasNext()) { |
| | | // String s = iterator.next(); |
| | | // if (!labelList.contains(s)) |
| | | // iterator.remove(); |
| | | // } |
| | | String cardNoAES = populationDO.getCardNo(); |
| | | try { |
| | | cardNoAES = AESUtil.encrypt128(vo.getCardNo(), aesKey); |
| | |
| | | BeanUtils.copyProperties(vo, comPensionAuthPensionerDO); |
| | | comPensionAuthPensionerDO.setIdCard(cardNoAES); |
| | | comPensionAuthPensionerDO.setAddress(vo.getNowAddress()); |
| | | // if (!comPensionAuthPensionerDO.getIsAlive().equals(1) || !comPensionAuthPensionerDO.getIsRegister().equals(1)) { |
| | | // if (vo.getIsRegister().equals(1) && vo.getIsAlive().equals(1)) { |
| | | // Date nowDate = new Date(); |
| | | // // 获取当前年 |
| | | // int year = (DateUtils.getYear(nowDate)); |
| | | // ComPensionAuthStatisticsDO comPensionAuthStatisticsDO = comPensionAuthStatisticsDAO.selectOne(new QueryWrapper<ComPensionAuthStatisticsDO>() |
| | | // .lambda().eq(ComPensionAuthStatisticsDO::getCommunityId, communityId) |
| | | // .eq(ComPensionAuthStatisticsDO::getYear, year)); |
| | | // if(null == comPensionAuthStatisticsDO){ |
| | | // comPensionAuthStatisticsDO = comPensionAuthStatisticsDAO.selectOne(new QueryWrapper<ComPensionAuthStatisticsDO>() |
| | | // .lambda().eq(ComPensionAuthStatisticsDO::getCommunityId, communityId) |
| | | // .eq(ComPensionAuthStatisticsDO::getYear, year - 1)); |
| | | // } |
| | | // comPensionAuthStatisticsDO.setSum(comPensionAuthStatisticsDO.getSum() + 1); |
| | | // comPensionAuthStatisticsDAO.updateById(comPensionAuthStatisticsDO); |
| | | // } |
| | | // } |
| | | comPensionAuthPensionerDAO.updateById(comPensionAuthPensionerDO); |
| | | } else { |
| | | comPensionAuthPensionerDO = new ComPensionAuthPensionerDO(); |
| | |
| | | comPensionAuthPensionerDO.setIdCard(vo.getCardNo()); |
| | | comPensionAuthPensionerDO.setAddress(vo.getNowAddress()); |
| | | comPensionAuthPensionerDAO.insert(comPensionAuthPensionerDO); |
| | | // if (vo.getIsRegister().equals(1) && vo.getIsAlive().equals(1)) { |
| | | // Date nowDate = new Date(); |
| | | // // 获取当前年 |
| | | // int year = (DateUtils.getYear(nowDate)); |
| | | // ComPensionAuthStatisticsDO comPensionAuthStatisticsDO = comPensionAuthStatisticsDAO.selectOne(new QueryWrapper<ComPensionAuthStatisticsDO>() |
| | | // .lambda().eq(ComPensionAuthStatisticsDO::getCommunityId, communityId) |
| | | // .eq(ComPensionAuthStatisticsDO::getYear, year)); |
| | | // comPensionAuthStatisticsDO.setSum(comPensionAuthStatisticsDO.getSum() + 1); |
| | | // comPensionAuthStatisticsDAO.updateById(comPensionAuthStatisticsDO); |
| | | // } |
| | | } |
| | | //维护高龄老人健在状态 |
| | | comElderAuthElderliesDAO.editEditIsAlive(populationDO.getId(),vo.getIsAlive()); |
| | | return populationDO; |
| | | } |
| | | |
| | |
| | | Long populationId = Snowflake.getId(); |
| | | populationDO.setId(populationId); |
| | | comElderAuthElderliesDO.setPopulationId(populationId); |
| | | // List<String> userTag = vo.getUserTagStr().stream().map(userTagStr -> |
| | | // userTagStr.split("\\(")[0]).collect(Collectors.toList()); |
| | | // |
| | | // //如果导入数据标签中有当前社区标签列表中不包含的标签,则删除 |
| | | // Iterator<String> iterator = userTag.iterator(); |
| | | // while (iterator.hasNext()) { |
| | | // String s = iterator.next(); |
| | | // if (!labelList.contains(s)) |
| | | // iterator.remove(); |
| | | // } |
| | | populationDO.setVillageId(comMngVillageDO.getVillageId()); |
| | | populationDO.setActId(comActDO.getCommunityId()); |
| | | populationDO.setStreetId(comActDO.getStreetId()); |
| | |
| | | comElderAuthElderliesDO.setPersonnelCategory(ComElderAuthElderliesDO.personnelCategory.above100); |
| | | } |
| | | } |
| | | // if (vo.getIsRegister().equals(1) && vo.getIsAlive().equals(1)) { |
| | | // Calendar calendar = Calendar.getInstance(); |
| | | // // 获取当前年 |
| | | // int year = calendar.get(Calendar.YEAR); |
| | | // // 获取当前月 |
| | | // int month = calendar.get(Calendar.MONTH) + 1; |
| | | // ComEldersAuthStatisticsDO comEldersAuthStatisticsDO = comEldersAuthStatisticsMapper.selectOne(new QueryWrapper<ComEldersAuthStatisticsDO>() |
| | | // .lambda().eq(ComEldersAuthStatisticsDO::getCommunityId, communityId).eq(ComEldersAuthStatisticsDO::getYear, year).eq(ComEldersAuthStatisticsDO::getMonth, month)); |
| | | // comEldersAuthStatisticsDO.setSum(comEldersAuthStatisticsDO.getSum() + 1); |
| | | // comEldersAuthStatisticsMapper.updateById(comEldersAuthStatisticsDO); |
| | | // } |
| | | comElderAuthElderliesDAO.insert(comElderAuthElderliesDO); |
| | | return populationDO; |
| | | } |
| | |
| | | populationDO.setStreetId(comActDO.getStreetId()); |
| | | } |
| | | |
| | | //修改人员标签 |
| | | List<ComMngPopulationCommunityTagsDO> communityTagsDOList = comMngPopulationCommunityTagsDAO |
| | | .selectList(new QueryWrapper<ComMngPopulationCommunityTagsDO>().lambda() |
| | | .eq(ComMngPopulationCommunityTagsDO::getCommunityId,communityId) |
| | | .eq(ComMngPopulationCommunityTagsDO::getPopulationId,vo.getId())); |
| | | communityTagsDOList.forEach(communityTags -> { |
| | | communityTags.setLabel(vo.getLabel()); |
| | | comMngPopulationCommunityTagsDAO.updateById(communityTags); |
| | | }); |
| | | |
| | | // 查询当前用户所有房屋id |
| | | List<Long> houseIds = comMngPopulationHouseUserDAO.getPopulationHouseIdByUserId(vo.getId()); |
| | | // 清除用户房屋居住信息 |
| | |
| | | public R specialInputUser(PageInputUserDTO pageInputUserDTO) { |
| | | IPage<InputUserInfoVO> iPage = populationDAO.specialInputUser( |
| | | new Page<>(pageInputUserDTO.getPageNum(), pageInputUserDTO.getPageSize()), pageInputUserDTO); |
| | | |
| | | iPage.getRecords().forEach(page -> { |
| | | if(page.getAreaName() == null || StringUtils.isEmpty(page.getAreaName())){ |
| | | StringBuilder sb = new StringBuilder(); |
| | | sb.append(page.getAlley()); |
| | | if(!page.getHouseNum().contains("号")){ |
| | | sb.append(page.getHouseNum() + "号"); |
| | | } |
| | | page.setAreaName(sb.toString()); |
| | | } |
| | | }); |
| | | return R.ok(iPage); |
| | | } |
| | | |
| | |
| | | villageVO.setHouseTotal(villageTotal.getHouseTotal()); |
| | | villageVO.setPopulationTotal(villageTotal.getPopulationTotal()); |
| | | } |
| | | villageVOList.add(villageVO); |
| | | |
| | | //如果小区没有名字,则将街路巷和地区号拼接起来 |
| | | if(village.getName() != null && StringUtils.isNotEmpty(village.getName())){ |
| | | villageVO.setGroupAt(village.getName()); |
| | | }else{ |
| | | StringBuilder sb = new StringBuilder(); |
| | | sb.append(village.getAlley()); |
| | | if(!village.getHouseNum().contains("号")){ |
| | | sb.append(village.getHouseNum() + "号"); |
| | | } |
| | | villageVO.setGroupAt(sb.toString()); |
| | | villageVO.setName(sb.toString()); |
| | | } |
| | | villageVOList.add(villageVO); |
| | | }); |
| | | villageVOIPage.setRecords(villageVOList); |
| | | } |
| | |
| | | public R setCommunityAuthType(Long communityId, Integer type) { |
| | | List<SysConfDO> authConf = |
| | | sysConfDao.selectList(new LambdaQueryWrapper<SysConfDO>().eq(SysConfDO::getCommunityId, communityId) |
| | | .eq(SysConfDO::getCode, "ELDER_AUTH_TYPE").orderByDesc(SysConfDO::getCreateAt)); |
| | | .eq(SysConfDO::getCode, "ELDER_AUTH_TYPE_" + communityId).orderByDesc(SysConfDO::getCreateAt)); |
| | | if (authConf != null && authConf.size() > 0) { |
| | | SysConfDO first = authConf.get(0); |
| | | first.setValue(type + ""); |
| | |
| | | <select id="getEvaluateLists" resultType="com.panzhihua.common.model.vos.community.ComActActEvaluateExcelVO"> |
| | | SELECT |
| | | caae.create_at, |
| | | caae.star_level, |
| | | CASE |
| | | WHEN caae.star_level = 1 THEN |
| | | '一星' |
| | | WHEN caae.star_level = 2 THEN |
| | | '二星' |
| | | WHEN caae.star_level = 3 THEN |
| | | '三星' |
| | | WHEN caae.star_level = 4 THEN |
| | | '四星' |
| | | WHEN caae.star_level = 5 THEN |
| | | '五星' ELSE '未评价' |
| | | END `star_level`, |
| | | caae.evaluate_content, |
| | | su.`name`, |
| | | su.`nick_name`, |
| | | su.phone, |
| | | CASE |
| | | |
| | | WHEN su.is_partymember = 1 THEN |
| | | '党员' |
| | | WHEN caae.is_volunteer = 1 THEN |
| | | '志愿者' ELSE '居民' |
| | | END identity |
| | | END `identity` |
| | | |
| | | FROM |
| | | com_act_act_evaluate caae |
| | |
| | | d.id, |
| | | d.`discuss_subject`, |
| | | d.type, |
| | | d.comment_num, |
| | | (select count(id) from com_act_discuss_comment where discuss_id = d.id and is_del = 2 and parent_id = 0) as comment_num, |
| | | d.fabulous_num as signNum, |
| | | d.views_num, |
| | | d.status, |
| | |
| | | </select> |
| | | |
| | | <select id="selectBuilding" resultType="String"> |
| | | select concat(t1.group_at,t.name,'栋') from com_mng_building t left join com_mng_village t1 on t.village_id = t1.village_id where t.id in (${id}) |
| | | select distinct concat(alley,house_num,'号',IFNULL(floor,0),'栋') from com_mng_population_house where id in (${id}) |
| | | </select> |
| | | |
| | | <select id="getById" resultMap="baseResultMap"> |
| | |
| | | caqua.create_at AS `time` |
| | | FROM |
| | | com_act_questnaire_answer_content caqac |
| | | LEFT JOIN com_act_questnaire_sub caqs ON caqac.selection_id = caqs.id |
| | | LEFT JOIN com_act_questnaire_sub caqs ON caqac.sub_id = caqs.id |
| | | LEFT JOIN com_act_questnaire caq ON caqs.que_Id = caq.id |
| | | LEFT JOIN sys_user su ON caqac.user_id = su.user_id |
| | | LEFT JOIN com_act_questnaire_user_answer caqua ON caqua.id = caqac.answer_id |
| | |
| | | case ccom.`status` |
| | | when '1' then '启用' |
| | | when '2' then '禁用' |
| | | end |
| | | end `status` |
| | | FROM |
| | | com_cluster_organization_member AS ccom |
| | | LEFT JOIN com_cluster_organization AS cco ON cco.id = ccom.cluster_id |
| | |
| | | AND cear.auth_status = 1 |
| | | AND cear.auth_period = #{authPeriod}) |
| | | </select> |
| | | |
| | | <update id="editEditIsAlive"> |
| | | update com_elder_auth_elderlies set is_alive = #{isAlive} where population_id = #{populationId} |
| | | </update> |
| | | </mapper> |
| | |
| | | </resultMap> |
| | | |
| | | <select id="find" resultType="String"> |
| | | select concat(t1.group_at,t.name,'栋') from com_mng_building t left join com_mng_village t1 on t.village_id = t1.village_id where t.id in (#{id}) |
| | | select distinct concat(alley,house_num,'号',IFNULL(floor,0),'栋') from com_mng_population_house where id in (${id}) |
| | | </select> |
| | | |
| | | <resultMap id="selectMap" type="com.panzhihua.common.model.vos.community.VillageVO"> |
| | |
| | | select t.village_id as villageId,concat(t.alley,t.house_num,'号') as villageName,t1.id,concat(t1.unit_no,'栋',t1.floor,'单元',t1.code,'号') as name from com_mng_village t left join com_mng_population_house t1 on t.village_id = t1.village_id where t.community_id=#{communityId} and t1.id is not null |
| | | </select> |
| | | |
| | | |
| | | |
| | | <delete id="deletePopulaitonRelation"> |
| | | delete from com_mng_population_community_tags where population_id in |
| | | <foreach item="item" collection="ids" separator="," open="(" close=")" index=""> |
| | |
| | | cmp.special_situation, cmp.phone, cmp.remark, cmp.native_place, cmp.nation, |
| | | cmpct.label, cmp.marriage, cmp.culture_level, cmp.profession, cmp.out_or_local, |
| | | cmp.census_register, cmp.healthy, cmp.birthday, cmp.update_at, cmp.address, |
| | | cmp.is_rent FROM com_mng_population AS cmp |
| | | LEFT JOIN com_mng_population_community_tags AS cmpct ON cmp.id = cmpct.population_id |
| | | cmp.is_rent FROM com_mng_population_community_tags as cmpct |
| | | LEFT JOIN com_mng_population AS cmp ON cmp.id = cmpct.population_id |
| | | <where> |
| | | <if test='comMngPopulationVO.name != null and comMngPopulationVO.name != ""'> |
| | | AND cmp.`name` LIKE concat(#{comMngPopulationVO.name},'%') </if> |
| | |
| | | order by cmp.create_at desc |
| | | </select> |
| | | |
| | | <select id="specialInputUser" resultType="com.panzhihua.common.model.vos.user.InputUserInfoVO"> |
| | | SELECT |
| | | cmp.id, |
| | | cmv.`name` AS areaName, |
| | | cmv.alley AS alley, |
| | | cmv.house_num AS houseNum, |
| | | cmp.`name`, |
| | | cmp.phone, |
| | | cmpct.label AS tags, |
| | | cmp.create_at |
| | | FROM |
| | | com_mng_population_community_tags as cmpct |
| | | LEFT JOIN com_mng_population AS cmp ON cmp.id = cmpct.population_id |
| | | LEFT JOIN com_mng_village AS cmv ON cmv.village_id = cmp.village_id |
| | | WHERE |
| | | cmpct.community_id = #{pageInputUserDTO.communityId} |
| | | AND cmpct.label IS NOT NULL |
| | | <if test='pageInputUserDTO.name != null and pageInputUserDTO.name != ""'> |
| | | AND cmp.`name` LIKE concat(#{pageInputUserDTO.name},'%') |
| | | </if> |
| | | <if test='pageInputUserDTO.areaName != null and pageInputUserDTO.areaName != ""'> |
| | | AND cmv.`alley` LIKE concat(#{pageInputUserDTO.areaName},'%') |
| | | </if> |
| | | <if test='pageInputUserDTO.tags != null and pageInputUserDTO.tags != ""'> |
| | | AND cmpct.label like concat('%',#{pageInputUserDTO.tags},'%') |
| | | </if> |
| | | ORDER BY |
| | | cmp.create_at DESC |
| | | </select> |
| | | |
| | | <select id="query" resultType="com.panzhihua.common.model.vos.community.ComMngPopulationVO"> |
| | | select * from com_mng_population |
| | | <where> |
| | | 1=1 |
| | | <if test="commonPage.name !=null and commonPage.name.trim() !=''"> |
| | | and name like concat('%',#{commonPage.name},'%') |
| | | </if> |
| | | <if test="commonPage.paramId !=null and commonPage.paramId !=''"> |
| | | and act_id = #{commonPage.paramId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <resultMap id="selectMap2" type="com.panzhihua.common.model.vos.community.ComMngPopulationDetailVO"> |
| | | <id column="id" property="id" /> |
| | | <result column="street_id" property="streetId" /> |
| | | <result column="act_id" property="actId" /> |
| | | <result column="village_id" property="villageId" /> |
| | | <result column="name" property="name" /> |
| | | <result column="sex" property="sex" /> |
| | | <result column="card_no" property="cardNo" /> |
| | | <result column="card_no_str" property="cardNoStr" /> |
| | | <result column="road" property="road" /> |
| | | <result column="door_no" property="doorNo" /> |
| | | <result column="floor" property="floor" /> |
| | | <result column="unit_no" property="unitNo" /> |
| | | <result column="phone" property="phone"/> |
| | | <result column="house_no" property="houseNo" /> |
| | | <result column="political_outlook" property="politicalOutlook" /> |
| | | <result column="work_company" property="workCompany" /> |
| | | <result column="special_situation" property="specialSituation" /> |
| | | <result column="remark" property="remark" /> |
| | | <result column="create_at" property="createAt" /> |
| | | <result column="update_at" property="updateAt" /> |
| | | <result column="address" property="address" /> |
| | | <collection property="houseList" column="{id = id}" ofType="com.panzhihua.common.model.vos.user.ComMngHouseVo" javaType="java.util.ArrayList"> |
| | | <result column="house_address" property="address"/> |
| | | <result column="house_house_id" property="houseId" /> |
| | | <result column="house_residence" property="residence" /> |
| | | <result column="popul_id" property="populId"/> |
| | | <result column="status" property="status"/> |
| | | <result column="s_relation" property="relation"/> |
| | | <result column="s_srelation_id" property="relationId"/> |
| | | </collection> |
| | | </resultMap> |
| | | |
| | | <select id="getById" resultMap="selectMap2"> |
| | | select t.*,t2.address as house_address,t2.house_id as house_house_id ,t2.residence as house_residence ,t2.status,t2.relation as s_relation,t2.relation_id as s_relation_id,t2.popul_id from com_mng_population t left join ( select t.address,t1.house_id,t1.popul_id,t1.relation,t1.relation_id,t.status,t1.residence from com_mng_population_house t left join com_mng_population_house_user t1 on t.id = t1.house_id) t2 on t.id = t2.popul_id where t.id =#{id} |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.panzhihua.service_community.dao.ComPbMemberDAO"> |
| | | |
| | | <select id="selectById" resultType="com.panzhihua.common.model.vos.partybuilding.ComPbMemberVO"> |
| | | select t.*,t2.name as orgName from com_pb_member t left join com_mng_population t1 on t.id_card = t1.card_no_str left join com_pb_org t2 on t.org_id = t2.id where t1.card_no_str =#{idCard} |
| | | </select> |
| | | </mapper> |
| | |
| | | AND cpar.auth_status = 1 |
| | | AND cpar.auth_period = #{authPeriod}) |
| | | </select> |
| | | |
| | | <update id="editPensionIsAlive"> |
| | | update com_pension_auth_pensioners set is_alive = #{isAlive} where population_id = #{populationId} |
| | | </update> |
| | | </mapper> |
| | |
| | | * 是否已经上传浪潮服务器市平台 |
| | | */ |
| | | private Boolean lcUpload; |
| | | |
| | | /** |
| | | * 是否有异常枚举(1.是 0.否) |
| | | */ |
| | | public interface exception{ |
| | | int yes = 1; |
| | | int no = 0; |
| | | |
| | | } |
| | | } |
| | |
| | | option.add("社区矫正异常3"); |
| | | option.add("社区矫正异常4"); |
| | | } |
| | | option.add("无异常"); |
| | | } |
| | | return option; |
| | | } |
| | |
| | | String label = this.baseMapper.getPopulationLabel(eventVisitingTasksDO.getVisiterId()); |
| | | if (StringUtils.isNotEmpty(label)) { |
| | | if (label.contains("精神障碍") || label.contains("吸毒") || label.contains("刑满释放") || label.contains("社区矫正")) { |
| | | if (StringUtils.isNotEmpty(taskCompleteDTO.getOption())) { |
| | | if(taskCompleteDTO.getException().equals(EventVisitingTasksDO.exception.yes) && StringUtils.isNotEmpty(taskCompleteDTO.getOption())){ |
| | | return R.fail("请选择异常状态"); |
| | | } |
| | | // if (StringUtils.isNotEmpty(taskCompleteDTO.getOption())) { |
| | | // return R.fail("请选择异常状态"); |
| | | // } |
| | | } |
| | | } |
| | | |
| | |
| | | e.event_category = 1 |
| | | AND e.event_type = 6 |
| | | AND event_status = 2 |
| | | AND process_type = 1 |
| | | AND ( event_process_status = 1 OR event_process_status = 3 ) |
| | | AND grid_id = #{eventGridTodoDataDTO.gridId} UNION ALL |
| | | SELECT |
New file |
| | |
| | | package com.panzhihua.service_user.dao; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.community.ComActFourMemberVO; |
| | | import com.panzhihua.service_user.model.dos.ComActFourMember; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * (ComActFourMember)表数据库访问层 |
| | | * |
| | | * @author makejava |
| | | * @since 2021-09-23 10:13:30 |
| | | */ |
| | | @Mapper |
| | | public interface ComActFourMemberDao extends BaseMapper<ComActFourMember> { |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_user.model.dos; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Builder; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | |
| | | /** |
| | | * (ComActFourMember)表实体类 |
| | | * |
| | | * @author makejava |
| | | * @since 2021-09-23 10:13:30 |
| | | */ |
| | | @Data |
| | | @Builder |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | @ApiModel("") |
| | | public class ComActFourMember implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 905771115750112478L; |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 职位 |
| | | */ |
| | | @ApiModelProperty(value = "职位") |
| | | private String position; |
| | | |
| | | /** |
| | | * 管辖区域 |
| | | */ |
| | | @ApiModelProperty(value = "管辖区域") |
| | | private String jurisdiction; |
| | | |
| | | /** |
| | | * 社区id |
| | | */ |
| | | @ApiModelProperty(value = "社区id") |
| | | private Long communityId; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value = "管辖区域内容") |
| | | private String jurisdictionContent; |
| | | |
| | | @ApiModelProperty(value = "照片") |
| | | private String url; |
| | | |
| | | private String password; |
| | | |
| | | } |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.service_user.dao.*; |
| | | import com.panzhihua.service_user.model.dos.*; |
| | | import org.apache.commons.lang.time.DateFormatUtils; |
| | | import org.apache.commons.lang.time.DateUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.common.utlis.WxUtil; |
| | | import com.panzhihua.common.utlis.WxXCXTempSend; |
| | | import com.panzhihua.service_user.dao.ComMngFamilyInfoDAO; |
| | | import com.panzhihua.service_user.dao.ComMngUserTagDAO; |
| | | import com.panzhihua.service_user.dao.EventGridMemberBuildingRelationMapper; |
| | | import com.panzhihua.service_user.dao.LcCompareMemberCodeMapper; |
| | | import com.panzhihua.service_user.dao.RoleDAO; |
| | | import com.panzhihua.service_user.dao.SysMenuDAO; |
| | | import com.panzhihua.service_user.dao.SysOperLogDAO; |
| | | import com.panzhihua.service_user.dao.SysRoleMenuDAO; |
| | | import com.panzhihua.service_user.dao.SysUserAgreementDAO; |
| | | import com.panzhihua.service_user.dao.SysUserFeedbackDAO; |
| | | import com.panzhihua.service_user.dao.SysUserInputDAO; |
| | | import com.panzhihua.service_user.dao.SysUserNoticeDAO; |
| | | import com.panzhihua.service_user.dao.SysUserRoleDAO; |
| | | import com.panzhihua.service_user.dao.UserDao; |
| | | import com.panzhihua.service_user.model.dos.ComMngFamilyInfoDO; |
| | | import com.panzhihua.service_user.model.dos.ComMngUserTagDO; |
| | | import com.panzhihua.service_user.model.dos.EventGridMemberBuildingRelationDO; |
| | | import com.panzhihua.service_user.model.dos.LcCompareCodeMemberDO; |
| | | import com.panzhihua.service_user.model.dos.SysMenuDO; |
| | | import com.panzhihua.service_user.model.dos.SysOperLogDO; |
| | | import com.panzhihua.service_user.model.dos.SysRoleDO; |
| | | import com.panzhihua.service_user.model.dos.SysRoleMenuDO; |
| | | import com.panzhihua.service_user.model.dos.SysUserAgreementDO; |
| | | import com.panzhihua.service_user.model.dos.SysUserDO; |
| | | import com.panzhihua.service_user.model.dos.SysUserFeedbackDO; |
| | | import com.panzhihua.service_user.model.dos.SysUserInputDO; |
| | | import com.panzhihua.service_user.model.dos.SysUserNoticeDO; |
| | | import com.panzhihua.service_user.model.dos.SysUserRoleDO; |
| | | import com.panzhihua.service_user.model.dtos.DataKanbanDTO; |
| | | import com.panzhihua.service_user.service.EventGridMemberBuildingRelationService; |
| | | import com.panzhihua.service_user.service.UserService; |
| | |
| | | private EventGridMemberBuildingRelationMapper eventGridMemberBuildingRelationMapper; |
| | | @Resource |
| | | private LcCompareMemberCodeMapper lcCompareMemberCodeMapper; |
| | | @Resource |
| | | private ComActFourMemberDao comActFourMemberDao; |
| | | // @Resource |
| | | // private GridService gridService; |
| | | |
| | |
| | | loginUserInfoVO.setRoles(set); |
| | | } |
| | | loginUserInfoVO.setIsmemberrole(2); |
| | | loginUserInfoVO.setIsFourMember(2); |
| | | // 志愿者状态 |
| | | String phone = sysUserDO.getPhone(); |
| | | Long userCommunityId = sysUserDO.getCommunityId(); |
| | |
| | | } else { |
| | | int state = comMngVolunteerMngVO.getState().intValue(); |
| | | loginUserInfoVO.setVolunteerStatus(state); |
| | | } |
| | | //是否四长四员 |
| | | Integer countFourMember=comActFourMemberDao.selectCount(new QueryWrapper<ComActFourMember>().lambda().eq(ComActFourMember::getUserId,sysUserDO.getUserId())); |
| | | if(countFourMember>0){ |
| | | loginUserInfoVO.setIsFourMember(1); |
| | | } |
| | | // 是否是"管理员"或者 本社区 "社区团队"、"党委成员" |
| | | Integer countTeam = userDao.selectCountTeam(phone, userCommunityId); |
| | |
| | | @Override |
| | | public R listTag() { |
| | | List<String> list = new ArrayList<>(); |
| | | List<ComMngUserTagDO> comMngUserTagDOS = comMngUserTagDAO.selectList(new LambdaQueryWrapper<>()); |
| | | List<ComMngUserTagDO> comMngUserTagDOS = comMngUserTagDAO.selectList(new LambdaQueryWrapper<ComMngUserTagDO>() |
| | | .eq(ComMngUserTagDO::getSysFlag,1)); |
| | | if (!ObjectUtils.isEmpty(comMngUserTagDOS)) { |
| | | list = comMngUserTagDOS.stream().map(comMngUserTagDO -> comMngUserTagDO.getTagName()) |
| | | .collect(Collectors.toList()); |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.panzhihua.service_user.dao.ComActFourMemberDao"> |
| | | |
| | | <resultMap type="com.panzhihua.service_user.model.dos.ComActFourMember" id="ComActFourMemberBaseResultMap"> |
| | | <result property="id" column="id"/> |
| | | <result property="userId" column="user_id"/> |
| | | <result property="position" column="position"/> |
| | | <result property="jurisdiction" column="jurisdiction"/> |
| | | <result property="communityId" column="community_id"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="jurisdictionContent" column="jurisdiction_content"/> |
| | | </resultMap> |
| | | </mapper> |