Merge branch 'four_member' into test
| | |
| | | |
| | | @ApiModelProperty("车辆数") |
| | | private Integer carTotal = 0; |
| | | |
| | | @ApiModelProperty("名称") |
| | | private String name; |
| | | } |
| | |
| | | * 物业id |
| | | */ |
| | | @ApiModelProperty(value = "物业id") |
| | | private Integer propertyId; |
| | | private Long propertyId; |
| | | /** |
| | | * 反馈人 |
| | | */ |
| | | @ApiModelProperty(value = "反馈人名称") |
| | | private String feedback; |
| | | @ApiModelProperty(value = "小区名称") |
| | | private String areaName; |
| | | |
| | | /** |
| | | * 状态 0 待处理 1待评价 2已结束 |
| | |
| | | * @return 修改结果 |
| | | */ |
| | | @GetMapping("resetPasswordPatch") |
| | | R resetPasswordPatch(@RequestParam("userIds") Long[] userIds); |
| | | R resetPasswordPatch(@RequestParam("userIds") Long[] userIds,@RequestParam("password") String password); |
| | | |
| | | /** |
| | | * 某社区后台人员查询 |
| | |
| | | @ApiOperation(value = "分页查询",response = ComPropertyAlarmVO.class) |
| | | @PostMapping("queryAll") |
| | | public R selectAll(@RequestBody CommonPage commonPage) { |
| | | commonPage.setParamId(2L); |
| | | commonPage.setParamId(this.getCommunityId()); |
| | | return propertyService.comPropertyAlarmSelectAll(commonPage); |
| | | } |
| | | |
| | |
| | | |
| | | @ApiOperation("批量重置密码") |
| | | @GetMapping("resetPasswordPatch") |
| | | public R resetPasswordPatch(@RequestParam("userIds") Long[] userId){ |
| | | return userService.resetPasswordPatch(userId); |
| | | public R resetPasswordPatch(@RequestParam("userIds") Long[] userId,@RequestParam("password") String password){ |
| | | return userService.resetPasswordPatch(userId,password); |
| | | } |
| | | |
| | | @ApiOperation(value = "用户菜单获取", response = SysMenuVO.class) |
| | |
| | | @ApiModelProperty(value = "社区Id") |
| | | private Long communityId; |
| | | |
| | | private String password; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "照片") |
| | | private String url; |
| | | |
| | | private String password; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "登录用户id") |
| | | private Long userId; |
| | | |
| | | private String password; |
| | | |
| | | } |
| | |
| | | |
| | | private Long areaId; |
| | | |
| | | private String password; |
| | | |
| | | } |
| | |
| | | import com.panzhihua.service_community.entity.ComActCommittee; |
| | | import com.panzhihua.service_community.dao.ComActCommitteeDao; |
| | | import com.panzhihua.service_community.entity.ComActSocialOrg; |
| | | import com.panzhihua.service_community.entity.ComProperty; |
| | | import com.panzhihua.service_community.service.ComActCommitteeService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | this.comActCommitteeDao.insert(comActCommittee); |
| | | return R.ok(); |
| | | } |
| | | return R.fail(r.getMsg()); |
| | | return R.fail("账号或手机号已存在"); |
| | | } |
| | | return R.fail(); |
| | | } |
| | |
| | | if(comActCommiteeVO!=null){ |
| | | ComActCommittee comActCommittee=new ComActCommittee(); |
| | | BeanUtils.copyProperties(comActCommiteeVO,comActCommittee); |
| | | if(comActCommiteeVO.getRoleId()!=null){ |
| | | ComActCommittee comPropertyBase=this.comActCommitteeDao.selectById(comActCommiteeVO.getId()); |
| | | AdministratorsUserVO administratorsUserVO=new AdministratorsUserVO(); |
| | | administratorsUserVO.setUserId(comPropertyBase.getUserId()); |
| | | administratorsUserVO.setLastLoginTime(DateUtil.date()); |
| | | administratorsUserVO.setRoleId(comActCommiteeVO.getRoleId()); |
| | | this.userService.putUserBackstage(administratorsUserVO); |
| | | } |
| | | this.comActCommitteeDao.updateById(comActCommittee); |
| | | return R.ok(); |
| | | } |
| | |
| | | if(comActFourMemberVO!=null){ |
| | | if(comActFourMemberVO.getIds()!=null){ |
| | | for(Integer id:comActFourMemberVO.getIds()){ |
| | | ComActFourMember comActFourMember=new ComActFourMember(); |
| | | AdministratorsUserVO administratorsUserVO=new AdministratorsUserVO(); |
| | | ComActFourMember comActFourMemberBase=this.comActFourMemberDao.selectById(id); |
| | | if(comActFourMemberBase!=null){ |
| | | comActFourMember.setId(comActFourMemberBase.getId()); |
| | | comActFourMember.setUserId(comActFourMemberBase.getUserId()); |
| | | comActFourMemberVO.setUserId(comActFourMemberBase.getUserId()); |
| | | BeanUtils.copyProperties(comActFourMemberVO,administratorsUserVO); |
| | | userService.putUserBackstage(administratorsUserVO); |
| | | } |
| | | AdministratorsUserVO administratorsUserVO=new AdministratorsUserVO(); |
| | | BeanUtils.copyProperties(comActFourMemberVO,administratorsUserVO); |
| | | userService.putUserBackstage(administratorsUserVO); |
| | | } |
| | | return R.ok(); |
| | | } |
| | |
| | | import com.panzhihua.common.model.vos.community.ComActSocialOrgVO; |
| | | import com.panzhihua.common.model.vos.user.AdministratorsUserVO; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.service_community.entity.ComActCommittee; |
| | | import com.panzhihua.service_community.entity.ComActSocialOrg; |
| | | import com.panzhihua.service_community.dao.ComActSocialOrgDao; |
| | | import com.panzhihua.service_community.service.ComActSocialOrgService; |
| | |
| | | this.comActSocialOrgDao.insert(comActSocialOrg); |
| | | return R.ok(); |
| | | } |
| | | return R.fail(r.getMsg()); |
| | | return R.fail("账号或手机号已存在"); |
| | | } |
| | | return R.fail(); |
| | | } |
| | |
| | | if(comActSocialOrgVO!=null){ |
| | | ComActSocialOrg comActSocialOrg=new ComActSocialOrg(); |
| | | BeanUtils.copyProperties(comActSocialOrgVO,comActSocialOrg); |
| | | if(comActSocialOrgVO.getRoleId()!=null){ |
| | | ComActSocialOrg comPropertyBase=this.comActSocialOrgDao.selectById(comActSocialOrgVO.getId()); |
| | | AdministratorsUserVO administratorsUserVO=new AdministratorsUserVO(); |
| | | administratorsUserVO.setUserId(comPropertyBase.getUserId()); |
| | | administratorsUserVO.setRoleId(comActSocialOrgVO.getRoleId()); |
| | | administratorsUserVO.setLastLoginTime(DateUtil.date()); |
| | | this.userService.putUserBackstage(administratorsUserVO); |
| | | } |
| | | this.comActSocialOrgDao.updateById(comActSocialOrg); |
| | | return R.ok(); |
| | | } |
| | |
| | | this.comPropertyDao.insert(comProperty); |
| | | return R.ok(); |
| | | } |
| | | return R.fail(r.getMsg()); |
| | | return R.fail("账号或手机号已存在"); |
| | | } |
| | | return R.fail(); |
| | | } |
| | |
| | | if(comPropertyVO!=null){ |
| | | ComProperty comProperty=new ComProperty(); |
| | | BeanUtils.copyProperties(comPropertyVO,comProperty); |
| | | if(comPropertyVO.getRoleId()!=null){ |
| | | ComProperty comPropertyBase=this.comPropertyDao.selectById(comPropertyVO.getId()); |
| | | AdministratorsUserVO administratorsUserVO=new AdministratorsUserVO(); |
| | | administratorsUserVO.setUserId(comPropertyBase.getUserId()); |
| | | administratorsUserVO.setRoleId(comPropertyVO.getRoleId()); |
| | | administratorsUserVO.setLastLoginTime(DateUtil.date()); |
| | | this.userService.putUserBackstage(administratorsUserVO); |
| | | } |
| | | this.comPropertyDao.updateById(comProperty); |
| | | return R.ok(); |
| | | } |
| | |
| | | </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 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> |
| | | |
| | | <select id="getById" resultMap="baseResultMap"> |
| | |
| | | |
| | | |
| | | <select id="selectById" resultType="com.panzhihua.common.model.vos.property.ComPropertyAlarmVO"> |
| | | select t.*, t1.position, t2.name as solveName |
| | | select t.*, t3.address as position, t2.name as solveName |
| | | from com_property_alarm t |
| | | left join com_property_equipment t1 on t.serial_no = t1.serial_no |
| | | left join sys_user t2 on t.solve_id = user_id |
| | | left join com_mng_population_house t3 on t1.village_id=t3.id |
| | | where t.id=#{id} |
| | | </select> |
| | | |
| | |
| | | </resultMap> |
| | | |
| | | <select id="pageList" resultType="com.panzhihua.common.model.vos.property.ComPropertyRepairVO" parameterType="com.panzhihua.common.model.dtos.property.CommonPage"> |
| | | select t.*,t1.name as feedback from com_property_repair t left join sys_user t1 on t.feedback_by = t1.user_id left join com_property t2 on t.property_id = t2.area_id |
| | | select t.*,t1.name as feedback,t3.address as areaName from com_property_repair t left join sys_user t1 on t.feedback_by = t1.user_id left join com_property t2 on t.property_id = t2.area_id left join com_mng_village t3 on t.property_id=t3.village_id |
| | | <where> |
| | | 1=1 |
| | | <if test="commonPage.status !=null"> |
| | |
| | | * @return 修改结果 |
| | | */ |
| | | @GetMapping("resetPasswordPatch") |
| | | public R resetPasswordPatch(@RequestParam("userIds") Long[] userId) { |
| | | return userService.resetPasswordPatch(userId); |
| | | public R resetPasswordPatch(@RequestParam("userIds") Long[] userId,@RequestParam("password")String password) { |
| | | return userService.resetPasswordPatch(userId,password); |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 批量重置密码 |
| | | */ |
| | | R resetPasswordPatch(Long[] userId); |
| | | R resetPasswordPatch(Long[] userId,String password); |
| | | |
| | | /** |
| | | * 便民服务新增商家账号 |
| | |
| | | @Override |
| | | public R listRoleBackstage(Long communityId) { |
| | | List<SysRoleDO> sysRoleDOS = |
| | | roleDAO.selectList(new QueryWrapper<SysRoleDO>().lambda().eq(SysRoleDO::getCommunityId, communityId)); |
| | | roleDAO.selectList(new QueryWrapper<SysRoleDO>().lambda().eq(SysRoleDO::getCommunityId, communityId).orderByDesc(SysRoleDO::getCreateAt)); |
| | | if (ObjectUtils.isEmpty(sysRoleDOS)) { |
| | | return R.fail("角色列表为空"); |
| | | } |
| | |
| | | throw new ServiceException("手机号已经存在"); |
| | | } else if (e.getMessage().contains("union_account_type")) { |
| | | throw new ServiceException("账户已经存在"); |
| | | }else if(e.getMessage().contains("23000")){ |
| | | throw new ServiceException("手机号已存在"); |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R resetPasswordPatch(Long[] userId) { |
| | | public R resetPasswordPatch(Long[] userId,String password) { |
| | | if(userId!=null){ |
| | | for(Long user:userId){ |
| | | SysUserDO sysUserDO = new SysUserDO(); |
| | | sysUserDO.setUserId(user); |
| | | String encode = new BCryptPasswordEncoder().encode("admin123456"); |
| | | String encode = new BCryptPasswordEncoder().encode(password); |
| | | sysUserDO.setPassword(encode); |
| | | userDao.updateById(sysUserDO); |
| | | } |