Browse Source

Merge remote-tracking branch 'origin/dev_0521yzm' into dev_temp

dev_shibei_match
yinzuomei 4 years ago
parent
commit
9a31d5ea62
  1. 2
      epmet-auth/src/main/java/com/epmet/service/impl/GovWebServiceImpl.java
  2. 2
      epmet-auth/src/main/java/com/epmet/service/impl/SsoServiceImpl.java
  3. 13
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/ResiGroupServiceImpl.java

2
epmet-auth/src/main/java/com/epmet/service/impl/GovWebServiceImpl.java

@ -73,7 +73,7 @@ public class GovWebServiceImpl implements GovWebService {
form.setMobile(formDTO.getPhone());
Result<GovWebOperLoginResultDTO> result = epmetUserFeignClient.getStaffIdAndPwd(form);
if (!result.success() || null == result.getData() || null == result.getData().getUserId()) {
logger.error("根据手机号查询PC工作端登陆人员信息失败,返回10003账号不存在");
logger.warn("根据手机号查询PC工作端登陆人员信息失败,返回10003账号不存在");
throw new RenException(EpmetErrorCode.ERR10003.getCode());
}
GovWebOperLoginResultDTO resultDTO = result.getData();

2
epmet-auth/src/main/java/com/epmet/service/impl/SsoServiceImpl.java

@ -167,7 +167,7 @@ public class SsoServiceImpl implements SsoService {
//test end
if (!result.success() || null == result.getData() || null == result.getData().getUserId()) {
logger.error("根据手机号查询PC工作端登陆人员信息失败,返回10003账号不存在,param:{}", JSON.toJSONString(form));
logger.warn("根据手机号查询PC工作端登陆人员信息失败,返回10003账号不存在,param:{}", JSON.toJSONString(form));
throw new RenException(EpmetErrorCode.ERR10003.getCode());
}

13
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/ResiGroupServiceImpl.java

@ -599,22 +599,35 @@ public class ResiGroupServiceImpl extends BaseServiceImpl<ResiGroupDao, ResiGrou
public Result agreeApplyGroup(AgreeApplyGroupFormDTO agreeApplyGroupFormDTO) {
//1、更新组的状态
ResiGroupDTO resiGroupDTO = this.get(agreeApplyGroupFormDTO.getGroupId());
if (null == resiGroupDTO) {
throw new RenException("小组信息不存在");
}
if (GroupStateConstant.GROUP_APPROVED.equals(resiGroupDTO.getState())) {
logger.warn("当前小组已审核通过,groupId=" + agreeApplyGroupFormDTO.getGroupId());
return new Result();
}
resiGroupDTO.setState(GroupStateConstant.GROUP_APPROVED);
this.update(resiGroupDTO);
//2、更新组的申请记录改为已通过
ResiGroupOperationDTO resiGroupOperation = resiGroupOperationDao.selectGroupApplyRecord(agreeApplyGroupFormDTO.getGroupId());
if (null != resiGroupOperation) {
resiGroupOperation.setState(GroupStateConstant.GROUP_APPROVED);
resiGroupOperation.setOperateUserId(agreeApplyGroupFormDTO.getUserId());
resiGroupOperationService.update(resiGroupOperation);
}
//3、将群主在群成员的状态改为已通过
ResiGroupMemberDTO resiGroupMemberDTO = resiGroupMemberDao.selectLeaderMember(agreeApplyGroupFormDTO.getGroupId());
if (null != resiGroupMemberDTO) {
resiGroupMemberDTO.setStatus(MemberStateConstant.APPROVED);
resiGroupMemberService.update(resiGroupMemberDTO);
}
//4、更新群主的出入群记录改为已通过
GroupMemeberOperationDTO groupMemeberOperationDTO = groupMemeberOperationDao.selectLeaderRecord(agreeApplyGroupFormDTO.getGroupId());
if (null != groupMemeberOperationDTO) {
groupMemeberOperationDTO.setOperateStatus(MemberStateConstant.APPROVED);
groupMemeberOperationDTO.setOperateUserId(agreeApplyGroupFormDTO.getUserId());
groupMemeberOperationService.update(groupMemeberOperationDTO);
}
//4-1.2020.11.17 sun 添加小组审核通过后生成小组的二维码图片逻辑 start
TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronizationAdapter() {
@Override

Loading…
Cancel
Save