feat: 获取人员角色固定返回双角色
This commit is contained in:
parent
d5394ee6d3
commit
e3636fb902
|
|
@ -7,11 +7,9 @@ import com.nflg.product.bomnew.constant.EBomConstant;
|
||||||
import com.nflg.product.bomnew.constant.UserJobEnum;
|
import com.nflg.product.bomnew.constant.UserJobEnum;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.ArrayList;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class UserRoleService {
|
public class UserRoleService {
|
||||||
|
|
@ -20,12 +18,9 @@ public class UserRoleService {
|
||||||
MaterialMainService materialMainService;
|
MaterialMainService materialMainService;
|
||||||
|
|
||||||
|
|
||||||
|
public List<String> getUserPost() {
|
||||||
|
//return materialMainService.getBaseMapper().getUserPost(SessionUtil.getRowId());
|
||||||
|
return Arrays.asList(EBomConstant.DESIGNER, EBomConstant.TECHNICIAN);
|
||||||
public List<String> getUserPost(){
|
|
||||||
|
|
||||||
return materialMainService.getBaseMapper().getUserPost(SessionUtil.getRowId());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue