Jelajahi Sumber

外部报验-重新发起-解决其他报验历史记录没存问题

wangming 4 bulan lalu
induk
melakukan
4505e46c87

+ 4 - 2
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxOutsideInspectionItpServiceImpl.java

@@ -1741,12 +1741,14 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
         }
 
         //钢结构
-        if("10".equals(itpDo.getInspectiontype())) {
+        if("10".equals(itpDo.getInspectiontype())
+                || ("80".equals(itpDo.getInspectiontype())) && "10".equals(itpDo.getOthertype())) {
             itpNdtResultService.copyByItpId(itpDo.getId(), newItpIdList);
         }
         String[] array = {"10", "20", "30", "60"};
         List<String> qcTypeList = Arrays.asList(array);
-        if(qcTypeList.contains(itpDo.getInspectiontype())) {
+        if(qcTypeList.contains(itpDo.getInspectiontype())
+                || ("80".equals(itpDo.getInspectiontype())) && ObjectUtil.isEmpty(itpDo.getOthertype())) {
             qcItemResultService.copyByItpId(itpDo.getId(), newItpIdList);
         }
     }