|
|
@@ -75,7 +75,7 @@ public class KnowledgeBaseManagerImpl extends AbstractCommManager implements Kno |
|
|
|
throw new ManagerException("没找到该条知识库信息"); |
|
|
|
} |
|
|
|
res.setWorkOrderProcess(orderProcess); |
|
|
|
res.setFilms(fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.WORK_ORDER_PROCESS.getCode())); |
|
|
|
res.setFilms(fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.WORK_ORDER_PROCESS)); |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
@@ -113,7 +113,7 @@ public class KnowledgeBaseManagerImpl extends AbstractCommManager implements Kno |
|
|
|
orderProcess.setApplicablePerson(null); |
|
|
|
workOrderProcessRepo.merge(orderProcess); |
|
|
|
// 处理附件 |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.WORK_ORDER_PROCESS.getCode()); |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.WORK_ORDER_PROCESS); |
|
|
|
if (!list.isEmpty()){ |
|
|
|
for (KnowledgeFileInfo info : list){ |
|
|
|
fileInfoRepo.delete(info); |
|
|
@@ -171,7 +171,7 @@ public class KnowledgeBaseManagerImpl extends AbstractCommManager implements Kno |
|
|
|
throw new ManagerException("没找到该条知识库信息"); |
|
|
|
} |
|
|
|
workOrderProcessRepo.delete(orderProcess); |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.WORK_ORDER_PROCESS.getCode()); |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.WORK_ORDER_PROCESS); |
|
|
|
if (!list.isEmpty()){ |
|
|
|
for (KnowledgeFileInfo info : list){ |
|
|
|
fileInfoRepo.delete(info); |
|
|
@@ -197,7 +197,7 @@ public class KnowledgeBaseManagerImpl extends AbstractCommManager implements Kno |
|
|
|
throw new ManagerException("没找到该条知识库信息"); |
|
|
|
} |
|
|
|
res.setBusinessInfo(orderProcess); |
|
|
|
res.setFilms(fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.BUSINESS_INFO.getCode())); |
|
|
|
res.setFilms(fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.BUSINESS_INFO)); |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
@@ -235,7 +235,7 @@ public class KnowledgeBaseManagerImpl extends AbstractCommManager implements Kno |
|
|
|
businessInfo.setApplicablePerson(null); |
|
|
|
businessInfoRepo.merge(businessInfo); |
|
|
|
// 处理附件 |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(businessInfo.getId(), KnowlegdeType.BUSINESS_INFO.getCode()); |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(businessInfo.getId(), KnowlegdeType.BUSINESS_INFO); |
|
|
|
if (!list.isEmpty()){ |
|
|
|
for (KnowledgeFileInfo info : list){ |
|
|
|
fileInfoRepo.delete(info); |
|
|
@@ -293,7 +293,7 @@ public class KnowledgeBaseManagerImpl extends AbstractCommManager implements Kno |
|
|
|
throw new ManagerException("没找到该条知识库信息"); |
|
|
|
} |
|
|
|
businessInfoRepo.delete(orderProcess); |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.BUSINESS_INFO.getCode()); |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.BUSINESS_INFO); |
|
|
|
if (!list.isEmpty()){ |
|
|
|
for (KnowledgeFileInfo info : list){ |
|
|
|
fileInfoRepo.delete(info); |
|
|
@@ -319,7 +319,7 @@ public class KnowledgeBaseManagerImpl extends AbstractCommManager implements Kno |
|
|
|
throw new ManagerException("没找到该条知识库信息"); |
|
|
|
} |
|
|
|
res.setAfterSaleAudit(orderProcess); |
|
|
|
res.setFilms(fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.AFTER_SALES_AUDIT.getCode())); |
|
|
|
res.setFilms(fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.AFTER_SALES_AUDIT)); |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
@@ -358,7 +358,7 @@ public class KnowledgeBaseManagerImpl extends AbstractCommManager implements Kno |
|
|
|
afterSaleAudit.setApplicablePerson(null); |
|
|
|
afterSaleAuditRepo.merge(afterSaleAudit); |
|
|
|
// 处理附件 |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(afterSaleAudit.getId(), KnowlegdeType.AFTER_SALES_AUDIT.getCode()); |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(afterSaleAudit.getId(), KnowlegdeType.AFTER_SALES_AUDIT); |
|
|
|
if (!list.isEmpty()){ |
|
|
|
for (KnowledgeFileInfo info : list){ |
|
|
|
fileInfoRepo.delete(info); |
|
|
@@ -417,7 +417,7 @@ public class KnowledgeBaseManagerImpl extends AbstractCommManager implements Kno |
|
|
|
throw new ManagerException("没找到该条知识库信息"); |
|
|
|
} |
|
|
|
afterSaleAuditRepo.delete(orderProcess); |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.AFTER_SALES_AUDIT.getCode()); |
|
|
|
List<KnowledgeFileInfo> list = fileInfoRepo.findByKnowledgeIdAndKnowledgeType(orderProcess.getId(), KnowlegdeType.AFTER_SALES_AUDIT); |
|
|
|
if (!list.isEmpty()){ |
|
|
|
for (KnowledgeFileInfo info : list){ |
|
|
|
fileInfoRepo.delete(info); |