提交 e3001b13 作者: zhenjie

加盟申请限制

上级 de163d3f
...@@ -33,6 +33,7 @@ public enum ResultEnum implements BaseErrorInfoInterface { ...@@ -33,6 +33,7 @@ public enum ResultEnum implements BaseErrorInfoInterface {
COMPANY_EXIST_ERROR("5015", "该企业已认证!"), COMPANY_EXIST_ERROR("5015", "该企业已认证!"),
COOPERATION_CHECK_NOT_PASS_ERROR("5016", "审核失败,请联系管理人员!"), COOPERATION_CHECK_NOT_PASS_ERROR("5016", "审核失败,请联系管理人员!"),
REBINDING_COMPANY_ERROR("5017", "该用户已被企业绑定,请尝试让该用户解绑后再重试!"), REBINDING_COMPANY_ERROR("5017", "该用户已被企业绑定,请尝试让该用户解绑后再重试!"),
MEMBER_APPLY_ERROR("5018", "企业成员暂不能提交加盟申请!"),
//微信相关 //微信相关
PASSWORD_INCONSISTENT("5026", "新密码与确认密码不一致,请确认一致"), PASSWORD_INCONSISTENT("5026", "新密码与确认密码不一致,请确认一致"),
......
...@@ -73,6 +73,9 @@ public class CooperationServiceImpl implements CooperationService { ...@@ -73,6 +73,9 @@ public class CooperationServiceImpl implements CooperationService {
if (appCompanyInfoUId == null) { if (appCompanyInfoUId == null) {
return ResultBody.error(ResultEnum.COMPANY_NOT_AUTH_ERROR); return ResultBody.error(ResultEnum.COMPANY_NOT_AUTH_ERROR);
} }
if (appCompanyInfoUId.getLeader().equals(0)) {
return ResultBody.error(ResultEnum.MEMBER_APPLY_ERROR);
}
Integer cooperationTagId = userApplyTagVO.getCooperationTagId(); Integer cooperationTagId = userApplyTagVO.getCooperationTagId();
if (cooperationTagId == 1) { if (cooperationTagId == 1) {
if ("".equals(userApplyTagVO.getBrandName()) || userApplyTagVO.getBrandName() == null) { if ("".equals(userApplyTagVO.getBrandName()) || userApplyTagVO.getBrandName() == null) {
......
...@@ -395,7 +395,7 @@ ...@@ -395,7 +395,7 @@
select count(*) select count(*)
from user_apply_tag from user_apply_tag
where user_account_id = #{userAccountId} where user_account_id = #{userAccountId}
and is_deleted = 0 and is_deleted = 0 and apply_status = 1
</select> </select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论