qushaowei
2023-12-13 7f11e541f239d8c816bcefb32aae6b9efa31e28e
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);