|
|
@@ -7,6 +7,7 @@ import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.config.corp.WeChatCorpFactory;
|
|
|
import com.cyksj.mapper.AddressMapper;
|
|
|
import com.cyksj.mapper.OrderDonMapper;
|
|
|
+import com.cyksj.mapper.UserIdentityMapper;
|
|
|
import com.cyksj.mapper.UserMapper;
|
|
|
import com.cyksj.mapper.corp.CorpUserAuthMapper;
|
|
|
import com.cyksj.mapper.corp.CorpUserMapper;
|
|
|
@@ -58,6 +59,8 @@ public class CorpUserServiceImpl implements CorpUserService {
|
|
|
|
|
|
private final UserBindDetailMapper userBindDetailMapper;
|
|
|
|
|
|
+ private final UserIdentityMapper userIdentityMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public YHLXUserDetailView getUserDetailView(String externalUserid, String corpId) throws Exception {
|
|
|
CorpUser corpUser = getExternalUserId(corpId, externalUserid);
|
|
|
@@ -108,6 +111,10 @@ public class CorpUserServiceImpl implements CorpUserService {
|
|
|
if (userIdList.size() == 3) {
|
|
|
view.setIsBind(true);
|
|
|
}
|
|
|
+ Integer count = userIdentityMapper.selectCount(Wrappers.lambdaQuery(UserIdentity.class)
|
|
|
+ .in(UserIdentity::getUserId, userIdList)
|
|
|
+ .eq(UserIdentity::getTag, UserIdentity.Tag.VIP));
|
|
|
+ view.setIsVip(count > 0);
|
|
|
return view;
|
|
|
}
|
|
|
|