|
@@ -17,6 +17,8 @@ import com.huiju.estateagents.service.ITaPersonBuildingService;
|
17
|
17
|
import com.huiju.estateagents.service.ITaPersonService;
|
18
|
18
|
import com.huiju.estateagents.service.TaChannelPersonService;
|
19
|
19
|
import com.huiju.estateagents.service.TaChannelService;
|
|
20
|
+import com.huiju.estateagents.third.entity.TaThirdPartyMiniappConfig;
|
|
21
|
+import com.huiju.estateagents.third.service.ITaThirdPartyMiniappConfigService;
|
20
|
22
|
import org.checkerframework.checker.units.qual.A;
|
21
|
23
|
import org.checkerframework.checker.units.qual.C;
|
22
|
24
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -56,6 +58,9 @@ public class TaPersonController extends BaseController {
|
56
|
58
|
@Autowired
|
57
|
59
|
ITaPersonBuildingService taPersonBuildingService;
|
58
|
60
|
|
|
61
|
+ @Autowired
|
|
62
|
+ public ITaThirdPartyMiniappConfigService iTaThirdPartyMiniappConfigService;
|
|
63
|
+
|
59
|
64
|
/**
|
60
|
65
|
*
|
61
|
66
|
* 因为人员表是集合系统的所有种类的用户,包含了各种角色。因此各种角色的操作都在本 controller 中完成
|
|
@@ -382,6 +387,25 @@ public class TaPersonController extends BaseController {
|
382
|
387
|
return taPersonService.getWxUser(openid);
|
383
|
388
|
}
|
384
|
389
|
|
|
390
|
+ /**
|
|
391
|
+ * 第三方获取个人信息
|
|
392
|
+ * @param request
|
|
393
|
+ * @return
|
|
394
|
+ */
|
|
395
|
+ @GetMapping("/third/user/info")
|
|
396
|
+ public ResponseBean thirdGetUserInfo(@RequestParam("personId") String personId, HttpServletRequest request) {
|
|
397
|
+ //获取H5项目相关信息
|
|
398
|
+ String xAppid = request.getHeader("x-appid");
|
|
399
|
+ QueryWrapper<TaThirdPartyMiniappConfig> taThirdPartyMiniappConfigQueryWrapper = new QueryWrapper<>();
|
|
400
|
+
|
|
401
|
+ taThirdPartyMiniappConfigQueryWrapper.eq("appid", xAppid);
|
|
402
|
+ TaThirdPartyMiniappConfig taThirdPartyMiniappConfig = iTaThirdPartyMiniappConfigService.getOne(taThirdPartyMiniappConfigQueryWrapper);
|
|
403
|
+ if (null == taThirdPartyMiniappConfig){
|
|
404
|
+ return ResponseBean.error("不存在的H5活动",ResponseBean.ERROR_UNAVAILABLE);
|
|
405
|
+ }
|
|
406
|
+ return taPersonService.ThirdUserInfo(personId);
|
|
407
|
+ }
|
|
408
|
+
|
385
|
409
|
/**
|
386
|
410
|
* 个人getPersonId(request);
|
387
|
411
|
* @param request
|