|
|
@@ -1,6 +1,7 @@
|
|
|
package com.jzg.organization.service.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
@@ -25,6 +26,8 @@ import com.jzg.organization.mapper.SysUploadFilesMapper;
|
|
|
import com.jzg.organization.mapper.SysUserJzgAppMapper;
|
|
|
import com.jzg.organization.mapper.SysUserMapper;
|
|
|
import com.jzg.organization.service.*;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -39,6 +42,8 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class SysUserJzgAppServiceImpl extends ServiceImpl<SysUserJzgAppMapper, SysUserJzgApp> implements SysUserJzgAppService {
|
|
|
|
|
|
+ private static final Logger log = LoggerFactory.getLogger(SysUserJzgAppServiceImpl.class);
|
|
|
+
|
|
|
@Autowired
|
|
|
private SysUserJzgAppMapper sysUserJzgAppMapper;
|
|
|
|
|
|
@@ -213,6 +218,7 @@ public class SysUserJzgAppServiceImpl extends ServiceImpl<SysUserJzgAppMapper, S
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public InvitationVo invitationRegister(InvitationAddParam param) {
|
|
|
+ log.info("邀请码注册:param=[{}]", JSONUtil.toJsonStr(param));
|
|
|
try {
|
|
|
InvitationVo invitationVo = new InvitationVo();
|
|
|
// 获取邀请人信息
|
|
|
@@ -285,13 +291,14 @@ public class SysUserJzgAppServiceImpl extends ServiceImpl<SysUserJzgAppMapper, S
|
|
|
teamInvitation(yqirInfo, param, userId, sysUserId);
|
|
|
return invitationVo;
|
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ log.error("invitationRegister",e);
|
|
|
throw new SystemException("程序异常");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public void teamInvitation(SysUserJzgInfo info, InvitationAddParam param, String userId, String sysUserId) {
|
|
|
+ log.info("teamInvitation:userId=[{}], sysUserId=[{}],info=[{}], param=[{}]", userId, sysUserId, JSONUtil.toJsonStr(info), JSONUtil.toJsonStr(param));
|
|
|
try {
|
|
|
if (StringUtils.isEmpty(userId)) {
|
|
|
return;
|
|
|
@@ -321,7 +328,7 @@ public class SysUserJzgAppServiceImpl extends ServiceImpl<SysUserJzgAppMapper, S
|
|
|
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ log.error("teamInvitation:",e);
|
|
|
}
|
|
|
}
|
|
|
|