chenhj
2 天以前 60264687a654d2e7fc46dc9dc81e4fd663210b78
main-business/src/main/java/com/ruoyi/business/service/impl/InputInventoryRecordServiceImpl.java
@@ -6,9 +6,7 @@
import com.ruoyi.business.entity.InputInventoryRecord;
import com.ruoyi.business.mapper.InputInventoryRecordMapper;
import com.ruoyi.business.service.InputInventoryRecordService;
import com.ruoyi.business.service.InventorySummaryService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
@@ -27,10 +25,7 @@
@Service
@RequiredArgsConstructor
public class InputInventoryRecordServiceImpl extends ServiceImpl<InputInventoryRecordMapper, InputInventoryRecord> implements InputInventoryRecordService {
    @Autowired
    private InputInventoryRecordMapper inputInventoryRecordMapper;
    @Autowired
    private InventorySummaryService inventorySummaryService;
    private final InputInventoryRecordMapper inputInventoryRecordMapper;
    @Override
    public int insertInputInventoryRecord(PendingInventoryDto pendingInventoryDto, OfficialInventoryDto officialInventoryDto, BigDecimal quantity) {
@@ -48,9 +43,18 @@
        }
        inputInventoryRecord.setQuantity(quantity);
        inputInventoryRecordMapper.insert(inputInventoryRecord);
        return inputInventoryRecordMapper.insert(inputInventoryRecord);
        // 更新库存
        return inventorySummaryService.updateInventory(pendingInventoryDto, officialInventoryDto);
//         inventorySummaryService.updateInventory(pendingInventoryDto, officialInventoryDto);
    }
    @Override
    public int deleteInputInventoryRecord(Long[] ids) {
        return 0;
    }
}