fix:仓库、库区和库位增加删除校验(当还有相关库存时不能删除)
This commit is contained in:
parent
f1fceb2dc6
commit
6b7e8b67b4
@ -71,4 +71,25 @@ public interface IWmMaterialStockService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteWmMaterialStockByMaterialStockId(Long materialStockId);
|
public int deleteWmMaterialStockByMaterialStockId(Long materialStockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据库位id查询相关库存现有量数据
|
||||||
|
* @param areaId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<WmMaterialStock> getByAreaId(Long areaId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据库区id查询相关库存现有量
|
||||||
|
* @param locationId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<WmMaterialStock> getLocationId(Long locationId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据仓库id查询相关库存现有量
|
||||||
|
* @param warehouseId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<WmMaterialStock> getByWarehouseId(Long warehouseId);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package com.ktg.mes.wm.service;
|
package com.ktg.mes.wm.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.ktg.common.core.domain.AjaxResult;
|
||||||
import com.ktg.mes.wm.domain.WmStorageArea;
|
import com.ktg.mes.wm.domain.WmStorageArea;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -67,11 +69,11 @@ public interface IWmStorageAreaService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除库位设置
|
* 批量删除库位设置
|
||||||
*
|
*
|
||||||
* @param areaIds 需要删除的库位设置主键集合
|
* @param areaIds 需要删除的库位设置主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteWmStorageAreaByAreaIds(Long[] areaIds);
|
public AjaxResult deleteWmStorageAreaByAreaIds(Long[] areaIds);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除库位设置信息
|
* 删除库位设置信息
|
||||||
@ -94,4 +96,12 @@ public interface IWmStorageAreaService
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public int deleteByLocationId(Long locationId);
|
public int deleteByLocationId(Long locationId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据库区ids删除相关的库位数据
|
||||||
|
*
|
||||||
|
* @param locationIds
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
int deleteByLocationIds(Long[] locationIds);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package com.ktg.mes.wm.service;
|
package com.ktg.mes.wm.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.ktg.common.core.domain.AjaxResult;
|
||||||
import com.ktg.mes.wm.domain.WmWarehouse;
|
import com.ktg.mes.wm.domain.WmWarehouse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -68,11 +70,11 @@ public interface IWmWarehouseService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除仓库设置
|
* 批量删除仓库设置
|
||||||
*
|
*
|
||||||
* @param warehouseIds 需要删除的仓库设置主键集合
|
* @param warehouseIds 需要删除的仓库设置主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteWmWarehouseByWarehouseIds(Long[] warehouseIds);
|
public AjaxResult deleteWmWarehouseByWarehouseIds(Long[] warehouseIds);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除仓库设置信息
|
* 删除仓库设置信息
|
||||||
|
Loading…
Reference in New Issue
Block a user