|
|
@ -143,7 +143,10 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void audit(UserDTO dto) { |
|
|
|
//先删除以前审核未通过的那条数据 根据WX_UNION_ID 判断
|
|
|
|
deleteByUnionId(dto); |
|
|
|
UserEntity entity = ConvertUtils.sourceToTarget(dto, UserEntity.class); |
|
|
|
//是否通过审核
|
|
|
|
if (YesOrNoEnum.YES.value().equals(dto.getPass())) { |
|
|
@ -161,7 +164,11 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
partyMembersDTO.setGridName(dto.getGrid()); |
|
|
|
partyMembersService.save(partyMembersDTO); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void deleteByUnionId(UserDTO dto) { |
|
|
|
String wxUnionId = dto.getWxUnionId(); |
|
|
|
baseDao.deleteByUnionId(wxUnionId); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|