package org.jeecg.modules.toolBorrowingRecord.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.api.model.CabinetStocks;
import org.jeecg.modules.toolBorrowingRecord.entity.ToolBorrowingRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.toolBorrowingRecord.entity.ToolIoRecord;
import org.jeecg.modules.toolSheet.entity.ToolSheet;

import java.util.List;

/**
 * @Description: 工器具借用记录
 * @Author: jeecg-boot
 * @Date:   2025-01-15
 * @Version: V1.0
 */
public interface IToolBorrowingRecordService extends IService<ToolBorrowingRecord> {

    boolean returnTool(String id) throws Exception;

    List<ToolSheet> queryToolByOrder(String workOrder) throws Exception;

    boolean inOutRecordSync(List<CabinetStocks> records);

    List<ToolIoRecord> loadToolRecord(String toolId) throws Exception;
}
