修改OTA权限

This commit is contained in:
高嵩
2023-08-22 18:26:30 +08:00
parent 9afc05eb89
commit 51d29bc69a
3 changed files with 28 additions and 0 deletions
@@ -61,4 +61,6 @@ public interface IOtaManageReceiveService extends IService<OtaManageReceive> {
List<OtaManageReceive> queryList();
List<OtaManageReceive> getReceiveByVdr(List<String> vdrList);
List<OtaManageReceive> getReceiveByplanned(String plannedBpLaunchBatch);
}
@@ -84,6 +84,8 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
@Autowired
private IOtaManageReceiveService otaManageReceiveService;
@Value(value = "${jero.path.upload}")
private String upLoadPath;
@@ -864,6 +866,22 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
*/
@Override
public void issueNotice(String id) {
//根据版本查出所有vdr
List<OtaManageReceive> omrList = otaManageReceiveService.getReceiveByplanned(id);
List<String> appliedVehicleProjectList = omrList.stream()
.filter(e -> StringUtils.isNotBlank(e.getAppliedVehicleProject()))
.map(OtaManageReceive::getAppliedVehicleProject).distinct().collect(Collectors.toList());
Map<String,String> appMap = new HashMap<>();
for (String appStr : appliedVehicleProjectList) {
if(StringUtils.isNotEmpty(appStr)){
String[] appStrs = appStr.split(" ");
}
}
//查询所有NT2平台的项目
ProjectLibraryBase plb = new ProjectLibraryBase();
plb.setDigitalPlatform("NT2");
List<ProjectLibraryBase> plbList = projectLibraryBaseService.getList(plb);
}
@@ -1,5 +1,6 @@
package com.jero.modules.ota.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jero.modules.ota.entity.OtaManageReceive;
import com.jero.modules.ota.mapper.OtaManageReceiveMapper;
import com.jero.modules.ota.service.IOtaManageReceiveService;
@@ -91,4 +92,11 @@ public class OtaManageReceiveServiceImpl extends ServiceImpl<OtaManageReceiveMap
public List<OtaManageReceive> getReceiveByVdr(List<String> vdrList) {
return this.getBaseMapper().getReceiveByVdr(vdrList);
}
@Override
public List<OtaManageReceive> getReceiveByplanned(String plannedBpLaunchBatch) {
QueryWrapper<OtaManageReceive> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(OtaManageReceive::getPlannedBpLaunchBatch, plannedBpLaunchBatch);
return this.list(queryWrapper);
}
}