studio权限

This commit is contained in:
zhn
2023-08-25 17:17:18 +08:00
parent e139c54a65
commit 3cc9b3328d
@@ -297,9 +297,11 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
*/
@Override
public List<OtaManageApplyEO> getAllCarPage(OtaManageApplyEO otaManageApplyEO) {
List<OtaManageApplyEO> otaManageApplyEOList = this.getBaseMapper().getOtaList(otaManageApplyEO);
List<OtaManageApplyEO> otaManageApplyEOList = new ArrayList<>();
//studio数据权限
if(isStudio()) {
if(isOtaManager()) {
otaManageApplyEOList = this.getBaseMapper().getOtaList(otaManageApplyEO);
}else{
otaManageApplyEOList = getStudioData(otaManageApplyEO, otaManageApplyEOList);
}
if (!otaManageApplyEOList.isEmpty()) {
@@ -881,7 +883,7 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
@Override
public List<String> getCarList(String cut, String plannedBpLaunchBatch) {
Set<String> set = new HashSet<>();
if(isStudio()){
if(!isOtaManager()){
List<ProjectNameInfoEO> nameInfoEOList = projectNameInfoEOService.list();
List<DictModel> targetMarketList = sysDictService.queryDictItemsByCode(DicCodeEnum.REGION.getCode());
@@ -944,7 +946,7 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
}
}
result = result.stream().distinct().collect(Collectors.toList());
if(isStudio()){
if(!isOtaManager()){
result.retainAll(set);
if (CutEnum.CN.getValue().equals(cut)) {
result.add("全部");