Bladeren bron

用户申请团队修改

黄远 5 jaren geleden
bovenliggende
commit
7043f539d4

+ 1 - 1
lift-system-service/src/main/java/cn/com/ty/lift/system/user/service/impl/UserApplicationService.java

@@ -222,7 +222,7 @@ public class UserApplicationService extends ServiceImpl<UserApplicationMapper, U
             MtCompanyUser mtCompanyUser = mtCompanyUserService.getOne(new QueryWrapper<MtCompanyUser>()
                     .eq("mt_company_id", userApplyRequest.getCompanyId())
                     .eq("user_id", userApplyRequest.getUserId())
-                    .eq("status", ApiConstants.ApplicationConstants.APPLY_FAIL)
+                    .ne("status", ApiConstants.ApplicationConstants.APPLY_FAIL)
             );
             if (mtCompanyUser != null) {
                 return RestResponse.fail(ApiConstants.RESULT_ERROR, "用户已经在团队中了");