|
|
|
@@ -2,6 +2,7 @@ package com.iformall.controller; |
|
|
|
|
|
|
|
import cn.binarywang.wx.miniapp.api.WxMaService; |
|
|
|
import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.common.IdWorker; |
|
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
|
import com.iformall.domain.po.WxAppinfo; |
|
|
|
import com.iformall.domain.po.WxCUser; |
|
|
|
@@ -204,12 +205,14 @@ public class BaseController { |
|
|
|
byId.setPhone(userPhone); |
|
|
|
byId.setNickName(userName); |
|
|
|
byId.setAvatarUrl(avatarUrl); |
|
|
|
byId.setSex(sex); |
|
|
|
wxCUserBasicInfoService.update(byId); |
|
|
|
return null; |
|
|
|
}else{ |
|
|
|
Date cur = new Date(); |
|
|
|
basicInfo = new WxCUserBasicInfo(); |
|
|
|
basicInfo.setId(userId); |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
basicInfo.setId(idWorker.nextId()); |
|
|
|
basicInfo.updateTenantInfo(tenantEntity); |
|
|
|
basicInfo.undateFinalTenantId(tenantEntity); |
|
|
|
basicInfo.setPhone(userPhone); |
|
|
|
@@ -221,7 +224,7 @@ public class BaseController { |
|
|
|
basicInfo.setCreateDate(cur); |
|
|
|
basicInfo.setUpdateDate(cur); |
|
|
|
wxCUserBasicInfoService.save(basicInfo); |
|
|
|
return userId; |
|
|
|
return basicInfo.getId(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|