/* * Copyright (c) 2018-2025, ztt All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the pig4cloud.com developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: ztt */ package com.chinaztt.mes.basic.service; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; import com.chinaztt.mes.basic.entity.Warehouse; import com.chinaztt.mes.basic.excel.WarehouseData; import com.chinaztt.ztt.common.core.util.R; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletResponse; import java.util.List; /** * 仓库基础数据 * * @author sunxl * @date 2020-09-18 09:32:01 */ public interface WarehouseService extends IService { /** * Description: 查询仓库中的相关的工厂编号 * * @param page * @param warehouse * @return IPage * @date: 2020/8/28 11:06 */ IPage> getWarehouse(Page page, QueryWrapper warehouse); /** * Description: 根据id删除仓库 * * @param id * @date: 2020/8/28 11:06 */ void deleteWarehouse(Long id); /** * 上传文件 * @param file * @return */ R uploadFile(MultipartFile file); /** * 删除文件 * @param fileName * @return */ R deleteFile(String fileName); /** * 获取文件 * @param bucket * @param url * @param response */ void getFile(String bucket, String url, HttpServletResponse response); /** * Description: 根据id删除图片 * * @param id * @return R * @date: 2020/8/28 11:06 */ R deleteByFile(Long id); /** * 导入excel数据 * @param list */ void importWarehouseExcel(List list); }