| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComPbCheckUnitVo; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | |
| | | /** |
| | |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | return this.comPbCheckUnitService.queryByList(comPbCheckUnit); |
| | | } |
| | | |
| | | @ApiOperation(value = "新增报道单位") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComPbCheckUnitDto comPbCheckUnit) { |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | comPbCheckUnit.setCreateAt(new Date()); |
| | | comPbCheckUnit.setCreateBy(this.getUserId()); |
| | | return this.comPbCheckUnitService.insert(comPbCheckUnit); |
| | | } |
| | | } |
| | |
| | | @GetMapping("topic/list") |
| | | public R getNeighborTopicByApp(@RequestParam("communityId") Long communityId |
| | | ,@RequestParam(value = "isZero",defaultValue = "2",required = false) Integer isZero |
| | | ,@RequestParam(value = "belongType",defaultValue = "1",required = false) Integer belongType |
| | | ,@RequestParam(value = "name",defaultValue = "",required = false) String name) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (loginUserInfo != null) { |
| | |
| | | if(isZero == null){ |
| | | isZero = 2; |
| | | } |
| | | return communityService.getNeighborTopicByApp(communityId,isZero,name); |
| | | return communityService.getNeighborTopicByApp(communityId,isZero,name,belongType); |
| | | } |
| | | |
| | | @ApiOperation(value = "用户新增邻里圈话题") |
| | |
| | | import com.panzhihua.common.interfaces.OperLog; |
| | | import com.panzhihua.common.model.dtos.common.PageComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.vos.common.ComPbCheckUnitVo; |
| | | import com.panzhihua.common.model.vos.grid.EventGridCommunityAdminVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.partybuilding.ComPbCheckUnitFeign; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | private CheckService checkService; |
| | | @Resource |
| | | private ComPbCheckUnitFeign pbCheckUnitFeign; |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | public static void main(String[] args) { |
| | | Date date = new Date(); |
| | |
| | | } |
| | | |
| | | PartyBuildingComPbDynVO partyBuildingComPbDynVO = |
| | | JSONObject.parseObject(JSONObject.toJSONString(r.getData()), PartyBuildingComPbDynVO.class); |
| | | JSONObject.parseObject(JSONObject.toJSONString(r.getData()), PartyBuildingComPbDynVO.class); |
| | | if (userId != null) { |
| | | ComPbDynUserVO comPbDynUserVO = new ComPbDynUserVO(); |
| | | comPbDynUserVO.setCreateAt(new Date()); |
| | |
| | | if (R.isOk(r) && activitySignUpDTO.getType().intValue() == 1) { |
| | | R r2 = partyBuildingService.activityinfo(id, userId); |
| | | PartyBuildingActivityVO partyBuildingActivityVO = |
| | | JSONObject.parseObject(JSONObject.toJSONString(r2.getData()), PartyBuildingActivityVO.class); |
| | | JSONObject.parseObject(JSONObject.toJSONString(r2.getData()), PartyBuildingActivityVO.class); |
| | | SysUserNoticeVO sysUserNoticeVO = new SysUserNoticeVO(); |
| | | sysUserNoticeVO.setUserId(userId); |
| | | sysUserNoticeVO.setType(1); |
| | |
| | | sysUserNoticeVO.setBusinessTitle(partyBuildingActivityVO.getName()); |
| | | Date activityTimeBegin = partyBuildingActivityVO.getActivityTimeBegin(); |
| | | sysUserNoticeVO |
| | | .setBusinessContent(String.format("活动将于 %tF %tT 开始,请按时参加", activityTimeBegin, activityTimeBegin)); |
| | | .setBusinessContent(String.format("活动将于 %tF %tT 开始,请按时参加", activityTimeBegin, activityTimeBegin)); |
| | | sysUserNoticeVO.setBusinessId(id); |
| | | sysUserNoticeVO.setStatus(0); |
| | | sysUserNoticeVO.setBusinessStatus(2); |
| | |
| | | @ApiOperation(value = "编辑党员") |
| | | @PutMapping("updatepartybuildingmember") |
| | | public R updatePartyBuildingMember(@RequestBody PartyBuildingMemberVO partyBuildingMemberVO) { |
| | | if(partyBuildingMemberVO.getIsPb()!=null){ |
| | | if (partyBuildingMemberVO.getIsPb() != null) { |
| | | Long id = partyBuildingMemberVO.getId(); |
| | | if(partyBuildingMemberVO.getIsPb()==1){ |
| | | if (partyBuildingMemberVO.getIsPb() == 1) { |
| | | if (null == id || 0 == id) { |
| | | return partyBuildingService.addPartyBuildingMember(partyBuildingMemberVO); |
| | | } |
| | |
| | | @ApiOperation(value = "查询社区下所有党员报到单位", response = ComPbCheckUnitVo.class) |
| | | @PostMapping("/comPbCheckUnit/list") |
| | | public R getPbCheckUnitList(@RequestBody PageComPbCheckUnitDto comPbCheckUnit) { |
| | | if(comPbCheckUnit.getCommunityId() == null){ |
| | | if (comPbCheckUnit.getCommunityId() == null) { |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | } |
| | | return pbCheckUnitFeign.queryByList(comPbCheckUnit); |
| | | } |
| | | |
| | | @OperLog(operModul = "党员管理", operType = 1) |
| | | @ApiOperation(value = "新增党员") |
| | | @PostMapping("addpartybuildingmember") |
| | |
| | | partyBuildingMemberVO.setCommunityId(communityId); |
| | | R r = partyBuildingService.addPartyBuildingMember(partyBuildingMemberVO); |
| | | if (R.isOk(r)) { |
| | | R r1 = userService.updateUserIsPartymember(partyBuildingMemberVO.getIdCard()); |
| | | R r1 = userService.updateUserPartyStatus(this.getUserId()); |
| | | } |
| | | return r; |
| | | } |
| | | |
| | | @OperLog(operModul = "党员管理", operType = 1) |
| | | @ApiOperation(value = "分页查询党员列表",response = PartyBuildingMemberVO.class) |
| | | @PostMapping("/page/member") |
| | | public R pageMember(@RequestBody PartyBuildingMemberVO partyBuildingMemberVO) { |
| | | partyBuildingMemberVO.setCommunityId(this.getCommunityId()); |
| | | return partyBuildingService.getPagePbMember(partyBuildingMemberVO); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询所有社区列表", response = EventGridCommunityAdminVO.class) |
| | | @GetMapping("/community/list") |
| | | public R getCommunityLists() { |
| | | return communityService.getCommunityLists(); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "社区id",hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "党组织名称") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty(value = "党组织logo") |
| | | private String logo; |
| | | } |
| | | |
| | |
| | | |
| | | @ApiModelProperty(value = "社区id",hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "党组织名称") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty(value = "党组织logo") |
| | | private String logo; |
| | | } |
| | | |
| | |
| | | @ApiModelProperty("用户新增邻里圈话题") |
| | | private String topicName; |
| | | |
| | | @ApiModelProperty("使用类型(1.邻里圈 2.问题清单 3.需求清单)") |
| | | private Integer belongType; |
| | | |
| | | /** |
| | | * 使用类型(1.邻里圈 2.问题清单 3.需求清单) |
| | | */ |
| | | public interface BelongType{ |
| | | int LLQ = 1; |
| | | int WTQD = 2; |
| | | int XQQD = 3; |
| | | } |
| | | |
| | | /** |
| | | * 是否需要审核(1.是 2.否) |
| | | */ |
| | |
| | | @ApiModelProperty("话题id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("使用类型(1.邻里圈 2.问题清单 3.需求清单)") |
| | | private Integer belongType; |
| | | |
| | | @ApiModelProperty("话题logo") |
| | | private String logo; |
| | | |
| | | /** |
| | | * 使用类型(1.邻里圈 2.问题清单 3.需求清单) |
| | | */ |
| | | public interface BelongType{ |
| | | int LLQ = 1; |
| | | int WTQD = 2; |
| | | int XQQD = 3; |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty("邻里圈话题名称") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("使用类型(1.邻里圈 2.问题清单 3.需求清单)") |
| | | private Integer belongType; |
| | | |
| | | /** |
| | | * 使用类型(1.邻里圈 2.问题清单 3.需求清单) |
| | | */ |
| | | public interface BelongType{ |
| | | int LLQ = 1; |
| | | int WTQD = 2; |
| | | int XQQD = 3; |
| | | } |
| | | } |
| | |
| | | @ApiModelProperty("关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty("使用类型(1.邻里圈 2.问题清单 3.需求清单)") |
| | | private Integer belongType; |
| | | } |
| | |
| | | @ApiModelProperty("关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty("使用类型(1.邻里圈 2.问题清单 3.需求清单)") |
| | | private Integer belongType; |
| | | |
| | | /** |
| | | * 使用类型(1.邻里圈 2.问题清单 3.需求清单) |
| | | */ |
| | | public interface BelongType{ |
| | | int LLQ = 1; |
| | | int WTQD = 2; |
| | | int XQQD = 3; |
| | | } |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "发布状态(1.启用 2.禁用)") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("使用类型(1.邻里圈 2.问题清单 3.需求清单)") |
| | | private Integer belongType; |
| | | |
| | | /** |
| | | * 使用类型(1.邻里圈 2.问题清单 3.需求清单) |
| | | */ |
| | | public interface BelongType{ |
| | | int LLQ = 1; |
| | | int WTQD = 2; |
| | | int XQQD = 3; |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "社区id",hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty(value = "党组织名称") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty(value = "党组织logo") |
| | | private String logo; |
| | | |
| | | @ApiModelProperty(value = "所属社区名称") |
| | | private String communityName; |
| | | |
| | | @ApiModelProperty(value = "党员人数") |
| | | private Integer count; |
| | | } |
| | |
| | | @ApiModelProperty("发布图片") |
| | | private String releaseImages; |
| | | |
| | | @ApiModelProperty("使用类型(1.邻里圈 2.问题清单 3.需求清单)") |
| | | private Integer belongType; |
| | | |
| | | /** |
| | | * 使用类型(1.邻里圈 2.问题清单 3.需求清单) |
| | | */ |
| | | public interface BelongType{ |
| | | int LLQ = 1; |
| | | int WTQD = 2; |
| | | int XQQD = 3; |
| | | } |
| | | |
| | | @ApiModelProperty(value = "当前登陆人id", hidden = true) |
| | | private Long userId; |
| | | } |
| | |
| | | @ApiModelProperty("点赞数") |
| | | private Integer lastFabulousNum; |
| | | |
| | | @ApiModelProperty("使用类型(1.邻里圈 2.问题清单 3.需求清单)") |
| | | private Integer belongType; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty("热度") |
| | | private Long hotNum; |
| | | |
| | | @ApiModelProperty("社区名称") |
| | | private String communityName; |
| | | } |
| | |
| | | @ApiModelProperty("邻里圈数量") |
| | | private Integer count; |
| | | |
| | | @ApiModelProperty("话题logo") |
| | | private String logo; |
| | | } |
| | |
| | | @ApiModelProperty("驳回原因") |
| | | private String refuseReason; |
| | | |
| | | @ApiModelProperty("使用类型(1.邻里圈 2.问题清单 3.需求清单)") |
| | | private Integer belongType; |
| | | |
| | | /** |
| | | * 使用类型(1.邻里圈 2.问题清单 3.需求清单) |
| | | */ |
| | | public interface BelongType{ |
| | | int LLQ = 1; |
| | | int WTQD = 2; |
| | | int XQQD = 3; |
| | | } |
| | | |
| | | /** |
| | | * 发布状态(1.待审核 2.显示 3.隐藏 4.驳回) |
| | | */ |
| | |
| | | @ApiModelProperty(value = "职能") |
| | | private String function; |
| | | |
| | | @ApiModelProperty(value = "特长类别(1.体育类 2.舞蹈类 3.音乐类 4.美术类 5.其他)") |
| | | @ApiModelProperty(value = "特长类别(1.统计调查 2.法律援助 3.志愿活动 4.尊老爱幼 5.宣讲宣教 6.心理关爱 7.设施维修 8.其他)") |
| | | private Integer specialtyCategory; |
| | | |
| | | @ApiModelProperty(value = "特长描述") |
| | |
| | | |
| | | @ApiModelProperty(value = "活动积分") |
| | | private Integer partyInterval; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数", example = "10") |
| | | private Long pageSize = 10L; |
| | | } |
| | |
| | | * @return 邻里圈话题列表 |
| | | */ |
| | | @GetMapping("/neighbor/getNeighborTopicByApp") |
| | | R getNeighborTopicByApp(@RequestParam("communityId") Long communityId,@RequestParam("isZero") Integer isZero,@RequestParam("name") String name); |
| | | R getNeighborTopicByApp(@RequestParam("communityId") Long communityId,@RequestParam("isZero") Integer isZero,@RequestParam("name") String name,@RequestParam("belongType") Integer belongType); |
| | | |
| | | /** |
| | | * 综治后台-查询社区列表 |
| | |
| | | */ |
| | | @GetMapping("/partybuildIng/checkMember") |
| | | R checkMember(@RequestParam("idCard")String idCard); |
| | | |
| | | /** |
| | | * 小程序分页查询党员列表 |
| | | * @param partyBuildingMemberVO 请求参数 |
| | | * @return 党员列表 |
| | | */ |
| | | @PostMapping("/partybuildIng/getPagePbMember") |
| | | R getPagePbMember(@RequestBody PartyBuildingMemberVO partyBuildingMemberVO); |
| | | } |
| | |
| | | |
| | | /** |
| | | * 新增微信用户 |
| | | * |
| | | * |
| | | * @param openid |
| | | * 微信小程序标志 |
| | | * @param sessionKey |
| | |
| | | |
| | | /** |
| | | * 维护小程序用户基本信息 头像 昵称 性别 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 数据库用户ID |
| | | * @param nickName |
| | |
| | | |
| | | /** |
| | | * 维护微信用户手机号 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 数据库ID |
| | | * @param purePhoneNumber |
| | |
| | | |
| | | /** |
| | | * 获取平台用户 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户ID |
| | | * @return 平台用户信息 |
| | |
| | | |
| | | /** |
| | | * 获取平台用户 |
| | | * |
| | | * |
| | | * @param userName |
| | | * 登录账户+_type |
| | | * @return 平台用户信息 |
| | |
| | | |
| | | /** |
| | | * 获取平台所有权限路径url |
| | | * |
| | | * |
| | | * @return 所有url |
| | | */ |
| | | @PostMapping("/role/getAllMenu") |
| | |
| | | |
| | | /** |
| | | * 查询社区的党委角色 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 党委角色列表 |
| | |
| | | |
| | | /** |
| | | * 修改用户登录密码 |
| | | * |
| | | * |
| | | * @param changePasswordVO |
| | | * 新密码 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 某社区后台人员查询 |
| | | * |
| | | * |
| | | * @param param |
| | | * 名字 |
| | | * @param communityId |
| | |
| | | |
| | | /** |
| | | * 微心愿搜索社区团队人员列表 |
| | | * |
| | | * |
| | | * @param param |
| | | * 请求参数 |
| | | * @param communityId |
| | |
| | | |
| | | /** |
| | | * 分页查询人脸识别 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 查询参数 |
| | | * @return 分页集合 |
| | |
| | | |
| | | /** |
| | | * 编辑人脸采集数据通过、驳回、删除 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 操作信息 |
| | | * @return 操作结果 |
| | |
| | | |
| | | /** |
| | | * 分页查询人口管理 |
| | | * |
| | | * |
| | | * @param userInfoVO |
| | | * 查询参数 |
| | | * @return 分页数据 |
| | |
| | | |
| | | /** |
| | | * 查询所有人员标签 |
| | | * |
| | | * |
| | | * @return 标签集合 |
| | | */ |
| | | @PostMapping("listtag") |
| | |
| | | |
| | | /** |
| | | * 人员详情 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @return 人员详情 |
| | |
| | | |
| | | /** |
| | | * 设置用户标签 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 标签信息 |
| | | * @return 设置结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户志愿者状态 |
| | | * |
| | | * |
| | | * @param phone |
| | | * 志愿者手机号 |
| | | * @param type |
| | |
| | | |
| | | /** |
| | | * 修改用户志愿者状态 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户ID |
| | | * @param type |
| | |
| | | |
| | | /** |
| | | * 用户绑定社区、小区 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 社区小区数据 |
| | | * @return 绑定结果 |
| | |
| | | |
| | | /** |
| | | * 用户实名认证 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 认证数据 |
| | | * @return 认证结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户手机号 |
| | | * |
| | | * |
| | | * @param userPhoneVO |
| | | * 手机号信息 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户信息 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 修改内容 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 家庭成员列表 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 登录用户 |
| | | * @return 成员集合 |
| | |
| | | |
| | | /** |
| | | * 新增家庭成员 |
| | | * |
| | | * |
| | | * @param comMngFamilyInfoVO |
| | | * 家庭成员基本信息 |
| | | * @return 增加结果 |
| | |
| | | |
| | | /** |
| | | * 编辑家庭成员 |
| | | * |
| | | * |
| | | * @param comMngFamilyInfoVO |
| | | * 家庭成员信息 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 新增运营、社区后台账户 |
| | | * |
| | | * |
| | | * @param administratorsUserVO |
| | | * 账户信息 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 编辑运营、社区后台账户 |
| | | * |
| | | * |
| | | * @param administratorsUserVO |
| | | * 编辑账户内容 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 删除后台用户 |
| | | * |
| | | * |
| | | * @param administratorsUserVO |
| | | * 用户主键 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 角色下拉列表 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 对应社区 0 表示运营后台 |
| | | * @return 角色集合 |
| | |
| | | |
| | | /** |
| | | * 分页查询后台用户 |
| | | * |
| | | * |
| | | * @param administratorsUserVO |
| | | * 查询参数 |
| | | * @return 后台用户 |
| | |
| | | |
| | | /** |
| | | * 新增角色 |
| | | * |
| | | * |
| | | * @param roleVO |
| | | * 角色信息 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 删除角色 |
| | | * |
| | | * |
| | | * @param roleVO |
| | | * 角色主键 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 平台菜单列表 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id 0 运营平台 |
| | | * @return 菜单集合 |
| | |
| | | |
| | | /** |
| | | * 设置角色的权限 |
| | | * |
| | | * |
| | | * @param menuRoleVO |
| | | * 用户设置的权限id |
| | | * @return 设置结果 |
| | |
| | | |
| | | /** |
| | | * 保存操作日志 |
| | | * |
| | | * |
| | | * @param operlog |
| | | * 日志内容 |
| | | * @return 保存结果 |
| | |
| | | |
| | | /** |
| | | * 分页展示操作日志 |
| | | * |
| | | * |
| | | * @param sysOperLogVO |
| | | * 分页参数 |
| | | * @return 分页集合 |
| | |
| | | |
| | | /** |
| | | * 用户协议 |
| | | * |
| | | * |
| | | * @return 协议集合 |
| | | */ |
| | | @PostMapping("listagreement") |
| | |
| | | |
| | | /** |
| | | * 编辑用户协议 |
| | | * |
| | | * |
| | | * @param sysUserAgreementVO |
| | | * 编辑内容 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 用户标签 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 标签集合 |
| | |
| | | |
| | | /** |
| | | * 新增删除用户标签 |
| | | * |
| | | * |
| | | * @param systemmanagementConfigVO |
| | | * 操作内容 |
| | | * @return 操作结果 |
| | |
| | | |
| | | /** |
| | | * 分页查询小程序用户 |
| | | * |
| | | * |
| | | * @param pageUserAppletsBackstageDTO |
| | | * 查询参数 |
| | | * @return 分页集合 |
| | |
| | | |
| | | /** |
| | | * 编辑用户状态 |
| | | * |
| | | * |
| | | * @param pageUserAppletsBackstageDTO |
| | | * 启用或者禁用 1 启用 2 禁用 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 调试接口--清除昵称、社区、小区 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 登录用户id |
| | | * @return 清除结果 |
| | |
| | | |
| | | /** |
| | | * 用户协议和隐私政策 |
| | | * |
| | | * |
| | | * @param type |
| | | * 所属app 1居民端app 2网格员端app 3商家端app |
| | | * @return 协议内容 |
| | |
| | | |
| | | /** |
| | | * 意见反馈 |
| | | * |
| | | * |
| | | * @param sysUserFeedbackDTO |
| | | * 反馈内容 |
| | | * @return 反馈结果 |
| | |
| | | |
| | | /** |
| | | * 分页通知列表 |
| | | * |
| | | * |
| | | * @param pageDTO |
| | | * 分页参数 |
| | | * @return 分页结果 |
| | |
| | | |
| | | /** |
| | | * 通知已读 |
| | | * |
| | | * |
| | | * @param noticeReadDTO |
| | | * 通知已读 |
| | | * @return 修改状态 |
| | |
| | | |
| | | /** |
| | | * 分页查询用户意见反馈 |
| | | * |
| | | * |
| | | * @param pageFeedBackDTO |
| | | * 分页查询参数 |
| | | * @return 意见集合 |
| | |
| | | |
| | | /** |
| | | * 未读消息汇总 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 登录用户信息 |
| | | * @return 未读汇总 |
| | |
| | | |
| | | /** |
| | | * 反馈意见详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 反馈主键 |
| | | * @return 反馈详情 |
| | |
| | | |
| | | /** |
| | | * 数据看板 |
| | | * |
| | | * |
| | | * @return 运营后台数据看板 |
| | | */ |
| | | @PostMapping("datakanban") |
| | |
| | | |
| | | /** |
| | | * 用户菜单获取 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 登录用户id |
| | | * @return 用户菜单 |
| | |
| | | |
| | | /** |
| | | * 社区管理后台数据看板 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 看板用户数据 |
| | |
| | | |
| | | /** |
| | | * 定时任务维护用户持续登录时间 |
| | | * |
| | | * |
| | | * @return 维护结果 |
| | | */ |
| | | @PostMapping("timedtaskcontinuouslandingdays") |
| | |
| | | |
| | | /** |
| | | * 新增用户通知 |
| | | * |
| | | * |
| | | * @param sysUserNoticeVO |
| | | * 通知内容 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户的党员状态 |
| | | * |
| | | * |
| | | * @param idCard |
| | | * 身份证号 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户的为非党员状态 |
| | | * |
| | | * |
| | | * @param idCard |
| | | * 身份证号 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 获取角色的权限配置列表 |
| | | * |
| | | * |
| | | * @param roleId |
| | | * 角色id |
| | | * @return 菜单列表 |
| | |
| | | |
| | | /** |
| | | * 获取各种协议 |
| | | * |
| | | * |
| | | * @param type |
| | | * 1居民端app协议 2网格员端app协议 3商家端app协议 4隐私政策 |
| | | * @return 协议内容 |
| | |
| | | |
| | | /** |
| | | * 维护用户最后登录时间 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户主键 |
| | | * @return 维护结果 |
| | |
| | | |
| | | /** |
| | | * 删除意见反馈 |
| | | * |
| | | * |
| | | * @param id |
| | | * 主键 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 批量导入居民用户 |
| | | * |
| | | * |
| | | * @param list |
| | | * 居民用户集合 |
| | | * @param areaName |
| | |
| | | |
| | | /** |
| | | * 校验小区是否存在 |
| | | * |
| | | * |
| | | * @param areaName |
| | | * 小区名字 |
| | | * @return 校验结果 |
| | |
| | | |
| | | /** |
| | | * 社区人员详情包括导入人员 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 人员id |
| | | * @return CommunityUserInfoVO |
| | |
| | | |
| | | /** |
| | | * 用户搜索了就下载搜索的用户否则下载所有用户 |
| | | * |
| | | * |
| | | * @param exportUserDTO |
| | | * 用户搜索内容 |
| | | * @return List<EexcelUserDTO> excel内容 |
| | |
| | | |
| | | /** |
| | | * 通过手机号码查询用户信息 |
| | | * |
| | | * |
| | | * @param phone |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 通过账号查询用户信息 |
| | | * |
| | | * |
| | | * @param account |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 基础数据》居民管理》居民列表 |
| | | * |
| | | * |
| | | * @param pageInputUserDTO |
| | | * 查询参数 |
| | | * @return 分页数据 |
| | |
| | | |
| | | /** |
| | | * 基础数据》居民管理》设置用户标签 |
| | | * |
| | | * |
| | | * @param inputUserTagsDTO |
| | | * 标签信息 |
| | | * @return 设置结果 |
| | |
| | | |
| | | /** |
| | | * 基础数据》居民管理》批量导入居民用户 |
| | | * |
| | | * |
| | | * @param list |
| | | * 居民用户集合 |
| | | * @param areaName |
| | |
| | | |
| | | /** |
| | | * 基础数据》居民管理》 居民详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 人员id |
| | | * @return CommunityUserInfoVO |
| | |
| | | |
| | | /** |
| | | * 基础数据》居民管理》 导出居民信息 |
| | | * |
| | | * |
| | | * @param exportUserDTO |
| | | * 用户搜索内容 |
| | | * @return List<EexcelUserDTO> excel内容 |
| | |
| | | |
| | | /** |
| | | * 基础数据》特殊群体》分页查询 |
| | | * |
| | | * |
| | | * @param pageInputUserDTO |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 删除特殊群体用户 |
| | | * |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 基础数据》特殊群体》分页查询标签列表 |
| | | * |
| | | * |
| | | * @param comMngUserTagDTO |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 新增或修改特殊群体标签 |
| | | * |
| | | * |
| | | * @param comMngTagVO |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 删除特殊群体标签 |
| | | * |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 特殊群体导出 |
| | | * |
| | | * |
| | | * @param exportSpecialUserDTO |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 查询所有人员标签 |
| | | * |
| | | * |
| | | * @return 标签集合 |
| | | */ |
| | | @PostMapping("listtag/getTag") |
| | |
| | | |
| | | /** |
| | | * 添加SysUser信息 |
| | | * |
| | | * |
| | | * @param storeVO |
| | | * sysUser信息 |
| | | * @return 添加sysUser结果 |
| | |
| | | |
| | | /** |
| | | * 修改SysUser信息 |
| | | * |
| | | * |
| | | * @param storeVO |
| | | * sysUser信息 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户小程序首页活动提示 |
| | | * |
| | | * |
| | | * @param userEditTipsDTO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 获取用户电子档案 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 家庭成员信息 |
| | | * @return 结果 |
| | |
| | | |
| | | /** |
| | | * 编辑用户电子档案 |
| | | * |
| | | * |
| | | * @param userArchivesVO |
| | | * 编辑的信息 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 修改app用户密码 |
| | | * |
| | | * |
| | | * @param userInfoAppDTO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 添加网格员 |
| | | * |
| | | * |
| | | * @param eventGridMemberAddDTO |
| | | * 请求参数 |
| | | * @return 结果 |
| | |
| | | |
| | | /** |
| | | * 分页查询网格员 |
| | | * |
| | | * |
| | | * @param memberRelationDTO |
| | | * 请求参数 |
| | | * @return 结果 |
| | |
| | | |
| | | /** |
| | | * 修改网格员信息 |
| | | * |
| | | * |
| | | * @param eventGridMemberAddDTO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 重置网格员密码 |
| | | * |
| | | * |
| | | * @param gridMemberDTO |
| | | * 请求参数 |
| | | * @return 重置结果 |
| | |
| | | |
| | | /** |
| | | * 批量删除网格员 |
| | | * |
| | | * |
| | | * @param Ids |
| | | * 网格员id集合 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 批量修改网格员状态 |
| | | * |
| | | * |
| | | * @param gridMemberEditDTO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 查询社区的收益说明 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 收益说明 |
| | |
| | | |
| | | /** |
| | | * 根据用户id查询用户openid |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @return openid |
| | |
| | | |
| | | /** |
| | | * 查询社区后台工作人员列表 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 社区后台工作人员列表 |
| | |
| | | */ |
| | | @DeleteMapping("/deleteUserCashByPhone") |
| | | R deleteUserCashByPhone(@RequestParam("phone") String phone); |
| | | |
| | | /** |
| | | * 修改用户党员状态 |
| | | * @param userId 用户id |
| | | * @return 修改结果 |
| | | */ |
| | | @PostMapping("/update/user/party/status") |
| | | R updateUserPartyStatus(@RequestParam("userId") Long userId); |
| | | } |
| | |
| | | |
| | | /** |
| | | * 分页查询邻里圈列表 |
| | | * |
| | | * |
| | | * @param neighborCircleAppDTO |
| | | * 请求参数 |
| | | * @return 邻里圈列表 |
| | |
| | | |
| | | /** |
| | | * 用户发布邻里圈审核 |
| | | * |
| | | * |
| | | * @param addNeighborCircleAppDTO |
| | | * 邻里圈请求参数 |
| | | * @return 发布结果 |
| | |
| | | |
| | | /** |
| | | * 查询邻里圈详情 |
| | | * |
| | | * |
| | | * @param neighborCircleAppDTO |
| | | * 请求参数 |
| | | * @return 邻里圈详情 |
| | |
| | | |
| | | /** |
| | | * 管理后台查询邻里圈列表 |
| | | * |
| | | * |
| | | * @param comActNeighborCircleAdminDTO |
| | | * 请求参数 |
| | | * @return 邻里圈列表 |
| | |
| | | |
| | | /** |
| | | * 后台添加邻里圈 |
| | | * |
| | | * |
| | | * @param addNeighborCircleAdminVO |
| | | * 请求参数 |
| | | * @return 邻里圈列表 |
| | |
| | | |
| | | /** |
| | | * 后台修改邻里圈 |
| | | * |
| | | * |
| | | * @param editNeighborCircleAdminVO |
| | | * 请求参数 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 邻里圈_后台删除 待审核状态不可删除,显示、隐藏、已驳回的都可以删除) |
| | | * |
| | | * |
| | | * @param id |
| | | * 邻里圈id |
| | | * @return 邻里圈列表 |
| | |
| | | |
| | | /** |
| | | * 用户查询邻里圈列表 |
| | | * |
| | | * |
| | | * @param neighborCircleAppDTO |
| | | * 请求参数 |
| | | * @return 邻里圈列表 |
| | |
| | | |
| | | /** |
| | | * 邻里圈点赞 |
| | | * |
| | | * |
| | | * @param fabulousAppDTO |
| | | * 请求参数 |
| | | * @return 点赞结果 |
| | |
| | | |
| | | /** |
| | | * 邻里圈转发 |
| | | * |
| | | * |
| | | * @param forwardAppDTO |
| | | * 请求参数 |
| | | * @return 转发结果 |
| | |
| | | |
| | | /** |
| | | * 邻里圈评论 |
| | | * |
| | | * |
| | | * @param commentAppDTO |
| | | * 请求参数 |
| | | * @return 评论结果 |
| | |
| | | |
| | | /** |
| | | * 邻里圈回复 |
| | | * |
| | | * |
| | | * @param replyAppDTO |
| | | * 请求参数 |
| | | * @return 回复结果 |
| | |
| | | |
| | | /** |
| | | * 定时任务更新邻里圈近3天评论数/点赞数/浏览量 |
| | | * |
| | | * |
| | | * @return 执行结果 |
| | | */ |
| | | @PostMapping("timeTaskCircleFlow") |
| | |
| | | |
| | | /** |
| | | * 查看邻里圈基础_详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 邻里圈id |
| | | * @return 邻里圈列表 |
| | |
| | | |
| | | /** |
| | | * 邻里圈的所有评论_分页 |
| | | * |
| | | * |
| | | * @param dto |
| | | * 请求参数 |
| | | * @return 评论列表 |
| | |
| | | |
| | | /** |
| | | * 评论的状态_修改 |
| | | * |
| | | * |
| | | * @param vo |
| | | * 请求参数 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 邻里圈评论_详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 评论id |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 邻里圈评论回复_分页 |
| | | * |
| | | * |
| | | * @param dto |
| | | * 参数 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 邻里圈评论回复_基本详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 参数 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 评论的状态_修改 |
| | | * |
| | | * |
| | | * @param changeStatusReplyVO |
| | | * 参数 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 邻里圈取消点赞 |
| | | * |
| | | * |
| | | * @param fabulousAppDTO |
| | | * 请求参数 |
| | | * @return 取消点赞结果 |
| | |
| | | |
| | | /** |
| | | * 添加邻里圈浏览记录 |
| | | * |
| | | * |
| | | * @param addBrowseAppDTO |
| | | * 请求参数 |
| | | * @return 返回参数 |
| | |
| | | |
| | | /** |
| | | * 分页查询评论下所有回复 |
| | | * |
| | | * |
| | | * @param commentReplyAppDTO |
| | | * 请求参数 |
| | | * @return 回复列表 |
| | |
| | | |
| | | /** |
| | | * 分页查询邻里圈话题列表 |
| | | * |
| | | * |
| | | * @param circleTopicAdminDTO |
| | | * 请求参数 |
| | | * @return 邻里圈话题列表 |
| | |
| | | |
| | | /** |
| | | * 添加邻里圈话题 |
| | | * |
| | | * |
| | | * @param addCircleTopicAdminDTO |
| | | * 请求参数 |
| | | * @return 添加结果 |
| | |
| | | |
| | | /** |
| | | * 编辑邻里圈话题 |
| | | * |
| | | * |
| | | * @param addCircleTopicAdminDTO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 小程序查询邻里圈话题列表 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 邻里圈话题列表 |
| | | */ |
| | | @GetMapping("getNeighborTopicByApp") |
| | | public R getNeighborTopicByApp(@RequestParam("communityId") Long communityId,@RequestParam("isZero") Integer isZero,@RequestParam("name") String name) { |
| | | return comActNeighborCircleTopicService.getNeighborTopicByApp(communityId,isZero,name); |
| | | public R getNeighborTopicByApp(@RequestParam("communityId") Long communityId,@RequestParam("isZero") Integer isZero,@RequestParam("name") String name,@RequestParam("belongType") Integer belongType) { |
| | | return comActNeighborCircleTopicService.getNeighborTopicByApp(communityId,isZero,name,belongType); |
| | | } |
| | | |
| | | /** |
| | |
| | | + ",canc.comment_num,canc.fabulous_num,canc.forward_num,canc.views_num,canc.refuse_reason,su.nick_name as name,su.image_url as headUrl " |
| | | + " from com_act_neighbor_circle as canc " + " left join sys_user as su on su.user_id = canc.release_id " |
| | | + " left join com_act_neighbor_circle_topic as canct on canct.id = canc.topic_id " |
| | | + " where canc.release_id = #{userId} and canc.is_del = 2 and canc.status != 3 order by create_at desc" + " </script>") |
| | | IPage<ComActNeighborCircleAppVO> neighborExamineByApp(Page page, @Param("userId") Long userId); |
| | | + " where canc.release_id = #{userId} and canc.is_del = 2 and canc.belong_type = #{belongType} and canc.status != 3 order by create_at desc" + " </script>") |
| | | IPage<ComActNeighborCircleAppVO> neighborExamineByApp(Page page, @Param("userId") Long userId,@Param("belongType") Integer belongType); |
| | | |
| | | @Select("select reply.id,reply.comment_id,reply.reply_content,reply.fabulous_num,reply.create_at" |
| | | + ",reply.is_release,su.nick_name as userName,su.image_url as userHeadUrl,su1.nick_name as oldUserName" |
| | |
| | | + " where reply.comment_id = #{commentId} and reply.status = 1") |
| | | IPage<ComActNeighborCommentReplyAppVO> neighborCommentReplyByApp(Page page, @Param("commentId") Long commentId); |
| | | |
| | | @Select("SELECT id,release_content as content FROM com_act_neighbor_circle WHERE community_id = ${communityId} and status = 2 ORDER BY create_at DESC limit #{pageSize}") |
| | | @Select("SELECT id,release_content as content FROM com_act_neighbor_circle WHERE community_id = ${communityId} and belong_type = 1 and status = 2 ORDER BY create_at DESC limit #{pageSize}") |
| | | List<CarouselInfoVO> screenNeighborCircle(@Param("communityId") Long communityId, |
| | | @Param("pageSize") Integer pageSize); |
| | | |
| | | @Select(" SELECT COUNT(id) AS totalNum," |
| | | + " (SELECT COUNT(id) FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND status = 2 AND create_at LIKE CONCAT(#{nowDate},'%')) AS currentNum " |
| | | + " (SELECT COUNT(id) FROM com_act_neighbor_circle WHERE community_id = ${communityId} and belong_type = 1 AND status = 2 AND create_at LIKE CONCAT(#{nowDate},'%')) AS currentNum " |
| | | + " FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND status = 2") |
| | | Map<String, Long> countByCommunityId(@Param("communityId") Long communityId, @Param("nowDate") String nowDate); |
| | | |
| | | @Select("SELECT SUM(comment_num) as commentNum,SUM(fabulous_num) as fabulousNum,SUM(forward_num) as forwardNum FROM com_act_neighbor_circle WHERE community_id = ${communityId} and status = 2 ") |
| | | @Select("SELECT SUM(comment_num) as commentNum,SUM(fabulous_num) as fabulousNum,SUM(forward_num) as forwardNum FROM com_act_neighbor_circle WHERE community_id = ${communityId} and belong_type = 1 and status = 2 ") |
| | | Map<String, Object> sumScreenNum(@Param("communityId") Long communityId); |
| | | |
| | | @Select("SELECT release_images FROM com_act_neighbor_circle WHERE community_id = ${communityId} and status = 2 order by create_at desc limit #{pageSize}") |
| | | @Select("SELECT release_images FROM com_act_neighbor_circle WHERE community_id = ${communityId} and belong_type = 1 and status = 2 order by create_at desc limit #{pageSize}") |
| | | List<String> screenNeighborCircleImgs(@Param("communityId") Long communityId, @Param("pageSize") Integer pageSize); |
| | | |
| | | @Select("SELECT COUNT(id) as num,'随手拍' as name FROM com_act_easy_photo WHERE community_id = ${communityId} AND STATUS = 4 " |
| | |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'一起议' as name FROM com_act_discuss WHERE community_id = ${communityId} " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND STATUS = 2 " |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND STATUS = 2 and belong_type = 1" |
| | | + "UNION ALL " |
| | | + "SELECT COUNT( e.id ) AS num,'网格事件' AS name FROM `event` as e left join event_grid_data as egd on egd.id = e.grid_id WHERE egd.grid_community_id = ${communityId} AND e.event_process_status = 2 " |
| | | + "UNION ALL " |
| | |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'一起议' as name FROM com_act_discuss WHERE community_id = ${communityId} " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND STATUS = 1 " |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND STATUS = 1 and belong_type = 1" |
| | | + "UNION ALL " |
| | | + "SELECT COUNT( e.id ) AS num,'网格事件' AS NAME FROM `event` as e left join event_grid_data as egd on egd.id = e.grid_id WHERE egd.grid_community_id = ${communityId} AND e.event_status = 2 and e.event_deal_status in (1,2,3) " |
| | | + "UNION ALL " |
| | |
| | | StatisticsCommVO getNeighborTotalPolylineDate(@Param("communityId") Long communityId, @Param("date") String date); |
| | | |
| | | IPage<ComActNeighborCircleAdminVO> indexNeighborList(@Param("page") Page page, @Param("pageBaseDTO") PageBaseDTO pageBaseDTO); |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * 分页查询邻里圈话题列表 |
| | | * |
| | | * |
| | | * @param circleTopicAdminDTO |
| | | * 请求参数 |
| | | * @return 邻里圈话题列表 |
| | |
| | | |
| | | /** |
| | | * 小程序查询邻里圈话题列表 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 邻里圈话题列表 |
| | | */ |
| | | List<ComActNeighborCircleTopicAppVO> getNeighborTopicByApp(@Param("communityId") Long communityId,@Param("isZero") Integer isZero,@Param("name") String name); |
| | | List<ComActNeighborCircleTopicAppVO> getNeighborTopicByApp(@Param("communityId") Long communityId,@Param("isZero") Integer isZero,@Param("name") String name,@Param("belongType") Integer belongType); |
| | | |
| | | /** |
| | | * 添加邻里圈话题热度 |
| | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @auther lyq |
| | | * @author lyq |
| | | * @create 2021-04-28 09:20:49 |
| | | * @describe 邻里圈表实体类 |
| | | */ |
| | |
| | | */ |
| | | private Integer isDel; |
| | | |
| | | /** |
| | | * 使用类型(1.邻里圈 2.问题清单 3.需求清单) |
| | | */ |
| | | private Integer belongType; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "ComActNeighborCircleDO{" + "id=" + id + ", releaseId=" + releaseId + ", releasePhone=" + releasePhone |
| | |
| | | int yes = 1; |
| | | int no = 2; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 使用类型(1.邻里圈 2.问题清单 3.需求清单) |
| | | */ |
| | | public interface BelongType{ |
| | | int LLQ = 1; |
| | | int WTQD = 2; |
| | | int XQQD = 3; |
| | | } |
| | | } |
| | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @auther lyq |
| | | * @author lyq |
| | | * @create 2021-07-06 15:04:37 |
| | | * @describe 邻里圈话题表实体类 |
| | | */ |
| | |
| | | private Integer count; |
| | | |
| | | /** |
| | | * 使用类型(1.邻里圈 2.问题清单 3.需求清单) |
| | | */ |
| | | private Integer belongType; |
| | | |
| | | /** |
| | | * 话题logo |
| | | */ |
| | | private String logo; |
| | | |
| | | /** |
| | | * 状态(1.启用 2.禁用) |
| | | */ |
| | | public interface status{ |
| | |
| | | return "ComActNeighborCircleTopicDO{" + "id=" + id + ", name=" + name + ", status=" + status + ", createAt=" |
| | | + createAt + ", createBy=" + createBy + "}"; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 使用类型(1.邻里圈 2.问题清单 3.需求清单) |
| | | */ |
| | | public interface BelongType{ |
| | | int LLQ = 1; |
| | | int WTQD = 2; |
| | | int XQQD = 3; |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * 分页查询邻里圈话题列表 |
| | | * |
| | | * |
| | | * @param circleTopicAdminDTO |
| | | * 请求参数 |
| | | * @return 邻里圈话题列表 |
| | |
| | | |
| | | /** |
| | | * 添加邻里圈话题 |
| | | * |
| | | * |
| | | * @param addCircleTopicAdminDTO |
| | | * 请求参数 |
| | | * @return 添加结果 |
| | |
| | | |
| | | /** |
| | | * 编辑邻里圈话题 |
| | | * |
| | | * |
| | | * @param addCircleTopicAdminDTO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 小程序查询邻里圈话题列表 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 邻里圈话题列表 |
| | | */ |
| | | R getNeighborTopicByApp(Long communityId,Integer isZero,String name); |
| | | R getNeighborTopicByApp(Long communityId,Integer isZero,String name,Integer belongType); |
| | | |
| | | /** |
| | | * 小程序-用户新增话题 |
| | |
| | | comActNeighborCircleDO.setLastCommentNum(0); |
| | | comActNeighborCircleDO.setLastFabulousNum(0); |
| | | comActNeighborCircleDO.setLastViewsNum(0); |
| | | comActNeighborCircleDO.setBelongType(addVO.getBelongType()); |
| | | this.baseMapper.insert(comActNeighborCircleDO); |
| | | return R.ok(); |
| | | } |
| | |
| | | public R neighborExamineByApp(ComActNeighborCircleAppDTO neighborCircleAppDTO) { |
| | | IPage<ComActNeighborCircleAppVO> neighborCircleIPage = this.baseMapper.neighborExamineByApp( |
| | | new Page<>(neighborCircleAppDTO.getPageNum(), neighborCircleAppDTO.getPageSize()), |
| | | neighborCircleAppDTO.getUserId()); |
| | | neighborCircleAppDTO.getUserId(),neighborCircleAppDTO.getBelongType()); |
| | | if (!neighborCircleIPage.getRecords().isEmpty()) { |
| | | for (ComActNeighborCircleAppVO circleAppVO : neighborCircleIPage.getRecords()) { |
| | | // 查询点赞信息 |
| | |
| | | * @return 邻里圈话题列表 |
| | | */ |
| | | @Override |
| | | public R getNeighborTopicByApp(Long communityId,Integer isZero,String name){ |
| | | return R.ok(this.baseMapper.getNeighborTopicByApp(communityId,isZero,name)); |
| | | public R getNeighborTopicByApp(Long communityId,Integer isZero,String name,Integer belongType){ |
| | | return R.ok(this.baseMapper.getNeighborTopicByApp(communityId,isZero,name,belongType)); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R addNeighborTopicByApp(AddNeighborCircleTopicAppDTO circleTopicAppDTO){ |
| | | ComActNeighborCircleTopicDO circleTopicDO = this.baseMapper.selectOne(new QueryWrapper<ComActNeighborCircleTopicDO>() |
| | | .lambda().eq(ComActNeighborCircleTopicDO::getCommunityId,circleTopicAppDTO.getCommunityId()) |
| | | .eq(ComActNeighborCircleTopicDO::getName,circleTopicAppDTO.getName())); |
| | | .eq(ComActNeighborCircleTopicDO::getName,circleTopicAppDTO.getName()) |
| | | .eq(ComActNeighborCircleTopicDO::getBelongType,circleTopicAppDTO.getBelongType())); |
| | | if(circleTopicDO == null){ |
| | | circleTopicDO = new ComActNeighborCircleTopicDO(); |
| | | circleTopicDO.setCommunityId(circleTopicAppDTO.getCommunityId()); |
| | |
| | | circleTopicDO.setCount(0); |
| | | circleTopicDO.setHotNum(0L); |
| | | circleTopicDO.setStatus(ComActNeighborCircleTopicDO.status.yes); |
| | | circleTopicDO.setBelongType(circleTopicAppDTO.getBelongType()); |
| | | this.baseMapper.insert(circleTopicDO); |
| | | } |
| | | return R.ok(circleTopicDO); |
| | |
| | | canc.hot_num, |
| | | su.nick_name as name, |
| | | su.community_id, |
| | | ca.`name` as communityName, |
| | | canct.name as topicName, |
| | | su.image_url as headUrl |
| | | FROM |
| | | com_act_neighbor_circle AS canc |
| | | left join sys_user as su on su.user_id = canc.release_id |
| | | left join com_act_neighbor_circle_topic as canct on canct.id = canc.topic_id |
| | | left join com_act as ca on ca.community_id = canc.community_id |
| | | where canc.status = 2 and is_del = 2 and canc.community_id = ${neighborCircleAppDTO.communityId} |
| | | <if test='neighborCircleAppDTO.topicId != null '> |
| | | and canc.topic_id = #{neighborCircleAppDTO.topicId} |
| | | </if> |
| | | <if test='neighborCircleAppDTO.belongType != null '> |
| | | and canc.belong_type = #{neighborCircleAppDTO.belongType} |
| | | </if> |
| | | <if test='neighborCircleAppDTO.keyWord != null and neighborCircleAppDTO.keyWord != ""'> |
| | | and (canct.`name` like concat (#{neighborCircleAppDTO.keyWord},'%') or |
| | | su.nick_name like concat (#{neighborCircleAppDTO.keyWord},'%') or |
| | | canc.release_content like concat (#{neighborCircleAppDTO.keyWord},'%')) |
| | | and (canct.`name` like concat ('%',#{neighborCircleAppDTO.keyWord},'%') or |
| | | su.nick_name like concat ('%',#{neighborCircleAppDTO.keyWord},'%') or |
| | | canc.release_content like concat ('%',#{neighborCircleAppDTO.keyWord},'%')) |
| | | </if> |
| | | order by canc.create_at desc |
| | | </select> |
| | |
| | | <if test='neighborCircleAdminDTO.status != null '> |
| | | and nc.status = #{neighborCircleAdminDTO.status} |
| | | </if> |
| | | <if test='neighborCircleAdminDTO.belongType != null '> |
| | | and nc.belong_type = #{neighborCircleAdminDTO.belongType} |
| | | </if> |
| | | </where> |
| | | order by |
| | | case when nc.`status`=1 then 0 else 1 end, |
| | |
| | | </select> |
| | | <select id="getAllImages" resultType="java.lang.String"> |
| | | SELECT release_images FROM com_act_neighbor_circle |
| | | WHERE community_id = ${communityId} AND `status` = 2 AND release_images IS NOT NULL AND release_images != '' |
| | | WHERE community_id = ${communityId} AND `status` = 2 and belong_type = 1 AND release_images IS NOT NULL AND release_images != '' |
| | | ORDER BY create_at DESC limit #{pageSize} |
| | | </select> |
| | | <select id="getContents" resultType="java.lang.String"> |
| | | SELECT release_content FROM com_act_neighbor_circle |
| | | WHERE community_id = ${communityId} AND `status` = 2 AND release_content IS NOT NULL AND release_content != '' |
| | | WHERE community_id = ${communityId} AND `status` = 2 and belong_type = 1 AND release_content IS NOT NULL AND release_content != '' |
| | | ORDER BY create_at DESC limit #{pageSize} |
| | | </select> |
| | | <select id="getIndexNeighborBaseData" |
| | |
| | | canct.`name`, |
| | | canct.`status`, |
| | | canct.create_at, |
| | | canct.logo, |
| | | ( SELECT count( id ) FROM com_act_neighbor_circle WHERE is_del = 2 AND `status` = 2 and topic_id = canct.id) AS `count`, |
| | | su.`name` as createBy |
| | | FROM |
| | |
| | | </select> |
| | | |
| | | <select id="getNeighborTopicByApp" resultType="com.panzhihua.common.model.vos.neighbor.ComActNeighborCircleTopicAppVO"> |
| | | SELECT canct.id, canct.`name`, canct.hot_num,( SELECT count( id ) FROM com_act_neighbor_circle WHERE is_del = 2 AND `status` = 2 and topic_id = canct.id) AS `count` |
| | | from com_act_neighbor_circle_topic as canct where canct.`status` = 1 and canct.community_id = ${communityId} |
| | | SELECT canct.id, canct.`name`,`logo`, canct.hot_num,( SELECT count( id ) FROM com_act_neighbor_circle WHERE is_del = 2 AND `status` = 2 and topic_id = canct.id) AS `count` |
| | | from com_act_neighbor_circle_topic as canct where canct.`status` = 1 and canct.community_id = ${communityId} and canct.belong_type = #{belongType} |
| | | <if test="isZero != null and isZero == 1"> |
| | | and `count` > 0 |
| | | </if> |
| | |
| | | public R checkMember(@RequestParam("idCard")String idCard){ |
| | | return comPbMemberService.checkMember(idCard); |
| | | } |
| | | |
| | | @PostMapping("/getPagePbMember") |
| | | public R getPagePbMember(@RequestBody PartyBuildingMemberVO partyBuildingMemberVO){ |
| | | return comPbMemberService.getPagePbMember(partyBuildingMemberVO); |
| | | } |
| | | } |
| | |
| | | * @return 党员导出数据 |
| | | */ |
| | | List<ComDataStatisticsMemberExcelVo> exportDataStatisticsMember(@Param("dto") PageComDataStatisticsMemberDto statisticsMemberDto); |
| | | |
| | | /** |
| | | * 根据报到单位id查询党员列表 |
| | | * @param page 分页参数 |
| | | * @param partyBuildingMemberVO 请求参数 |
| | | * @return 党员列表 |
| | | */ |
| | | IPage<PartyBuildingMemberVO> getPbMemberByApplets(Page page,@Param("dto") PartyBuildingMemberVO partyBuildingMemberVO); |
| | | } |
| | |
| | | */ |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 党组织名称 |
| | | */ |
| | | private String orgName; |
| | | |
| | | /** |
| | | * 党组织logo |
| | | */ |
| | | private String logo; |
| | | } |
| | | |
| | |
| | | private String positionTwo; |
| | | |
| | | /** |
| | | * 党组织名字 |
| | | */ |
| | | private String orgName; |
| | | |
| | | /** |
| | | * 党员审查结果 0待审核 1 审核通过 3审核失败 |
| | | */ |
| | | public interface AuditResult { |
| | |
| | | public interface ComPbMemberService extends IService<ComPbMemberDO> { |
| | | /** |
| | | * 新增党员 |
| | | * |
| | | * |
| | | * @param partyBuildingMemberVO |
| | | * 党员基本信息 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 批量新增党员 |
| | | * |
| | | * |
| | | * @param list |
| | | * 党员集合 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 分页党员 |
| | | * |
| | | * |
| | | * @param pagePartyOrganizationVO |
| | | * 查询信息 |
| | | * @return 分页数据 |
| | |
| | | |
| | | /** |
| | | * 编辑党员信息 新增字段均可编辑 |
| | | * |
| | | * |
| | | * @param partyBuildingMemberVO |
| | | * 编辑字段 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 查询指定社区的所有党员 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 党员列表 |
| | |
| | | |
| | | /** |
| | | * 新增党委 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 新增信息 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 编辑党委 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 编辑信息 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 删除党委 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 删除id |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 分页社区党委查询 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 查询参数 |
| | | * @return 分页集合 |
| | |
| | | |
| | | /** |
| | | * 新建党建动态 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 动态内容 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 编辑动态 |
| | | * |
| | | * |
| | | * @param partyCommitteeVO |
| | | * 编辑内容 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 动态详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 动态主键 |
| | | * @return 详情 |
| | |
| | | |
| | | /** |
| | | * 分页查询党员动态 |
| | | * |
| | | * |
| | | * @param partyBuildingComPbDynVO |
| | | * 查询参数 |
| | | * @return 分页数据 |
| | |
| | | |
| | | /** |
| | | * 删除动态 |
| | | * |
| | | * |
| | | * @param id |
| | | * 动态主键 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 增加阅读记录 |
| | | * |
| | | * |
| | | * @param comPbDynUserVO |
| | | * 阅读记录 |
| | | * @return 增加结果 |
| | |
| | | |
| | | /** |
| | | * 删除党员 |
| | | * |
| | | * |
| | | * @param id |
| | | * 党员主键 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 定时任务刷新党建动态发布状态 |
| | | * |
| | | * |
| | | * @return 刷新数据数量 |
| | | */ |
| | | R timedTaskPartyBuildingStatus(); |
| | | |
| | | /** |
| | | * 分页查询认证党员 |
| | | * |
| | | * |
| | | * @param pagePartyBuildingMemberVO |
| | | * 查询参数 |
| | | * @return 分页数据 |
| | |
| | | |
| | | /** |
| | | * 审核党员认证信息 |
| | | * |
| | | * |
| | | * @param partyBuildingMemberVO |
| | | * 编辑字段 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 导出党员信息 |
| | | * |
| | | * |
| | | * @param organizationVO |
| | | * 请求参数 |
| | | * @return 党员信息列表 |
| | |
| | | * @return |
| | | */ |
| | | R checkMember(String idCard); |
| | | |
| | | R getPagePbMember(PartyBuildingMemberVO partyBuildingMemberVO); |
| | | } |
| | |
| | | package com.panzhihua.service_dangjian.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.google.common.collect.Lists; |
| | | import com.panzhihua.common.enums.ComPbCheckUnitTypeEnum; |
| | | import com.panzhihua.common.model.vos.common.ComPbCheckUnitVo; |
| | | import com.panzhihua.common.model.vos.partybuilding.PartyBuildingMemberVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitErrorExcelVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitExcelVO; |
| | | import com.panzhihua.service_dangjian.dao.ComPbMemberDAO; |
| | |
| | | List<ComPbMemberDO> list=comPbMemberDAO.selectList(new QueryWrapper<ComPbMemberDO>().lambda().eq(ComPbMemberDO::getIdCard,idCard)); |
| | | return R.ok(CollectionUtils.isEmpty(list)); |
| | | } |
| | | |
| | | @Override |
| | | public R getPagePbMember(PartyBuildingMemberVO dto) { |
| | | return R.ok(comPbMemberDAO.getPbMemberByApplets(new Page(dto.getPageNum(),dto.getPageSize()),dto)); |
| | | } |
| | | } |
| | |
| | | <!--查询单个--> |
| | | <select id="queryById" resultType="com.panzhihua.common.model.vos.common.ComPbCheckUnitVo"> |
| | | select |
| | | id, name, type, contacts, phone, create_at, create_by, update_at, update_by, community_id |
| | | from com_pb_check_unit |
| | | where id = #{id} |
| | | cpcu.id, cpcu.`name`, cpcu.`type`, cpcu.contacts, cpcu.phone, cpcu.create_at, cpcu.create_by, cpcu.update_at, cpcu.update_by |
| | | , cpcu.community_id, cpcu.org_name, ca.`name` as communityName, cpcu.`logo` |
| | | ,(select count(id) from com_pb_member where audit_result = 1 and check_unit_id = cpcu.id) as count |
| | | from com_pb_check_unit as cpcu |
| | | left join com_act as ca on ca.community_id = cpcu.community_id |
| | | where cpcu.id = #{id} |
| | | </select> |
| | | |
| | | <!--查询指定行数据--> |
| | | <select id="queryAllByLimit" resultType="com.panzhihua.common.model.vos.common.ComPbCheckUnitVo"> |
| | | select |
| | | id, name, type, contacts, phone, create_at, create_by, update_at, update_by, community_id |
| | | from com_pb_check_unit |
| | | cpcu.id, cpcu.`name`, cpcu.`type`, cpcu.contacts, cpcu.phone, cpcu.create_at, cpcu.create_by, cpcu.update_at, cpcu.update_by |
| | | , cpcu.community_id, cpcu.org_name, ca.`name` as communityName, cpcu.`logo` |
| | | from com_pb_check_unit as cpcu |
| | | left join com_act as ca on ca.community_id = cpcu.community_id |
| | | <where> |
| | | <if test="dto.type != null"> |
| | | and type = #{dto.type} |
| | | and cpcu.`type` = #{dto.type} |
| | | </if> |
| | | <if test="dto.communityId != null"> |
| | | and community_id = #{dto.communityId} |
| | | and cpcu.community_id = #{dto.communityId} |
| | | </if> |
| | | <if test="dto.keyWord != null and dto.keyWord != ''"> |
| | | and (`name` like concat(#{dto.keyWord},'%') or |
| | | `contacts` like concat(#{dto.keyWord},'%') or phone like concat(#{dto.keyWord},'%')) |
| | | and (cpcu.`name` like concat(#{dto.keyWord},'%') or |
| | | cpcu.`contacts` like concat(#{dto.keyWord},'%') or cpcu.phone like concat(#{dto.keyWord},'%')) |
| | | </if> |
| | | </where> |
| | | order by create_at desc |
| | | order by cpcu.create_at desc |
| | | </select> |
| | | |
| | | <!--查询所有数据--> |
| | | <select id="queryAllByList" resultType="com.panzhihua.common.model.vos.common.ComPbCheckUnitVo"> |
| | | select |
| | | id, name, type, contacts, phone, create_at, create_by, update_at, update_by |
| | | from com_pb_check_unit |
| | | cpcu.id, cpcu.`name`, cpcu.`type`, cpcu.contacts, cpcu.phone, cpcu.create_at, cpcu.create_by, cpcu.update_at, cpcu.update_by |
| | | , cpcu.community_id, cpcu.org_name, ca.`name` as communityName, cpcu.`logo` |
| | | from com_pb_check_unit as cpcu |
| | | left join com_act as ca on ca.community_id = cpcu.community_id |
| | | <where> |
| | | <if test="dto.id != null"> |
| | | and id = #{dto.id} |
| | | and cpcu.id = #{dto.id} |
| | | </if> |
| | | <if test="dto.name != null and dto.name != ''"> |
| | | and name = #{dto.name} |
| | | and cpcu.`name` = #{dto.name} |
| | | </if> |
| | | <if test="dto.type != null"> |
| | | and type = #{dto.type} |
| | | and cpcu.`type` = #{dto.type} |
| | | </if> |
| | | <if test="dto.contacts != null and dto.contacts != ''"> |
| | | and contacts = #{dto.contacts} |
| | | and cpcu.contacts = #{dto.contacts} |
| | | </if> |
| | | <if test="dto.phone != null and dto.phone != ''"> |
| | | and phone = #{dto.phone} |
| | | and cpcu.phone = #{dto.phone} |
| | | </if> |
| | | <if test="dto.communityId != null"> |
| | | and community_id = #{dto.communityId} |
| | | and cpcu.community_id = #{dto.communityId} |
| | | </if> |
| | | </where> |
| | | order by create_at desc |
| | | order by cpcu.create_at desc |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | </where> |
| | | order by cpm.create_at desc |
| | | </select> |
| | | |
| | | <select id="getPbMemberByApplets" resultType="com.panzhihua.common.model.vos.partybuilding.PartyBuildingMemberVO"> |
| | | select |
| | | m.id, m.org_id, m.name, m.id_card, m.photo_path, m.join_time, m.employment_time, m.audit_result, m.create_at, m.update_at, |
| | | m.community_id, u.user_id, m.refuse_reason, m.phone, m.type, m.position, m.check_unit_id, m.function, m.specialty_category, |
| | | m.specialty_name, m.position_two, m.org_Name,cpcu.name as checkUnitName,t2.partyTime,t2.partyInterval, |
| | | TIMESTAMPDIFF( |
| | | YEAR, |
| | | m.employment_time, |
| | | DATE_FORMAT( NOW(), '%Y-%m-%d' )) as partyAge |
| | | from com_pb_member as m |
| | | LEFT JOIN sys_user u ON m.id_card = u.id_card and u.type = 1 |
| | | LEFT JOIN com_pb_check_unit as cpcu ON m.check_unit_id = cpcu.id |
| | | LEFT JOIN (select t1.user_id,sum(t.duration) as partyTime,sum(t.reward_integral) as partyInterval from com_act_activity t LEFT JOIN com_act_act_regist t1 on t.id = t1.activity_id where t.type = 3 |
| | | GROUP BY t1.user_id ) t2 on u.user_id = t2.user_id |
| | | where m.audit_result = 1 |
| | | <if test="dto.checkUnitId != null"> |
| | | and m.check_unit_id = #{dto.checkUnitId} |
| | | </if> |
| | | <if test="dto.specialtyCategory != null"> |
| | | and m.specialty_category = #{dto.specialtyCategory} |
| | | </if> |
| | | <if test="dto.name != null"> |
| | | and m.name like concat('%',#{dto.name},'%') |
| | | </if> |
| | | order by m.create_at desc |
| | | </select> |
| | | </mapper> |
| | | |
| | |
| | | |
| | | /** |
| | | * 微心愿搜索社区团队人员列表 |
| | | * |
| | | * |
| | | * @param param |
| | | * 请求参数 |
| | | * @param communityId |
| | |
| | | |
| | | /** |
| | | * 修改用户为非党员状态 |
| | | * |
| | | * |
| | | * @param idCard |
| | | * 身份证号 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 修改app用户密码 |
| | | * |
| | | * |
| | | * @param userInfoAppDTO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 添加网格员 |
| | | * |
| | | * |
| | | * @param eventGridMemberAddDTO |
| | | * 请求参数 |
| | | * @return 结果 |
| | |
| | | |
| | | /** |
| | | * 网格员管理 |
| | | * |
| | | * |
| | | * @param memberRelationDTO |
| | | * 请求参数 |
| | | * @return 网格员列表 |
| | |
| | | |
| | | /** |
| | | * 修改网格员信息 |
| | | * |
| | | * |
| | | * @param gridMemberDTO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 重置网格员密码 |
| | | * |
| | | * |
| | | * @param gridMemberDTO |
| | | * 请求参数 |
| | | * @return 重置结果 |
| | |
| | | |
| | | /** |
| | | * 批量删除网格员 |
| | | * |
| | | * |
| | | * @param Ids |
| | | * 网格员id集合 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 查询社区的收益说明 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 收益说明 |
| | |
| | | |
| | | /** |
| | | * 根据用户id查询用户openid |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @return openid |
| | |
| | | |
| | | /** |
| | | * 查询社区后台工作人员列表 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 社区后台工作人员列表 |
| | |
| | | return userService.deleteUserCashByPhone(phone); |
| | | } |
| | | |
| | | @PostMapping("/update/user/party/status") |
| | | public R updateUserPartyStatus(@RequestParam("userId") Long userId) { |
| | | return userService.updateUserPartyStatus(userId); |
| | | } |
| | | |
| | | } |
| | |
| | | public interface UserService { |
| | | /** |
| | | * 小程序微信用户信息更新 |
| | | * |
| | | * |
| | | * @param openid |
| | | * 小程序唯一ID |
| | | * @param sessionKey |
| | |
| | | |
| | | /** |
| | | * 维护小程序用户基本信息 头像 昵称 性别 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 数据库用户ID |
| | | * @param nickName |
| | |
| | | |
| | | /** |
| | | * 维护微信用户手机号 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 数据库ID |
| | | * @param purePhoneNumber |
| | |
| | | |
| | | /** |
| | | * 认证中心获取平台用户信息 |
| | | * |
| | | * |
| | | * @return 用户基本信息、角色 |
| | | * @param name |
| | | * 登录账户 |
| | |
| | | |
| | | /** |
| | | * 三端获取登录用户信息 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户ID |
| | | * @return 用户基本信息、角色 |
| | |
| | | |
| | | /** |
| | | * 修改用户登录密码 |
| | | * |
| | | * |
| | | * @param changePasswordVO |
| | | * 新密码 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 某社区后台人员查询 |
| | | * |
| | | * |
| | | * @param param |
| | | * 名字 |
| | | * @param communityId |
| | |
| | | |
| | | /** |
| | | * 微心愿搜索社区团队人员列表 |
| | | * |
| | | * |
| | | * @param param |
| | | * 请求参数 |
| | | * @param communityId |
| | |
| | | |
| | | /** |
| | | * 分页查询人脸识别 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 查询参数 |
| | | * @return 分页集合 |
| | |
| | | |
| | | /** |
| | | * 编辑人脸采集数据通过、驳回、删除 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 操作信息 |
| | | * @return 操作结果 |
| | |
| | | |
| | | /** |
| | | * 分页查询人口管理 |
| | | * |
| | | * |
| | | * @param userInfoVO |
| | | * 查询参数 |
| | | * @return 分页数据 |
| | |
| | | |
| | | /** |
| | | * 查询所有人员标签 |
| | | * |
| | | * |
| | | * @return 标签集合 |
| | | */ |
| | | R listTag(); |
| | | |
| | | /** |
| | | * 人员详情 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @return 人员详情 |
| | |
| | | |
| | | /** |
| | | * 设置用户标签 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 标签信息 |
| | | * @return 设置结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户志愿者状态 |
| | | * |
| | | * |
| | | * @param phone |
| | | * 志愿者手机号 |
| | | * @param type |
| | |
| | | |
| | | /** |
| | | * 修改用户志愿者状态 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户ID |
| | | * @param type |
| | |
| | | |
| | | /** |
| | | * 用户绑定社区、小区 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 社区小区数据 |
| | | * @return 绑定结果 |
| | |
| | | |
| | | /** |
| | | * 用户实名认证 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 认证数据 |
| | | * @return 认证结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户手机号 |
| | | * |
| | | * |
| | | * @param userPhoneVO |
| | | * 手机号信息 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户信息 |
| | | * |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 修改内容 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 新增运营、社区后台账户 |
| | | * |
| | | * |
| | | * @param administratorsUserVO |
| | | * 账户信息 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 编辑运营、社区后台账户 |
| | | * |
| | | * |
| | | * @param administratorsUserVO |
| | | * 编辑账户内容 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 删除后台用户 |
| | | * |
| | | * |
| | | * @param administratorsUserVO |
| | | * 用户主键 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 分页查询后台用户 |
| | | * |
| | | * |
| | | * @param administratorsUserVO |
| | | * 查询参数 |
| | | * @return 后台用户 |
| | |
| | | |
| | | /** |
| | | * 保存操作日志 |
| | | * |
| | | * |
| | | * @param operlog |
| | | * 日志内容 |
| | | * @return 保存结果 |
| | |
| | | |
| | | /** |
| | | * 分页展示操作日志 |
| | | * |
| | | * |
| | | * @param sysOperLogVO |
| | | * 分页参数 |
| | | * @return 分页集合 |
| | |
| | | |
| | | /** |
| | | * 用户协议 |
| | | * |
| | | * |
| | | * @return 协议集合 |
| | | */ |
| | | R listAgreement(Long communityId); |
| | | |
| | | /** |
| | | * 编辑用户协议 |
| | | * |
| | | * |
| | | * @param sysUserAgreementVO |
| | | * 编辑内容 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 用户标签 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 标签集合 |
| | |
| | | |
| | | /** |
| | | * 新增删除用户标签 |
| | | * |
| | | * |
| | | * @param systemmanagementConfigVO |
| | | * 操作内容 |
| | | * @return 操作结果 |
| | |
| | | |
| | | /** |
| | | * 分页查询小程序用户 |
| | | * |
| | | * |
| | | * @param pageUserAppletsBackstageDTO |
| | | * 查询参数 |
| | | * @return 分页集合 |
| | |
| | | |
| | | /** |
| | | * 编辑用户状态 |
| | | * |
| | | * |
| | | * @param pageUserAppletsBackstageDTO |
| | | * 启用或者禁用 1 启用 2 禁用 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 调试接口--清除昵称、社区、小区 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 登录用户id |
| | | * @return 清除结果 |
| | |
| | | |
| | | /** |
| | | * 用户协议和隐私政策 |
| | | * |
| | | * |
| | | * @param type |
| | | * 所属app 1居民端app 2网格员端app 3商家端app |
| | | * @return 协议内容 |
| | |
| | | |
| | | /** |
| | | * 意见反馈 |
| | | * |
| | | * |
| | | * @param sysUserFeedbackDTO |
| | | * 反馈内容 |
| | | * @return 反馈结果 |
| | |
| | | |
| | | /** |
| | | * 分页通知列表 |
| | | * |
| | | * |
| | | * @param pageDTO |
| | | * 分页参数 |
| | | * @return 分页结果 |
| | |
| | | |
| | | /** |
| | | * 通知已读 |
| | | * |
| | | * |
| | | * @param noticeReadDTO |
| | | * 通知已读 |
| | | * @return 修改状态 |
| | |
| | | |
| | | /** |
| | | * 分页查询用户意见反馈 |
| | | * |
| | | * |
| | | * @param pageFeedBackDTO |
| | | * 分页查询参数 |
| | | * @return 意见集合 |
| | |
| | | |
| | | /** |
| | | * 未读消息汇总 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 登录用户信息 |
| | | * @return 未读汇总 |
| | |
| | | |
| | | /** |
| | | * 反馈意见详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 反馈主键 |
| | | * @return 反馈详情 |
| | |
| | | |
| | | /** |
| | | * 运营小程序后台数据看板 |
| | | * |
| | | * |
| | | * @return 展示数据 |
| | | */ |
| | | R dataKanban(String areaCode); |
| | | |
| | | /** |
| | | * 社区管理后台数据看板 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 看板用户数据 |
| | |
| | | |
| | | /** |
| | | * 定时任务维护用户持续登录时间 |
| | | * |
| | | * |
| | | * @return 维护结果 |
| | | */ |
| | | R timedTaskContinuousLandingDays(); |
| | | |
| | | /** |
| | | * 新增用户通知 |
| | | * |
| | | * |
| | | * @param sysUserNoticeVO |
| | | * 通知内容 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户的党员状态 |
| | | * |
| | | * |
| | | * @param idCard |
| | | * 身份证号 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户为非党员状态 |
| | | * |
| | | * |
| | | * @param idCard |
| | | * 身份证号 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 获取各种协议 |
| | | * |
| | | * |
| | | * @param type |
| | | * 1居民端app协议 2网格员端app协议 3商家端app协议 4隐私政策 |
| | | * @return 协议内容 |
| | |
| | | |
| | | /** |
| | | * 维护用户最后登录时间 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户主键 |
| | | * @return 维护结果 |
| | |
| | | |
| | | /** |
| | | * 删除意见反馈 |
| | | * |
| | | * |
| | | * @param id |
| | | * 主键 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 校验小区是否存在 |
| | | * |
| | | * |
| | | * @param areaName |
| | | * 小区名字 |
| | | * @return 校验结果 |
| | |
| | | |
| | | /** |
| | | * 社区人员详情包括导入人员 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 人员id |
| | | * @return CommunityUserInfoVO |
| | |
| | | |
| | | /** |
| | | * 用户搜索了就下载搜索的用户否则下载所有用户 |
| | | * |
| | | * |
| | | * @param exportUserDTO |
| | | * 用户搜索内容 |
| | | * @return List<EexcelUserDTO> excel内容 |
| | |
| | | |
| | | /** |
| | | * 通过手机号码查询用户信息 |
| | | * |
| | | * |
| | | * @param phone |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 查询当前社区所有标签以及预设标签 |
| | | * |
| | | * |
| | | * @return 标签集合 |
| | | */ |
| | | R listTags(); |
| | | |
| | | /** |
| | | * 通过账号查询用户信息 |
| | | * |
| | | * |
| | | * @param account |
| | | * @param type |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 新增SysUser |
| | | * |
| | | * |
| | | * @param storeVO |
| | | * 请求参数 |
| | | * @return 新增结果 |
| | |
| | | |
| | | /** |
| | | * 修改SysUser用户信息 |
| | | * |
| | | * |
| | | * @param storeVO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 修改用户小程序首页活动提示 |
| | | * |
| | | * |
| | | * @param userEditTipsDTO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 家庭成员列表 |
| | | * |
| | | * |
| | | * @param userId |
| | | * 登录用户 |
| | | * @return 成员集合 |
| | |
| | | |
| | | /** |
| | | * 新增家庭成员 |
| | | * |
| | | * |
| | | * @param comMngFamilyInfoVO |
| | | * 家庭成员基本信息 |
| | | * @return 增加结果 |
| | |
| | | |
| | | /** |
| | | * 编辑家庭成员 |
| | | * |
| | | * |
| | | * @param comMngFamilyInfoVO |
| | | * 家庭成员信息 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 当前登陆用户的电子档案 |
| | | * |
| | | * |
| | | * @param userId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 编辑电子档案 |
| | | * |
| | | * |
| | | * @param userArchivesVO |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 修改app用户密码 |
| | | * |
| | | * |
| | | * @param userInfoAppDTO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 添加网格员 |
| | | * |
| | | * |
| | | * @param eventGridMemberAddDTO |
| | | * 请求参数 |
| | | * @return 结果 |
| | |
| | | |
| | | /** |
| | | * 网格员管理 |
| | | * |
| | | * |
| | | * @param memberRelationDTO |
| | | * 请求参数 |
| | | * @return 网格员列表 |
| | |
| | | |
| | | /** |
| | | * 网格员编辑 |
| | | * |
| | | * |
| | | * @param gridMemberDTO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 网格员重置密码 |
| | | * |
| | | * |
| | | * @param gridMemberDTO |
| | | * 请求参数 |
| | | * @return 重置结果 |
| | |
| | | |
| | | /** |
| | | * 查询社区的收益说明 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 收益说明 |
| | |
| | | |
| | | /** |
| | | * 根据用户id查询用户openid |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @return openid |
| | |
| | | |
| | | /** |
| | | * 查询社区后台工作人员列表 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 社区后台工作人员列表 |
| | |
| | | * @param phone |
| | | */ |
| | | R deleteUserCashByPhone(String phone); |
| | | |
| | | R updateUserPartyStatus(Long userId); |
| | | } |
| | |
| | | |
| | | /** |
| | | * 修改app用户密码 |
| | | * |
| | | * |
| | | * @param userInfoAppDTO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 添加网格员 |
| | | * |
| | | * |
| | | * @param eventGridMemberAddDTO |
| | | * 请求参数 |
| | | * @return 结果 |
| | |
| | | |
| | | /** |
| | | * 网格员管理 |
| | | * |
| | | * |
| | | * @param memberRelationDTO |
| | | * 请求参数 |
| | | * @return 网格员列表 |
| | |
| | | |
| | | /** |
| | | * 修改网格员信息 |
| | | * |
| | | * |
| | | * @param gridMemberDTO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | |
| | | |
| | | /** |
| | | * 重置网格员密码 |
| | | * |
| | | * |
| | | * @param gridMemberDTO |
| | | * 请求参数 |
| | | * @return 重置结果 |
| | |
| | | |
| | | /** |
| | | * 批量删除网格员 |
| | | * |
| | | * |
| | | * @param Ids |
| | | * 网格员id集合 |
| | | * @return 删除结果 |
| | |
| | | |
| | | /** |
| | | * 查询社区的收益说明 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 收益说明 |
| | |
| | | |
| | | /** |
| | | * 根据用户id查询用户openid |
| | | * |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @return openid |
| | |
| | | |
| | | /** |
| | | * 查询社区后台工作人员列表 |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区id |
| | | * @return 社区后台工作人员列表 |
| | |
| | | userDao.disableOrEnableMerchantUsers(disableOrEnableConvenientMerchantDTO.getType(), disableOrEnableConvenientMerchantDTO.getUserIds()); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据openid维护社区团队里是否注册 |
| | | * @param openid 用户微信唯一标识 |
| | |
| | | } |
| | | return rs.toString(); |
| | | } |
| | | |
| | | @Override |
| | | public R updateUserPartyStatus(Long userId) { |
| | | SysUserDO sysUserDO = userDao.selectById(userId); |
| | | if (sysUserDO != null) { |
| | | sysUserDO.setIsPartymember(1); |
| | | int updated = userDao.updateById(sysUserDO); |
| | | if (updated > 0) { |
| | | // 删除用户信息缓存 |
| | | String userKey = UserConstants.LOGIN_USER_INFO + sysUserDO.getUserId(); |
| | | stringRedisTemplate.delete(userKey); |
| | | } |
| | | } |
| | | return R.ok(); |
| | | } |
| | | } |