|
|
|
|
@ -9,7 +9,6 @@ import com.flossom.common.core.domain.entity.WxUserMember;
|
|
|
|
|
import com.flossom.common.core.exception.ServiceException;
|
|
|
|
|
import com.flossom.common.core.mapper.WxUserMemberMapper;
|
|
|
|
|
import com.flossom.common.core.utils.DateUtils;
|
|
|
|
|
import com.flossom.common.core.utils.StringUtils;
|
|
|
|
|
import com.flossom.common.redis.service.RedisService;
|
|
|
|
|
import com.flossom.common.security.utils.SecurityUtils;
|
|
|
|
|
import com.flossom.miniProgram.domain.vo.*;
|
|
|
|
|
@ -22,7 +21,6 @@ import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
@ -115,22 +113,22 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void updateUser(UserMemberUpdateVo userMemberUpdateVo) {
|
|
|
|
|
public LoginUserVo updateUser(UserMemberUpdateVo userMemberUpdateVo) {
|
|
|
|
|
// 完善用户信息, 判断是否标记完善信息
|
|
|
|
|
WxUserMember wxUserMember = SecurityUtils.getLoginUser().getWxUserMember();
|
|
|
|
|
if (wxUserMember.getIsCompleteInformation() == null ||
|
|
|
|
|
wxUserMember.getIsCompleteInformation() == 0) {
|
|
|
|
|
// 修改完善
|
|
|
|
|
wxUserMember.setIsCompleteInformation(1);
|
|
|
|
|
// TODO: 首次完善,增加加分
|
|
|
|
|
// TODO: 首次完善,增加加分 (未完成)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
BeanUtils.copyProperties(userMemberUpdateVo, wxUserMember);
|
|
|
|
|
wxUserMember.setUpdateTime(DateUtils.getNowDate());
|
|
|
|
|
wxUserMemberMapper.updateWxUserMember(wxUserMember);
|
|
|
|
|
|
|
|
|
|
// 重新构建用户信息缓存
|
|
|
|
|
|
|
|
|
|
// 刷新用户信息
|
|
|
|
|
return refreshWxUserInfo();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|