qushaowei
2025-05-26 ed48aa9f30a87c528f071d06bf6b59d7d15428e9
lxzn-module-eam/src/main/java/org/jeecg/modules/spare/service/impl/SparePartCancellingStocksServiceImpl.java
@@ -47,7 +47,7 @@
            for (SparePartCancellingStocksDetail entity : sparePartCancellingStocksDetailList) {
                entity.setStatus(CommonConstant.STATUS_0);
                SparePart sparePart = sparePartService.getById(entity.getSparePartId());
                entity.setAuxiliaryQuantity(entity.getMainQuantity() * Double.parseDouble(sparePart.getConversionRatio()));
               /* entity.setAuxiliaryQuantity(entity.getMainQuantity() * Double.parseDouble(sparePart.getConversionRatio()));*/
                //外键设置
                entity.setSparePartCancellingId(sparePartCancellingStocks.getId());
                sparePartCancellingStocksDetailMapper.insert(entity);