菜单登录
This commit is contained in:
@@ -99,7 +99,19 @@ public class SysMenuRest {
|
|||||||
List<SysMenuTreeVo> list = sysMenuService.listAllVoForSource(query);
|
List<SysMenuTreeVo> list = sysMenuService.listAllVoForSource(query);
|
||||||
return rb.success().setData(list);
|
return rb.success().setData(list);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 权限组菜单列表:根据资源归类
|
||||||
|
*
|
||||||
|
* @param query
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation("菜单列表:根据资源归类")
|
||||||
|
@PostMapping("/listAllVoForSourceG")
|
||||||
|
public ResultBean<List<SysMenuTreeVo>> listAllVoForSourceG(@RequestBody SysMenuQuery query){
|
||||||
|
ResultBean rb = ResultBean.fireFail();
|
||||||
|
List<SysMenuTreeVo> list = sysMenuService.listAllVoForSourceG(query);
|
||||||
|
return rb.success().setData(list);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 菜单列表:根据资源归类 设置功能的url用
|
* 菜单列表:根据资源归类 设置功能的url用
|
||||||
* @return
|
* @return
|
||||||
@@ -174,13 +186,15 @@ public class SysMenuRest {
|
|||||||
return rb.setData(list);
|
return rb.setData(list);
|
||||||
SysOrganization sysOrganization=sysOrganizationService.getOne(new QueryWrapper<SysOrganization>().eq("sid",query.getOrgSid()));
|
SysOrganization sysOrganization=sysOrganizationService.getOne(new QueryWrapper<SysOrganization>().eq("sid",query.getOrgSid()));
|
||||||
String a="";
|
String a="";
|
||||||
|
List<SysUserRoleVo> userRole=new ArrayList<>();
|
||||||
if(!sysOrganization.getPsid().equals("0")){
|
if(!sysOrganization.getPsid().equals("0")){
|
||||||
a =sysOrganization.getOrgSidPath().substring(0,sysOrganization.getOrgSidPath().lastIndexOf("/"));
|
a =sysOrganization.getOrgSidPath().substring(0,sysOrganization.getOrgSidPath().lastIndexOf("/"));
|
||||||
|
userRole = sysUserRoleService.selectByUserSid(query.getUserSid(), a,"");
|
||||||
}else{
|
}else{
|
||||||
a=sysOrganization.getOrgSidPath();
|
// a=sysOrganization.getOrgSidPath();
|
||||||
|
userRole = sysUserRoleService.selectByUserSid(query.getUserSid(), "","");
|
||||||
}
|
}
|
||||||
//根据用户和资源查询 这个资源下的菜单
|
//根据用户和资源查询 这个资源下的菜单
|
||||||
List<SysUserRoleVo> userRole = sysUserRoleService.selectByUserSid(query.getUserSid(), a,"");
|
|
||||||
List<String> roleSids = userRole.stream().map(s -> s.getRoleSid()).collect(Collectors.toList());
|
List<String> roleSids = userRole.stream().map(s -> s.getRoleSid()).collect(Collectors.toList());
|
||||||
if(userRole.size()==0){
|
if(userRole.size()==0){
|
||||||
return rb.success().setData(new ArrayList<>());
|
return rb.success().setData(new ArrayList<>());
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package com.yxt.portal.apiadmin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangpengfei
|
||||||
|
* @date 2024/7/26 17:26
|
||||||
|
*/
|
||||||
|
public class SysOrgRegisterRest {
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.yxt.portal.apiadmin;
|
package com.yxt.portal.apiadmin;
|
||||||
|
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||||
import com.yxt.common.base.config.RedisUtil;
|
import com.yxt.common.base.config.RedisUtil;
|
||||||
@@ -12,6 +13,8 @@ import com.yxt.portal.biz.sysmenu.SysMenu;
|
|||||||
import com.yxt.portal.biz.sysmenu.SysMenuService;
|
import com.yxt.portal.biz.sysmenu.SysMenuService;
|
||||||
import com.yxt.portal.biz.sysorganization.SysOrganization;
|
import com.yxt.portal.biz.sysorganization.SysOrganization;
|
||||||
import com.yxt.portal.biz.sysorganization.SysOrganizationService;
|
import com.yxt.portal.biz.sysorganization.SysOrganizationService;
|
||||||
|
import com.yxt.portal.biz.sysorgregister.SysOrgRegister;
|
||||||
|
import com.yxt.portal.biz.sysorgregister.SysOrgRegisterService;
|
||||||
import com.yxt.portal.biz.syspost.SysPost;
|
import com.yxt.portal.biz.syspost.SysPost;
|
||||||
import com.yxt.portal.biz.syspost.SysPostService;
|
import com.yxt.portal.biz.syspost.SysPostService;
|
||||||
import com.yxt.portal.biz.sysrole.SysRole;
|
import com.yxt.portal.biz.sysrole.SysRole;
|
||||||
@@ -19,6 +22,8 @@ import com.yxt.portal.biz.sysrole.SysRoleDto;
|
|||||||
import com.yxt.portal.biz.sysrole.SysRoleService;
|
import com.yxt.portal.biz.sysrole.SysRoleService;
|
||||||
import com.yxt.portal.biz.sysroleauthorize.SysRoleAuthorize;
|
import com.yxt.portal.biz.sysroleauthorize.SysRoleAuthorize;
|
||||||
import com.yxt.portal.biz.sysroleauthorize.SysRoleAuthorizeService;
|
import com.yxt.portal.biz.sysroleauthorize.SysRoleAuthorizeService;
|
||||||
|
import com.yxt.portal.biz.syssource.SysSource;
|
||||||
|
import com.yxt.portal.biz.syssource.SysSourceService;
|
||||||
import com.yxt.portal.biz.sysstaffinfo.SysStaffinfo;
|
import com.yxt.portal.biz.sysstaffinfo.SysStaffinfo;
|
||||||
import com.yxt.portal.biz.sysstaffinfo.SysStaffinfoService;
|
import com.yxt.portal.biz.sysstaffinfo.SysStaffinfoService;
|
||||||
import com.yxt.portal.biz.sysstaffinfo.SysStaffinfoVo;
|
import com.yxt.portal.biz.sysstaffinfo.SysStaffinfoVo;
|
||||||
@@ -42,6 +47,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -86,8 +92,10 @@ public class SysUserRest {
|
|||||||
private SysRoleAuthorizeService sysRoleAuthorizeService;
|
private SysRoleAuthorizeService sysRoleAuthorizeService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysMenuService sysMenuService;
|
private SysMenuService sysMenuService;
|
||||||
// @Autowired
|
@Autowired
|
||||||
// private SystemLogService systemLogService;
|
private SysOrgRegisterService sysOrgRegisterService;
|
||||||
|
@Autowired
|
||||||
|
SysSourceService sysSourceService;
|
||||||
// 定义点选文字图片验证码允许的误差值
|
// 定义点选文字图片验证码允许的误差值
|
||||||
private static final int ERROR_AMOUNT = 50;// 定义允许的误差值,单位是px
|
private static final int ERROR_AMOUNT = 50;// 定义允许的误差值,单位是px
|
||||||
|
|
||||||
@@ -442,9 +450,25 @@ public class SysUserRest {
|
|||||||
}
|
}
|
||||||
// 根据用户信息查询用户的角色信息
|
// 根据用户信息查询用户的角色信息
|
||||||
List<SysStaffOrgVo>sysStaffOrgVos= sysStaffOrgService.fetchOrgsByStaffSid(user.getStaffSid());
|
List<SysStaffOrgVo>sysStaffOrgVos= sysStaffOrgService.fetchOrgsByStaffSid(user.getStaffSid());
|
||||||
|
SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd");
|
||||||
for (SysStaffOrgVo sysStaffOrgVo : sysStaffOrgVos) {
|
for (SysStaffOrgVo sysStaffOrgVo : sysStaffOrgVos) {
|
||||||
SysOrganization sysOrganizationOne = sysOrganizationService.fetchBySid(sysStaffOrgVo.getOrgSid());
|
SysOrganization sysOrganizationOne = sysOrganizationService.fetchBySid(sysStaffOrgVo.getOrgSid());
|
||||||
if (sysOrganizationOne != null) {
|
if (sysOrganizationOne != null) {
|
||||||
|
List<SysOrgRegister> sysOrgRegisters=new ArrayList<>();
|
||||||
|
if(sysOrganizationOne.getPsid()!="0"){
|
||||||
|
sysOrgRegisters=sysOrgRegisterService.list(new QueryWrapper<SysOrgRegister>()
|
||||||
|
.eq("orgSid",sysOrganizationOne.getPsid()));
|
||||||
|
}else{
|
||||||
|
sysOrgRegisters=sysOrgRegisterService.list(new QueryWrapper<SysOrgRegister>()
|
||||||
|
.eq("orgSid",sysStaffOrgVo.getOrgSid()));
|
||||||
|
}
|
||||||
|
for (SysOrgRegister sysOrgRegister : sysOrgRegisters) {
|
||||||
|
//1>2 1 、1<2 -1 、1=2 0
|
||||||
|
int k= DateUtil.parse(sdf.format(DateUtil.parse(sdf.format(new Date())))).compareTo(DateUtil.parse(sdf.format(sysOrgRegister.getExpireDate())));
|
||||||
|
if(k==1){
|
||||||
|
sysOrgRegister.setRegType("1");
|
||||||
|
}
|
||||||
|
}
|
||||||
String psid = sysOrganizationOne.getPsid();
|
String psid = sysOrganizationOne.getPsid();
|
||||||
if(com.yxt.common.base.utils.StringUtils.isNotNull(psid)){
|
if(com.yxt.common.base.utils.StringUtils.isNotNull(psid)){
|
||||||
if(!psid.equals("0")){
|
if(!psid.equals("0")){
|
||||||
@@ -454,9 +478,10 @@ public class SysUserRest {
|
|||||||
sysStaffOrgVo.setOrgName(sysStaffOrgVo.getOrgName());
|
sysStaffOrgVo.setOrgName(sysStaffOrgVo.getOrgName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sysStaffOrgVo.setType(sysOrgRegisters.get(0).getRegType());
|
||||||
|
sysOrgRegisterService.updateBatchById(sysOrgRegisters);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SysUserVo userInfoOneVo = new SysUserVo();
|
SysUserVo userInfoOneVo = new SysUserVo();
|
||||||
// if(sysStaffOrgVos.size()>1){
|
// if(sysStaffOrgVos.size()>1){
|
||||||
// userInfoOneVo.setSid(user.getSid());
|
// userInfoOneVo.setSid(user.getSid());
|
||||||
@@ -478,10 +503,21 @@ public class SysUserRest {
|
|||||||
@ApiOperation(value = "选择所登录的组织")
|
@ApiOperation(value = "选择所登录的组织")
|
||||||
@ApiOperationSupport(order = 30)
|
@ApiOperationSupport(order = 30)
|
||||||
public ResultBean selOrganization(@RequestBody SysUserDto dto){
|
public ResultBean selOrganization(@RequestBody SysUserDto dto){
|
||||||
|
SysOrganization sysOrganization=sysOrganizationService.getOne(new QueryWrapper<SysOrganization>().eq("sid",dto.getOrgSid()));
|
||||||
|
List<SysOrgRegister> sysOrgRegisters=new ArrayList<>();
|
||||||
|
if(sysOrganization.getPsid()!="0"){
|
||||||
|
sysOrgRegisters=sysOrgRegisterService.list(new QueryWrapper<SysOrgRegister>()
|
||||||
|
.eq("orgSid",sysOrganization.getPsid()));
|
||||||
|
}else {
|
||||||
|
sysOrgRegisters=sysOrgRegisterService.list(new QueryWrapper<SysOrgRegister>()
|
||||||
|
.eq("orgSid",dto.getOrgSid()));
|
||||||
|
}
|
||||||
|
if(sysOrgRegisters.get(0).getRegType().equals("1")){
|
||||||
|
return new ResultBean<>().fail().setMsg("您选择的单位在本系统的体验版已到期,请联系我们购买正式版本。");
|
||||||
|
}
|
||||||
SysUser sysUser=sysUserService.getOne(new QueryWrapper<SysUser>().eq("sid",dto.getUserSid()));
|
SysUser sysUser=sysUserService.getOne(new QueryWrapper<SysUser>().eq("sid",dto.getUserSid()));
|
||||||
sysUser.setOrgSid(dto.getOrgSid());
|
sysUser.setOrgSid(dto.getOrgSid());
|
||||||
SysUserVo userInfoOneVo = sysUserService.setUserRedisSessionToken(sysUser);
|
SysUserVo userInfoOneVo = sysUserService.setUserRedisSessionToken(sysUser);
|
||||||
|
|
||||||
sysUserService.updateToken(sysUser.getSid(),userInfoOneVo.getToken());
|
sysUserService.updateToken(sysUser.getSid(),userInfoOneVo.getToken());
|
||||||
return new ResultBean<>().success().setData(userInfoOneVo);
|
return new ResultBean<>().success().setData(userInfoOneVo);
|
||||||
}
|
}
|
||||||
@@ -502,9 +538,6 @@ public class SysUserRest {
|
|||||||
if (StringUtils.isBlank(mobile)) {
|
if (StringUtils.isBlank(mobile)) {
|
||||||
return new ResultBean<SysUserVo>().fail().setMsg("手机号不能为空");
|
return new ResultBean<SysUserVo>().fail().setMsg("手机号不能为空");
|
||||||
}
|
}
|
||||||
// if (userType == 0) {
|
|
||||||
// return new ResultBean<SysUserVo>().fail().setMsg("用户类型不能为空");
|
|
||||||
// }
|
|
||||||
if (StringUtils.isBlank(verificationCode)) {
|
if (StringUtils.isBlank(verificationCode)) {
|
||||||
return new ResultBean<SysUserVo>().fail().setMsg("验证码不能为空");
|
return new ResultBean<SysUserVo>().fail().setMsg("验证码不能为空");
|
||||||
} else {
|
} else {
|
||||||
@@ -519,20 +552,15 @@ public class SysUserRest {
|
|||||||
String ssSid="";
|
String ssSid="";
|
||||||
SysUser one = sysUserService.fetchByUserName(mobile);
|
SysUser one = sysUserService.fetchByUserName(mobile);
|
||||||
if (null != one) {
|
if (null != one) {
|
||||||
userInfoOneVo.setSid(one.getSid());
|
return rb.setMsg("该账号已存在,不能重复注册。请直接登录!");
|
||||||
List<SysStaffOrgVo> list=sysStaffOrgService.fetchOrgsByStaffSid(one.getStaffSid());
|
// userInfoOneVo.setSid(one.getSid());
|
||||||
if(list.size()!=0){
|
// List<SysStaffOrgVo> list=sysStaffOrgService.fetchOrgsByStaffSid(one.getStaffSid());
|
||||||
userInfoOneVo.setSysOrganizationVos(list);
|
// if(list.size()!=0){
|
||||||
return rb.success().setData(userInfoOneVo);
|
// userInfoOneVo.setSysOrganizationVos(list);
|
||||||
}else{
|
// return rb.success().setData(userInfoOneVo);
|
||||||
userInfoOneVo.setSysOrganizationVos(new ArrayList<>());
|
|
||||||
return rb.success().setData(userInfoOneVo);
|
|
||||||
}
|
|
||||||
// SysOrganization s=sysOrganizationService.getOne(new QueryWrapper<SysOrganization>().eq("name",dto.getCompanyName()));
|
|
||||||
// if(s!=null){
|
|
||||||
// return new ResultBean<SysUserVo>().fail().setMsg("公司重复!`");
|
|
||||||
// }else{
|
// }else{
|
||||||
// ssSid=one.getStaffSid();
|
// userInfoOneVo.setSysOrganizationVos(new ArrayList<>());
|
||||||
|
// return rb.success().setData(userInfoOneVo);
|
||||||
// }
|
// }
|
||||||
}else{
|
}else{
|
||||||
//"15097329653";
|
//"15097329653";
|
||||||
@@ -548,7 +576,7 @@ public class SysUserRest {
|
|||||||
su.setUserType(1);
|
su.setUserType(1);
|
||||||
su.setAccountType("1");
|
su.setAccountType("1");
|
||||||
sysUserService.save(su);
|
sysUserService.save(su);
|
||||||
ssi.setName(name+"系统管理员");
|
ssi.setName(name+"单位管理员");
|
||||||
ssi.setMobile(mobile);
|
ssi.setMobile(mobile);
|
||||||
sysStaffinfoService.save(ssi);
|
sysStaffinfoService.save(ssi);
|
||||||
ssSid=ssi.getSid();
|
ssSid=ssi.getSid();
|
||||||
@@ -570,7 +598,17 @@ public class SysUserRest {
|
|||||||
sysOrg.setOrgSidPath(sysOrg.getSid());
|
sysOrg.setOrgSidPath(sysOrg.getSid());
|
||||||
sysOrg.setPsid("0");
|
sysOrg.setPsid("0");
|
||||||
sysOrganizationService.save(sysOrg);
|
sysOrganizationService.save(sysOrg);
|
||||||
|
List<SysSource> sysSources=sysSourceService.list();
|
||||||
|
List<SysOrgRegister> sysOrgRegisters=new ArrayList<>();
|
||||||
|
for (SysSource sysSource : sysSources) {
|
||||||
|
SysOrgRegister sysOrgRegister=new SysOrgRegister();
|
||||||
|
sysOrgRegister.setOrgSid(sysOrg.getSid());
|
||||||
|
sysOrgRegister.setExpireDate(DateUtil.offsetDay(new Date(),7));
|
||||||
|
sysOrgRegister.setRegType("2");
|
||||||
|
sysOrgRegister.setSourceSid(sysSource.getSid());
|
||||||
|
sysOrgRegisters.add(sysOrgRegister);
|
||||||
|
}
|
||||||
|
sysOrgRegisterService.saveBatch(sysOrgRegisters);
|
||||||
SysStaffOrg sysStaffOrg=new SysStaffOrg();
|
SysStaffOrg sysStaffOrg=new SysStaffOrg();
|
||||||
sysStaffOrg.setStaffSid(sysUser.getStaffSid());
|
sysStaffOrg.setStaffSid(sysUser.getStaffSid());
|
||||||
sysStaffOrg.setOrgSid(sysOrg.getSid());
|
sysStaffOrg.setOrgSid(sysOrg.getSid());
|
||||||
@@ -578,28 +616,28 @@ public class SysUserRest {
|
|||||||
sysStaffOrg.setManageType("3");
|
sysStaffOrg.setManageType("3");
|
||||||
sysStaffOrgService.save(sysStaffOrg);
|
sysStaffOrgService.save(sysStaffOrg);
|
||||||
|
|
||||||
SysRole sysRole=new SysRole();
|
// SysRole sysRole=new SysRole();
|
||||||
sysRole.setCode("");
|
// sysRole.setCode("");
|
||||||
sysRole.setName("单位管理员");
|
// sysRole.setName("单位管理员");
|
||||||
sysRole.setSort(0);
|
// sysRole.setSort(0);
|
||||||
sysRole.setType(1);
|
// sysRole.setType(1);
|
||||||
sysRole.setOrgSid(sysOrg.getSid());
|
// sysRole.setOrgSid(sysOrg.getSid());
|
||||||
sysRole.setDataRuleId("1");
|
// sysRole.setDataRuleId("1");
|
||||||
sysRoleService.save(sysRole);
|
// sysRoleService.save(sysRole);
|
||||||
List<SysMenu> sysMenus=sysMenuService.list(new QueryWrapper<SysMenu>().eq("sourceSid",dto.getSourceSid()));
|
// List<SysMenu> sysMenus=sysMenuService.list(new QueryWrapper<SysMenu>().eq("sourceSid",dto.getSourceSid()));
|
||||||
// List<SysMenu> sysMenus=sysMenuService.list(new QueryWrapper<SysMenu>().eq("sourceSid","d936f1ba-03c3-11ec-bf08-48452053aa33"));
|
//// List<SysMenu> sysMenus=sysMenuService.list(new QueryWrapper<SysMenu>().eq("sourceSid","d936f1ba-03c3-11ec-bf08-48452053aa33"));
|
||||||
List<SysRoleAuthorize> sysRoleAuthorizes=new ArrayList<>();
|
// List<SysRoleAuthorize> sysRoleAuthorizes=new ArrayList<>();
|
||||||
for (SysMenu sysMenu : sysMenus) {
|
// for (SysMenu sysMenu : sysMenus) {
|
||||||
SysRoleAuthorize sysRoleAuthorize=new SysRoleAuthorize();
|
// SysRoleAuthorize sysRoleAuthorize=new SysRoleAuthorize();
|
||||||
sysRoleAuthorize.setRoleSid(sysRole.getSid());
|
// sysRoleAuthorize.setRoleSid("002");
|
||||||
sysRoleAuthorize.setMenuSid(sysMenu.getSid());
|
// sysRoleAuthorize.setMenuSid(sysMenu.getSid());
|
||||||
sysRoleAuthorize.setSourceSid(dto.getSourceSid());
|
// sysRoleAuthorize.setSourceSid(dto.getSourceSid());
|
||||||
sysRoleAuthorizes.add(sysRoleAuthorize);
|
// sysRoleAuthorizes.add(sysRoleAuthorize);
|
||||||
}
|
// }
|
||||||
sysRoleAuthorizeService.saveBatch(sysRoleAuthorizes);
|
// sysRoleAuthorizeService.saveBatch(sysRoleAuthorizes);
|
||||||
//
|
//
|
||||||
SysUserRole sysUserRole=new SysUserRole();
|
SysUserRole sysUserRole=new SysUserRole();
|
||||||
sysUserRole.setRoleSid(sysRole.getSid());
|
sysUserRole.setRoleSid("002");
|
||||||
sysUserRole.setUserSid(sysUser.getSid());
|
sysUserRole.setUserSid(sysUser.getSid());
|
||||||
sysUserRoleService.save(sysUserRole);
|
sysUserRoleService.save(sysUserRole);
|
||||||
SysUser user = null;
|
SysUser user = null;
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<SysMenuTreeVo> selectChildernList(String sid);
|
List<SysMenuTreeVo> selectChildernList(String sid);
|
||||||
|
List<SysMenuTreeVo> selectGroupChildernList(@Param("sid") String sid,@Param("sourceSid") String sourceSid,@Param("orgSid") String orgSid);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询该资源下是否有可用的菜单
|
* 查询该资源下是否有可用的菜单
|
||||||
@@ -79,4 +80,5 @@ public interface SysMenuMapper extends BaseMapper<SysMenu> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<SysMenuTreeVo> fetchRootMenuBySourceSid(@Param("sourceSid") String sourceSid);
|
List<SysMenuTreeVo> fetchRootMenuBySourceSid(@Param("sourceSid") String sourceSid);
|
||||||
|
List<SysMenuTreeVo> fetchGroupBySourceSid(@Param("sourceSid") String sourceSid,@Param("orgSid") String orgSid);
|
||||||
}
|
}
|
||||||
@@ -72,7 +72,39 @@
|
|||||||
(select name from sys_menu where sid=menu.pSid) as pName
|
(select name from sys_menu where sid=menu.pSid) as pName
|
||||||
FROM sys_menu menu
|
FROM sys_menu menu
|
||||||
left join sys_source source on source.sid = menu.sourceSid
|
left join sys_source source on source.sid = menu.sourceSid
|
||||||
where menu.pSid = #{sid} and menu.menu.menuType !='2'
|
where menu.pSid = #{sid} and menu.menuType !='2'
|
||||||
|
ORDER BY menu.sortNo ASC
|
||||||
|
</select>
|
||||||
|
<select id="selectGroupChildernList" resultType="com.yxt.portal.biz.sysmenu.SysMenuTreeVo">
|
||||||
|
SELECT menu.NAME AS NAME,
|
||||||
|
menu.sid AS sid,
|
||||||
|
menu.sid AS sid,
|
||||||
|
source.sid AS sourceSid,
|
||||||
|
menu.sortNo AS sortNo,
|
||||||
|
menu.pSid AS pSid,
|
||||||
|
source.sourceName AS sourceName,
|
||||||
|
menu.sid AS menuRootSid,
|
||||||
|
menu.menuUrl AS menuUrl,
|
||||||
|
menu.iconUrl AS iconUrl,
|
||||||
|
menu.pageName AS pageName,
|
||||||
|
menu.pageUrlRedirect AS pageUrlRedirect,
|
||||||
|
menu.pageUrl AS pageUrl,
|
||||||
|
menu.remarks,
|
||||||
|
menu.isEnable,
|
||||||
|
menu.menuType as menuType,
|
||||||
|
case menuType
|
||||||
|
when 0 then '目录'
|
||||||
|
when 1 then '菜单'
|
||||||
|
when 2 then '按钮'
|
||||||
|
end as menuTypeValue,
|
||||||
|
menu.isShow,
|
||||||
|
menu.cId as cId,
|
||||||
|
(select name from sys_menu where sid=menu.pSid) as pName
|
||||||
|
FROM sys_menu menu
|
||||||
|
left join sys_source source on source.sid = menu.sourceSid
|
||||||
|
left join sys_authorize_group a on a.menuSid=menu.sid
|
||||||
|
left join sys_org_authorize b on b.ahthorizeGroupSid=a.sid
|
||||||
|
where menu.pSid = #{sid} and a.sourceSid=#{sourceSid} and b.orgSid=#{orgSid} and menu.menuType !='2'
|
||||||
ORDER BY menu.sortNo ASC
|
ORDER BY menu.sortNo ASC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@@ -117,4 +149,38 @@
|
|||||||
WHERE source.sid = #{sourceSid} AND menu.psid='0' and menu.isDelete!=1
|
WHERE source.sid = #{sourceSid} AND menu.psid='0' and menu.isDelete!=1
|
||||||
ORDER BY menu.sortNo ASC
|
ORDER BY menu.sortNo ASC
|
||||||
</select>
|
</select>
|
||||||
|
<select id="fetchGroupBySourceSid" resultType="com.yxt.portal.biz.sysmenu.SysMenuTreeVo">
|
||||||
|
SELECT menu.NAME AS NAME,
|
||||||
|
menu.sid AS sid,
|
||||||
|
menu.sid AS sid,
|
||||||
|
source.sid AS sourceSid,
|
||||||
|
menu.sortNo AS sortNo,
|
||||||
|
menu.pSid AS pSid,
|
||||||
|
source.sourceName AS sourceName,
|
||||||
|
menu.sid AS menuRootSid,
|
||||||
|
menu.menuUrl AS menuUrl,
|
||||||
|
menu.iconUrl AS iconUrl,
|
||||||
|
menu.pageName AS pageName,
|
||||||
|
menu.pageUrlRedirect AS pageUrlRedirect,
|
||||||
|
menu.pageUrl AS pageUrl,
|
||||||
|
menu.remarks,
|
||||||
|
menu.isEnable,
|
||||||
|
menu.menuType as menuType,
|
||||||
|
case menuType
|
||||||
|
when 0 then '目录'
|
||||||
|
when 1 then '菜单'
|
||||||
|
when 2 then '按钮'
|
||||||
|
end as menuTypeValue,
|
||||||
|
menu.isShow,
|
||||||
|
menu.cId as cId,
|
||||||
|
if(menu.pSid=0,'顶级菜单','' )as pName,
|
||||||
|
b.orgSid
|
||||||
|
FROM sys_menu menu
|
||||||
|
LEFT JOIN sys_source source ON menu.sourceSid = source.sid
|
||||||
|
left join sys_authorize_group a on a.menuSid=menu.sid
|
||||||
|
left join sys_org_authorize b on b.ahthorizeGroupSid=a.sid
|
||||||
|
WHERE a.sourceSid = #{sourceSid} and b.orgSid =#{orgSid} AND menu.psid='0' and menu.isDelete!=1
|
||||||
|
ORDER BY menu.sortNo ASC
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -3,6 +3,7 @@ package com.yxt.portal.biz.sysmenu;
|
|||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.yxt.portal.biz.sysorgregister.SysOrgRegisterService;
|
||||||
import com.yxt.portal.biz.sysroleauthorize.SysMenuRoleVo;
|
import com.yxt.portal.biz.sysroleauthorize.SysMenuRoleVo;
|
||||||
import com.yxt.portal.biz.syssource.SysSourceService;
|
import com.yxt.portal.biz.syssource.SysSourceService;
|
||||||
import com.yxt.common.base.service.MybatisBaseService;
|
import com.yxt.common.base.service.MybatisBaseService;
|
||||||
@@ -40,6 +41,8 @@ public class SysMenuService extends MybatisBaseService<SysMenuMapper, SysMenu> {
|
|||||||
private SysMenuService sysMenuService;
|
private SysMenuService sysMenuService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysSourceService sysSourceService;
|
private SysSourceService sysSourceService;
|
||||||
|
@Autowired
|
||||||
|
SysOrgRegisterService sysOrgRegisterService;
|
||||||
|
|
||||||
public PagerVo<SysMenu> listPage(PagerQuery<SysMenuQuery> pq) {
|
public PagerVo<SysMenu> listPage(PagerQuery<SysMenuQuery> pq) {
|
||||||
SysMenuQuery query = pq.getParams();
|
SysMenuQuery query = pq.getParams();
|
||||||
@@ -150,11 +153,38 @@ public class SysMenuService extends MybatisBaseService<SysMenuMapper, SysMenu> {
|
|||||||
}
|
}
|
||||||
return sysSourceVos;
|
return sysSourceVos;
|
||||||
}
|
}
|
||||||
|
public List<SysMenuTreeVo> listAllVoForSourceG(SysMenuQuery query) {
|
||||||
|
//查询所有的资源列表
|
||||||
|
List<SysMenuTreeVo> sysSourceVos = sysSourceService.listMenuTreeVo(query.getSourceSid());
|
||||||
|
for (SysMenuTreeVo s : sysSourceVos) {
|
||||||
|
//根据资源sid查询该资源下的所有一级菜单
|
||||||
|
//List<SysMenuTreeVo> sysMenuVoList = sysSourceMenuService.fetchRootMenuBySourceSid(s.getSourceSid());
|
||||||
|
List<SysMenuTreeVo> sysMenuVoList = sysMenuService.fetchGroupBySourceSid(s.getSourceSid(),query.getOrgSid());
|
||||||
|
s.setChildren(sysMenuVoList);
|
||||||
|
s.setIsSource("1");
|
||||||
|
//判断该资源下的菜单是否有可用的状态
|
||||||
|
int isEnable = 1;
|
||||||
|
int count = baseMapper.selectBySourceSid(isEnable, s.getSourceSid());
|
||||||
|
if (count == 0) {
|
||||||
|
s.setIsEnable("0");
|
||||||
|
} else {
|
||||||
|
s.setIsEnable("1");
|
||||||
|
}
|
||||||
|
if (!sysMenuVoList.isEmpty()) {
|
||||||
|
// sysMenuVoList = getChildrensForMenuTree(sysMenuVoList);
|
||||||
|
getChildList(sysMenuVoList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return sysSourceVos;
|
||||||
|
}
|
||||||
|
|
||||||
public void getChildList(List<SysMenuTreeVo> list) {
|
public void getChildList(List<SysMenuTreeVo> list) {
|
||||||
list.forEach(str -> {
|
list.forEach(str -> {
|
||||||
String sid = str.getSid();
|
String sid = str.getSid();
|
||||||
List<SysMenuTreeVo> listChildren = baseMapper.selectChildernList(sid);
|
String sourceSid = str.getSourceSid();
|
||||||
|
String orgSid = str.getOrgSid();
|
||||||
|
// List<SysMenuTreeVo> listChildren = baseMapper.selectChildernList(sid);
|
||||||
|
List<SysMenuTreeVo> listChildren = baseMapper.selectGroupChildernList(sid,sourceSid,orgSid);
|
||||||
str.setChildren(listChildren);
|
str.setChildren(listChildren);
|
||||||
getChildList(listChildren);
|
getChildList(listChildren);
|
||||||
});
|
});
|
||||||
@@ -425,4 +455,7 @@ public class SysMenuService extends MybatisBaseService<SysMenuMapper, SysMenu> {
|
|||||||
public List<SysMenuTreeVo> fetchRootMenuBySourceSid(String sid) {
|
public List<SysMenuTreeVo> fetchRootMenuBySourceSid(String sid) {
|
||||||
return baseMapper.fetchRootMenuBySourceSid(sid);
|
return baseMapper.fetchRootMenuBySourceSid(sid);
|
||||||
}
|
}
|
||||||
|
public List<SysMenuTreeVo> fetchGroupBySourceSid(String sid,String orgSid) {
|
||||||
|
return baseMapper.fetchGroupBySourceSid(sid,orgSid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -60,4 +60,5 @@ public class SysMenuTreeVo implements Vo {
|
|||||||
private String cid;
|
private String cid;
|
||||||
@ApiModelProperty("子菜单")
|
@ApiModelProperty("子菜单")
|
||||||
private List<SysMenuTreeVo> children;
|
private List<SysMenuTreeVo> children;
|
||||||
|
private String orgSid;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
package com.yxt.portal.biz.sysorgregister;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.yxt.common.core.domain.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModel(value = "权限组表", description = "权限组表")
|
||||||
|
@TableName("sys_org_register")
|
||||||
|
@Data
|
||||||
|
public class SysOrgRegister extends BaseEntity {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty("orgsid")
|
||||||
|
private String orgSid;
|
||||||
|
|
||||||
|
@ApiModelProperty("资源sid")
|
||||||
|
private String sourceSid;
|
||||||
|
|
||||||
|
@ApiModelProperty("时间")
|
||||||
|
private Date expireDate;
|
||||||
|
@ApiModelProperty("1 体验 2 正式 3过期")
|
||||||
|
private String regType;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
package com.yxt.portal.biz.sysorgregister;
|
||||||
|
|
||||||
|
|
||||||
|
import com.yxt.common.core.dto.Dto;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModel(value = "权限组表 数据传输对象", description = "权限组表 数据传输对象")
|
||||||
|
@Data
|
||||||
|
public class SysOrgRegisterDto implements Dto {
|
||||||
|
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -8143707488992909267L;
|
||||||
|
@ApiModelProperty("orgsid")
|
||||||
|
private String orgSid;
|
||||||
|
|
||||||
|
@ApiModelProperty("资源sid")
|
||||||
|
private String sourceSid;
|
||||||
|
|
||||||
|
@ApiModelProperty("时间")
|
||||||
|
private String expireDate;
|
||||||
|
@ApiModelProperty("1 体验 2 正式 3过期")
|
||||||
|
private String regType;
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package com.yxt.portal.biz.sysorgregister;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yxt.portal.biz.sysmenu.SysMenuTreeVo;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Project: anrui_portal(门户建设) <br/>
|
||||||
|
* File: SysMenuMapper.java <br/>
|
||||||
|
* Class: com.yxt.anrui.portal.biz.sysmenu.SysMenuMapper <br/>
|
||||||
|
* Description: 菜单表. <br/>
|
||||||
|
* Copyright: Copyright (c) 2011 <br/>
|
||||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||||
|
* Makedate: 2021-08-03 00:24:28 <br/>
|
||||||
|
*
|
||||||
|
* @author liupopo
|
||||||
|
* @version 1.0
|
||||||
|
* @since 1.0
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SysOrgRegisterMapper extends BaseMapper<SysOrgRegister> {
|
||||||
|
|
||||||
|
List<SysMenuTreeVo> listMenuTreeVo(@Param("sourceSid") String sourceSid);
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.yxt.portal.biz.sysorgregister.SysOrgRegisterMapper">
|
||||||
|
<!-- <where> ${ew.sqlSegment} </where>-->
|
||||||
|
<!-- ${ew.customSqlSegment} -->
|
||||||
|
|
||||||
|
<!--将该资源下的所有一级菜单列表-->
|
||||||
|
<select id="listMenuTreeVo" resultType="com.yxt.portal.biz.sysmenu.SysMenuTreeVo">
|
||||||
|
select
|
||||||
|
<!--菜单名称-->
|
||||||
|
sourceName as name,
|
||||||
|
<!--资源名称-->
|
||||||
|
sourceName as sourceName,
|
||||||
|
<!--资源sid-->
|
||||||
|
sid as sourceSid,
|
||||||
|
<!--菜单sid-->
|
||||||
|
sid as sid
|
||||||
|
from sys_source
|
||||||
|
where sid=#{sourceSid}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
package com.yxt.portal.biz.sysorgregister;
|
||||||
|
|
||||||
|
|
||||||
|
import com.yxt.common.core.query.Query;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModel(value = "权限组表 查询条件 功能菜单设置查询用", description = "权限组表 查询条件 功能菜单设置查询用")
|
||||||
|
@Data
|
||||||
|
public class SysOrgRegisterQuery implements Query {
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty("资源sid")
|
||||||
|
private String sourceSid;
|
||||||
|
private String orgSid;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
package com.yxt.portal.biz.sysorgregister;
|
||||||
|
|
||||||
|
import com.yxt.common.base.service.MybatisBaseService;
|
||||||
|
import com.yxt.portal.biz.sysmenu.SysMenuTreeVo;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Project: anrui_portal(门户建设) <br/>
|
||||||
|
* File: SysMenuService.java <br/>
|
||||||
|
* Class: com.yxt.user.biz.sysmenu.SysMenuService <br/>
|
||||||
|
* Description: 菜单表 业务逻辑. <br/>
|
||||||
|
* Copyright: Copyright (c) 2011 <br/>
|
||||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||||
|
* Makedate: 2021-08-03 00:24:28 <br/>
|
||||||
|
*
|
||||||
|
* @author liupopo
|
||||||
|
* @version 1.0
|
||||||
|
* @since 1.0
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SysOrgRegisterService extends MybatisBaseService<SysOrgRegisterMapper, SysOrgRegister> {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public List<SysMenuTreeVo> listMenuTreeVo(String sourceSid) {
|
||||||
|
return baseMapper.listMenuTreeVo(sourceSid);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
package com.yxt.portal.biz.sysorgregister;
|
||||||
|
|
||||||
|
|
||||||
|
import com.yxt.common.core.vo.Vo;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Project: anrui_portal(门户建设) <br/>
|
||||||
|
* File: SysMenuVo.java <br/>
|
||||||
|
* Class: com.yxt.anrui.portal.api.sysmenu.SysMenuVo <br/>
|
||||||
|
* Description: 菜单表 视图数据对象. <br/>
|
||||||
|
* Copyright: Copyright (c) 2011 <br/>
|
||||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||||
|
* Makedate: 2021-08-03 00:24:28 <br/>
|
||||||
|
*
|
||||||
|
* @author liupopo
|
||||||
|
* @version 1.0
|
||||||
|
* @since 1.0
|
||||||
|
*/
|
||||||
|
@ApiModel(value = "菜单表 视图数据对象", description = "菜单表 视图数据对象")
|
||||||
|
@Data
|
||||||
|
public class SysOrgRegisterVo implements Vo {
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty("orgsid")
|
||||||
|
private String orgSid;
|
||||||
|
|
||||||
|
@ApiModelProperty("资源sid")
|
||||||
|
private String sourceSid;
|
||||||
|
|
||||||
|
@ApiModelProperty("时间")
|
||||||
|
private String expireDate;
|
||||||
|
@ApiModelProperty("1 体验 2 正式 3过期")
|
||||||
|
private String regType;
|
||||||
|
}
|
||||||
@@ -1,12 +1,17 @@
|
|||||||
package com.yxt.portal.biz.sysstaffinfo;
|
package com.yxt.portal.biz.sysstaffinfo;
|
||||||
|
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.yxt.portal.biz.sysorganization.AppContactSysOrganizationVo;
|
import com.yxt.portal.biz.sysorganization.AppContactSysOrganizationVo;
|
||||||
import com.yxt.portal.biz.sysorganization.SysOrganization;
|
import com.yxt.portal.biz.sysorganization.SysOrganization;
|
||||||
|
import com.yxt.portal.biz.sysorgregister.SysOrgRegister;
|
||||||
|
import com.yxt.portal.biz.sysorgregister.SysOrgRegisterService;
|
||||||
import com.yxt.portal.biz.syspost.SysPostService;
|
import com.yxt.portal.biz.syspost.SysPostService;
|
||||||
import com.yxt.portal.biz.sysrole.SysRoleVo;
|
import com.yxt.portal.biz.sysrole.SysRoleVo;
|
||||||
|
import com.yxt.portal.biz.syssource.SysSource;
|
||||||
|
import com.yxt.portal.biz.syssource.SysSourceService;
|
||||||
import com.yxt.portal.biz.sysstaffinfo.app.AppSysStaffQuery;
|
import com.yxt.portal.biz.sysstaffinfo.app.AppSysStaffQuery;
|
||||||
import com.yxt.portal.biz.sysstaffinfo.app.AppSysStaffVo;
|
import com.yxt.portal.biz.sysstaffinfo.app.AppSysStaffVo;
|
||||||
import com.yxt.portal.biz.sysstafforg.SysStaffOrg;
|
import com.yxt.portal.biz.sysstafforg.SysStaffOrg;
|
||||||
@@ -79,6 +84,10 @@ public class SysStaffinfoService extends MybatisBaseService<SysStaffinfoMapper,
|
|||||||
private SysRoleService sysRoleService;
|
private SysRoleService sysRoleService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private RedisUtil redisUtil;
|
private RedisUtil redisUtil;
|
||||||
|
@Autowired
|
||||||
|
SysOrgRegisterService sysOrgRegisterService;
|
||||||
|
@Autowired
|
||||||
|
SysSourceService sysSourceService;
|
||||||
|
|
||||||
public List<SysStaffinfoAppContactsVo> selectAppContactsList() {
|
public List<SysStaffinfoAppContactsVo> selectAppContactsList() {
|
||||||
List<SysStaffinfoAppContactsVo> list = baseMapper.selectAppContactsList();
|
List<SysStaffinfoAppContactsVo> list = baseMapper.selectAppContactsList();
|
||||||
@@ -501,7 +510,16 @@ public class SysStaffinfoService extends MybatisBaseService<SysStaffinfoMapper,
|
|||||||
ss.setRoleSid(sysUserRole.getRoleSid());
|
ss.setRoleSid(sysUserRole.getRoleSid());
|
||||||
sysUserRoleService.save(ss);
|
sysUserRoleService.save(ss);
|
||||||
}
|
}
|
||||||
|
// List<SysSource> sysSources=sysSourceService.list();
|
||||||
|
// List<SysOrgRegister> sysOrgRegisters=new ArrayList<>();
|
||||||
|
// for (SysSource sysSource : sysSources) {
|
||||||
|
// SysOrgRegister sysOrgRegister=new SysOrgRegister();
|
||||||
|
// sysOrgRegister.setOrgSid(dto.getOrgSid());
|
||||||
|
// sysOrgRegister.setExpireDate(DateUtil.offsetDay(new Date(),7));
|
||||||
|
// sysOrgRegister.setRegType("1");
|
||||||
|
// sysOrgRegister.setSourceSid(sysSource.getSid());
|
||||||
|
// sysOrgRegisters.add(sysOrgRegister);
|
||||||
|
// }
|
||||||
return rb.success().setMsg("添加员工信息成功");
|
return rb.success().setMsg("添加员工信息成功");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,5 +45,5 @@ public class SysStaffOrgVo implements Vo {
|
|||||||
private String staffName;
|
private String staffName;
|
||||||
@ApiModelProperty("员工手机号")
|
@ApiModelProperty("员工手机号")
|
||||||
private String mobile;
|
private String mobile;
|
||||||
private String type="2";
|
private String type="2";///1 体验 2 正式 3过期
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user