魏超 5 年前
父节点
当前提交
1de9ebb9d3

+ 6
- 1
src/main/java/com/huiju/estateagents/center/taUser/controller/TaUserController.java 查看文件

@@ -338,7 +338,12 @@ public class TaUserController extends BaseController {
338 338
             return ResponseBean.error("用户名或密码错误", ResponseBean.ERROR_ILLEGAL_PARAMS);
339 339
         }
340 340
 
341
-        if (taUser.getExpDate().isBefore(LocalDateTime.now())){
341
+        QueryWrapper<TaUser> taUserQueryWrapper = new QueryWrapper<>();
342
+        taUserQueryWrapper.eq("org_id", taUser.getOrgId());
343
+        taUserQueryWrapper.eq("is_admin", 1);
344
+        TaUser taUserAdmin = iTaUserService.getOne(taUserQueryWrapper);
345
+
346
+        if (taUserAdmin.getExpDate().isBefore(LocalDateTime.now())){
342 347
             return ResponseBean.error("该账号已经过期,请联系管理员", ResponseBean.ERROR_UNAVAILABLE);
343 348
         }
344 349
 

+ 6
- 0
src/main/java/com/huiju/estateagents/service/impl/TaPersonServiceImpl.java 查看文件

@@ -918,6 +918,12 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
918 918
         // 发放积分
919 919
         applicationContext.publishEvent(new EventBus(person, EventBus.EventType.SignUpAgent, orgId));
920 920
 
921
+        //授权手机给推广人加积分
922
+        String sharePersonId = getSharePersonFrom(person);
923
+        if (validateSceneId(sceneId) && !StringUtils.isEmpty(sharePersonId)){
924
+            applicationContext.publishEvent(new EventBus(promoter != null ? promoter : sharePersonId, EventBus.EventType.SharePosterAll, orgId));
925
+        }
926
+
921 927
         // 客户来源
922 928
         TaCustomerFrom customerFrom = new TaCustomerFrom();
923 929
         customerFrom.setPersonId(person.getPersonId());