|
|
@@ -8,6 +8,7 @@ import com.cyksj.config.corp.WeChatCorpFactory;
|
|
|
import com.cyksj.mapper.*;
|
|
|
import com.cyksj.mapper.corp.CorpUserAuthMapper;
|
|
|
import com.cyksj.mapper.corp.CorpUserMapper;
|
|
|
+import com.cyksj.mapper.corp.kf.CorpKfUserMapper;
|
|
|
import com.cyksj.mapper.market.task.UserBindDetailMapper;
|
|
|
import com.cyksj.model.entity.*;
|
|
|
import com.cyksj.model.kf.CorpKfUserInfo;
|
|
|
@@ -65,6 +66,8 @@ public class CorpUserServiceImpl implements CorpUserService {
|
|
|
|
|
|
private final WxCorpOps wxCorpOps;
|
|
|
|
|
|
+ private final CorpKfUserMapper corpKfUserMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public YHLXUserDetailView getUserDetailView(String externalUserid, String corpId) throws Exception {
|
|
|
CorpUser corpUser = getExternalUserId(corpId, externalUserid);
|
|
|
@@ -123,6 +126,10 @@ public class CorpUserServiceImpl implements CorpUserService {
|
|
|
.in(UserIdentity::getUserId, userIdList)
|
|
|
.eq(UserIdentity::getTag, UserIdentity.Tag.VIP));
|
|
|
view.setIsVip(count2 > 0);
|
|
|
+ //微信客服用户信息
|
|
|
+ view.setCorpKfUser(corpKfUserMapper.selectOne(Wrappers.lambdaQuery(CorpKfUser.class)
|
|
|
+ .eq(CorpKfUser::getExternalUserid, externalUserid)
|
|
|
+ .last("limit 1")));
|
|
|
return view;
|
|
|
}
|
|
|
|