/* * 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.alibaba.fastjson.JSONObject; 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.dto.LocationDTO; import com.chinaztt.mes.basic.dto.LocationIfsMoveDTO; import com.chinaztt.mes.basic.entity.Location; import com.chinaztt.mes.basic.excel.LocationData; import com.chinaztt.ztt.common.core.util.R; import java.util.List; import java.util.Map; /** * 库位基础数据 * * @author sunxl * @date 2020-09-21 08:18:12 */ public interface LocationService extends IService { /** * Description: 查询库位中的相关的工厂编号 * * @param page * @param ew * @return IPage * @date: 2020/8/28 11:06 */ IPage> getLoc(Page page, QueryWrapper ew); /** * C 查询库位中的相关的工厂编号-扩展 * * @param page * @param ew * @return */ IPage> getLocationDtoPage(Page page, QueryWrapper ew); /** * Description: 根据id删除库位基础数据 * * @param ids * @return * @date: 2020/8/28 11:06 */ void deleteLocation(List ids); /** * Description: 查询库位中的名字和id * * @param location * @return List * @date: 2020/8/28 11:06 */ List getPrepare(Location location); /** * 导入excel数据 * * @param list */ void importLocationExcel(List list); /** * PDA查询所有 * * @param gen * @return */ List pdaList(QueryWrapper gen); /** * 获取默认库位号 * * @return */ Location getDeaultLocation(); /** * 获取ifs接口 * * @return */ R getIfsLocation(String locationGroup, String locationNo, String locationDesc); /** * 获取ifs接口 * * @return */ R getIfsLocationGroup(); /** * ifs移库 * @param moveDTO * @return */ R moveIfsLocation(LocationIfsMoveDTO moveDTO); /** * Description: 通过所属仓库分组查询库位号 * * @param localGroups * @return List */ List getLocationByGroups(List localGroups); }