Browse Source

商户创建时间、商户未审核问题

qzy 2 months ago
parent
commit
c32d01b24f

+ 1 - 0
sp-service/level-two-server/src/main/java/com/pj/tb_purchaser/TbPurchaserService.java

@@ -66,6 +66,7 @@ public class TbPurchaserService extends ServiceImpl<TbPurchaserMapper, TbPurchas
      * 增
      */
     void add(TbPurchaser t) {
+        t.setCreateTime(new Date());
         save(t);
         AppUserCreateDTO createDTO = new AppUserCreateDTO();
         createDTO.setUserType(UserType.USER_TYPE_PURCHASER.getCode() + "");

+ 4 - 1
sp-service/sp-admin/src/main/java/com/pj/project/app_user/AppUserService.java

@@ -822,7 +822,10 @@ public class AppUserService extends ServiceImpl<AppUserMapper, AppUser> implemen
         }
         PurchaserDto purchaserDto=  FeignFactory.levelTwoServerInterface.getByPurchaserId(appUser.getFkId());
         if (purchaserDto==null){
-            return AjaxJson.getError("商户不存在");
+            return AjaxJson.getError("商户不存在或未认证");
+        }
+        if (purchaserDto.getJudgeStatus()==0){
+            return AjaxJson.getError("商户未审核");
         }
         //开始执行登录
         StpAPPUserUtil.login(appUser.getId());