package org.jeecg.modules.base.service;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import org.jeecg.modules.base.entity.ProductionLineWarehouse;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import org.jeecg.modules.base.entity.Warehouse;
|
|
import java.io.Serializable;
|
import java.util.Collection;
|
import java.util.List;
|
import java.util.Map;
|
import java.util.Set;
|
|
/**
|
* @Description: 线边库管理
|
* @Author: jeecg-boot
|
* @Date: 2023-01-28
|
* @Version: V1.0
|
*/
|
public interface IProductionLineWarehouseService extends IService<ProductionLineWarehouse> {
|
/**
|
* 获取初始版本号
|
* @return
|
*/
|
public Integer getInitVersion();
|
/**
|
* 获取版本列表
|
* @param page
|
* @param workshopId
|
* @param version
|
* @return
|
*/
|
Page<Map<String, Object>> getWarehouseList(Page<Map<String,Object>> page,
|
Integer version,
|
String workshopId
|
);
|
|
/**
|
* 删除一对多
|
*
|
* @param id
|
*/
|
public void delMain (String id);
|
|
/**
|
* 批量删除一对多
|
*
|
* @param idList
|
*/
|
public void delBatchMain (Collection<? extends Serializable> idList);
|
/**
|
* 获取所有版本号
|
* @param
|
* @return
|
*/
|
public Set<Integer> getVersionList();
|
/**
|
* 获取最后一次生效列表
|
* @return
|
*/
|
List<ProductionLineWarehouse> getLastUsableList();
|
/**
|
* 获取当前生效列表
|
* @return
|
*/
|
List<ProductionLineWarehouse> getUsableList();
|
/**
|
* 查当前生效版本和上次生效版本
|
* @return
|
*/
|
Map<String,Object> getNowAndLastUsableVersion();
|
/**
|
* 获取版本状态根据版本号
|
* @param version
|
* @return
|
*/
|
List<String> getVersionStatusByVersion(Integer version);
|
|
|
|
}
|