修改OTA
This commit is contained in:
+4
-4
@@ -200,8 +200,8 @@ public class OtaBaSjListServiceImpl extends ServiceImpl<OtaBaSjListMapper, OtaBa
|
|||||||
File sjmbcxFile = ImportFileUtil.findFile(exportFile, "升级目标车型.xlsx");
|
File sjmbcxFile = ImportFileUtil.findFile(exportFile, "升级目标车型.xlsx");
|
||||||
otaBaSjSjmbcxService.exportData(sjmbcxFile, otaId, cut);
|
otaBaSjSjmbcxService.exportData(sjmbcxFile, otaId, cut);
|
||||||
|
|
||||||
File mbclFile = ImportFileUtil.findFile(exportFile, "本次升级涉及的目标车辆.xlsx");
|
File mbclFile = ImportFileUtil.findFile(exportFile, "本次升级的目标车辆.xlsx");
|
||||||
File mbclAttFile = ImportFileUtil.findFoder(exportFile, "本次升级涉及的目标车辆");
|
File mbclAttFile = ImportFileUtil.findFoder(exportFile, "本次升级的目标车辆");
|
||||||
otaBaSjSjmbclService.exportData(mbclFile, mbclAttFile, otaId, cut);
|
otaBaSjSjmbclService.exportData(mbclFile, mbclAttFile, otaId, cut);
|
||||||
|
|
||||||
|
|
||||||
@@ -211,10 +211,10 @@ public class OtaBaSjListServiceImpl extends ServiceImpl<OtaBaSjListMapper, OtaBa
|
|||||||
File pgAtt2File = ImportFileUtil.findFoder(pgAttFile, "硬件版本号附件");
|
File pgAtt2File = ImportFileUtil.findFoder(pgAttFile, "硬件版本号附件");
|
||||||
otaBaSjSjyxpgService.exportData(pgFile, pgAtt1File, pgAtt2File, otaId, cut);
|
otaBaSjSjyxpgService.exportData(pgFile, pgAtt1File, pgAtt2File, otaId, cut);
|
||||||
|
|
||||||
File sjSjxtbhFile = ImportFileUtil.findFile(exportFile, "本次升级的系统名称与变更参数.xlsx");
|
File sjSjxtbhFile = ImportFileUtil.findFile(exportFile, "本次升级的系统名称与参数变化.xlsx");
|
||||||
otaBaSjSjxtbhService.exportData(sjSjxtbhFile, otaId, cut);
|
otaBaSjSjxtbhService.exportData(sjSjxtbhFile, otaId, cut);
|
||||||
|
|
||||||
File sjfzbhFile = ImportFileUtil.findFile(exportFile, "本次升级的驾驶辅助功能与参数变化.xlsx");
|
File sjfzbhFile = ImportFileUtil.findFile(exportFile, "本次升级的驾驶辅助功能名称与参数变化.xlsx");
|
||||||
otaBaSjSjfzbhService.exportData(sjfzbhFile, otaId, cut);
|
otaBaSjSjfzbhService.exportData(sjfzbhFile, otaId, cut);
|
||||||
|
|
||||||
File fsFile = ImportFileUtil.findFile(exportFile, "用户告知内容及方式.xlsx");
|
File fsFile = ImportFileUtil.findFile(exportFile, "用户告知内容及方式.xlsx");
|
||||||
|
|||||||
+2
-2
@@ -216,7 +216,7 @@ public class OtaBaSjSjfzbhServiceImpl extends ServiceImpl<OtaBaSjSjfzbhMapper, O
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void exportTemplate(HttpServletResponse response, HttpServletRequest request) throws Exception {
|
public void exportTemplate(HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||||
ImportFileUtil.exportTemplate(response, templatePath + "本次升级的驾驶辅助功能与参数变化.zip");
|
ImportFileUtil.exportTemplate(response, templatePath + "本次升级的驾驶辅助功能名称与参数变化.zip");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -229,7 +229,7 @@ public class OtaBaSjSjfzbhServiceImpl extends ServiceImpl<OtaBaSjSjfzbhMapper, O
|
|||||||
public void parseFileList(List<File> upLoadFiles, String otaId, String cut, StringBuilder errMsg) throws Exception {
|
public void parseFileList(List<File> upLoadFiles, String otaId, String cut, StringBuilder errMsg) throws Exception {
|
||||||
File upFile = null;
|
File upFile = null;
|
||||||
for (File f : upLoadFiles) {
|
for (File f : upLoadFiles) {
|
||||||
if (f.getName().equals("本次升级的驾驶辅助功能与参数变化.xlsx")) {
|
if (f.getName().equals("本次升级的驾驶辅助功能名称与参数变化.xlsx")) {
|
||||||
upFile = f;
|
upFile = f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -177,14 +177,14 @@ public class OtaBaSjSjmbclServiceImpl extends ServiceImpl<OtaBaSjSjmbclMapper, O
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void exportTemplate(HttpServletResponse response, HttpServletRequest request) throws Exception {
|
public void exportTemplate(HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||||
ImportFileUtil.exportTemplate(response, templatePath + "本次升级涉及的目标车辆.zip");
|
ImportFileUtil.exportTemplate(response, templatePath + "本次升级的目标车辆.zip");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public OtaBaSjSjmbcl parseFileList(List<File> upLoadFiles, String otaId, String cut, StringBuilder errMsg) throws Exception {
|
public OtaBaSjSjmbcl parseFileList(List<File> upLoadFiles, String otaId, String cut, StringBuilder errMsg) throws Exception {
|
||||||
File upFile = null;
|
File upFile = null;
|
||||||
for (File f : upLoadFiles) {
|
for (File f : upLoadFiles) {
|
||||||
if (f.getName().equals("本次升级涉及的目标车辆.xlsx")) {
|
if (f.getName().equals("本次升级的目标车辆.xlsx")) {
|
||||||
upFile = f;
|
upFile = f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -197,7 +197,7 @@ public class OtaBaSjSjxtbhServiceImpl extends ServiceImpl<OtaBaSjSjxtbhMapper, O
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void exportTemplate(HttpServletResponse response, HttpServletRequest request) throws Exception {
|
public void exportTemplate(HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||||
ImportFileUtil.exportTemplate(response, templatePath + "本次升级的系统名称与变更参数.zip");
|
ImportFileUtil.exportTemplate(response, templatePath + "本次升级的系统名称与参数变化.zip");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -210,7 +210,7 @@ public class OtaBaSjSjxtbhServiceImpl extends ServiceImpl<OtaBaSjSjxtbhMapper, O
|
|||||||
public void parseFileList(List<File> upLoadFiles, String otaId, String cut, StringBuilder errMsg) throws Exception {
|
public void parseFileList(List<File> upLoadFiles, String otaId, String cut, StringBuilder errMsg) throws Exception {
|
||||||
File upFile = null;
|
File upFile = null;
|
||||||
for (File f : upLoadFiles) {
|
for (File f : upLoadFiles) {
|
||||||
if (f.getName().equals("本次升级的系统名称与变更参数.xlsx")) {
|
if (f.getName().equals("本次升级的系统名称与参数变化.xlsx")) {
|
||||||
upFile = f;
|
upFile = f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -11343,7 +11343,10 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
for (ProjectLawsInventoryEO projectLawsInventoryEO : projectLawsInventoryEOS) {
|
for (ProjectLawsInventoryEO projectLawsInventoryEO : projectLawsInventoryEOS) {
|
||||||
//未发起或拒绝 可以发起清单确认
|
//未发起或拒绝 可以发起清单确认
|
||||||
boolean checkStatus = (StringUtils.equals(projectLawsInventoryEO.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
boolean checkStatus = (StringUtils.equals(projectLawsInventoryEO.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||||
||StringUtils.equals(projectLawsInventoryEO.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()));
|
||StringUtils.equals(projectLawsInventoryEO.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||||
|
||StringUtils.equals(projectLawsInventoryEO.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||||
|
||StringUtils.equals(projectLawsInventoryEO.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||||
|
);
|
||||||
//如果该数据的法规工程师不为空
|
//如果该数据的法规工程师不为空
|
||||||
boolean checkUser = (StringUtils.isNotEmpty(projectLawsInventoryEO.getRegulationOwnerId()));
|
boolean checkUser = (StringUtils.isNotEmpty(projectLawsInventoryEO.getRegulationOwnerId()));
|
||||||
if(checkStatus && checkUser){
|
if(checkStatus && checkUser){
|
||||||
|
|||||||
Reference in New Issue
Block a user