Commit d34a75fb authored by hezhen's avatar hezhen

添加角色

parent c5cc9a3c
......@@ -23,6 +23,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;
import java.util.ArrayList;
import java.util.List;
import static com.github.wxiaoqi.security.common.config.rabbit.RabbitConstant.*;
......@@ -50,6 +51,9 @@ public class CompanyInfoBiz extends BaseBiz<CompanyInfoMapper, CompanyInfo>{
@Autowired
BranchCompanyBiz branchCompanyBiz;
@Autowired
GroupBiz groupBiz;
public static final String CODE="SHOP-";
......@@ -178,6 +182,9 @@ public class CompanyInfoBiz extends BaseBiz<CompanyInfoMapper, CompanyInfo>{
user.setDataCorporation(branchId+"");
user.setAppUserId(appUserId);
userBiz.insertSelective(user);
List<Integer> members=new ArrayList<>();
members.add(6);
groupBiz.modifyUserGroups(user.getId(),members);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment