From 4e0c8811bbe4456b6768ac30404f5fc22e92c7c8 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 22 Jul 2025 17:28:34 +0800 Subject: [PATCH] 2025-07-22 --- .../TechnicalSpecificationServiceImpl.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java b/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java index 7c90b4ca..a8571a57 100644 --- a/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java +++ b/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java @@ -624,22 +624,22 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification public void updateBMRoutingDetail(PlmBmRoutingData inData){ SysUserEntity sysUserEntity = (SysUserEntity) SecurityUtils.getSubject().getPrincipal(); inData.setUsername(sysUserEntity.getUsername()); - List checkData=technicalSpecificationMapper.searchBMRoutingDetail(inData); + // List checkData=technicalSpecificationMapper.searchBMRoutingDetail(inData); List plmTechnicalSpecificationTeams=new ArrayList<>(); - if(checkData.size()==0){ - //没有就新增 - technicalSpecificationMapper.saveBMRoutingDetail(inData); - }else { - // PlmProjectInfoData checkPlmProjectInfoData=projectDao.checkPlmProjectInfoData(inData); - // if(!checkPlmProjectInfoData.getCustomerId().equals(inData.getCustomerId())){ - // PlmProjectContactData projectContactData=new PlmProjectContactData(); - // projectContactData.setSite(checkPlmProjectInfoData.getSite()); - // projectContactData.setProjectId(checkPlmProjectInfoData.getProjectId()); - // projectDao.deleteProjectContact(projectContactData); - // } - technicalSpecificationMapper.updateBMRoutingDetail(inData); - - } +// if(checkData.size()==0){ +// //没有就新增 +// technicalSpecificationMapper.saveBMRoutingDetail(inData); +// }else { +// // PlmProjectInfoData checkPlmProjectInfoData=projectDao.checkPlmProjectInfoData(inData); +// // if(!checkPlmProjectInfoData.getCustomerId().equals(inData.getCustomerId())){ +// // PlmProjectContactData projectContactData=new PlmProjectContactData(); +// // projectContactData.setSite(checkPlmProjectInfoData.getSite()); +// // projectContactData.setProjectId(checkPlmProjectInfoData.getProjectId()); +// // projectDao.deleteProjectContact(projectContactData); +// // } +// technicalSpecificationMapper.updateBMRoutingDetail(inData); +// +// } PlmTechnicalSpecificationSheetData deleteData=new PlmTechnicalSpecificationSheetData(); deleteData.setCodeNo(inData.getCodeNo()); deleteData.setSite(inData.getSite());