|
|
|
|
@ -2186,6 +2186,12 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
|
Long oldId = oldMesPartEntity.getId(); |
|
|
|
|
oldMesPartEntity.setId(null); |
|
|
|
|
|
|
|
|
|
List<DsPartSub> dsPartSubList = partService.selectOldMesPartSubBySubCode(oldMesPartEntity.getPartCode()); |
|
|
|
|
if(!CollectionUtils.isEmpty(dsPartSubList)){ |
|
|
|
|
DsPartSub dsPartSub = dsPartSubList.get(0); |
|
|
|
|
oldMesPartEntity.setSinTerType(dsPartSub.getSinTerType()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
boolean saved = partService.save(oldMesPartEntity); |
|
|
|
|
if (!saved) { |
|
|
|
|
log.error("零件新增失败:{}", oldMesPartEntity.getPartCode()); |
|
|
|
|
|