feat: 获取人员角色固定返回双角色

This commit is contained in:
曹鹏飞 2024-05-30 09:16:15 +08:00
parent d5394ee6d3
commit e3636fb902
1 changed files with 4 additions and 9 deletions

View File

@ -7,11 +7,9 @@ import com.nflg.product.bomnew.constant.EBomConstant;
import com.nflg.product.bomnew.constant.UserJobEnum;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
@Service
public class UserRoleService {
@ -20,12 +18,9 @@ public class UserRoleService {
MaterialMainService materialMainService;
public List<String> getUserPost(){
return materialMainService.getBaseMapper().getUserPost(SessionUtil.getRowId());
public List<String> getUserPost() {
//return materialMainService.getBaseMapper().getUserPost(SessionUtil.getRowId());
return Arrays.asList(EBomConstant.DESIGNER, EBomConstant.TECHNICIAN);
}
/**