库存分配时显示了其他货主的库存

This commit is contained in:
秦鸿展
2026-02-09 17:31:41 +08:00
parent 308f79b804
commit 1e8a823887
@@ -1,5 +1,6 @@
package com.mhd.wms.interfaces.facadeApi.materialInventory;
import com.mhd.common.core.utils.StringUtils;
import com.mhd.common.core.web.controller.BaseController;
import com.mhd.common.core.web.domain.AjaxResult;
import com.mhd.common.core.web.page.TableDataInfo;
@@ -38,8 +39,14 @@ public class MaterialInventoryApi extends BaseController {
*/
@ApiOperation("查询物料库存列表")
@GetMapping("/list")
public TableDataInfo list(MaterialInventoryDTO materialInventoryDTO)
public TableDataInfo list(MaterialInventoryDTO materialInventoryDTO,
@RequestParam(value = "customerName", required = false) String customerName)
{
// 出库分配前端传的是客户名称 customerName,这里转成货主筛选条件(模糊匹配货主编码 / 名称)
if (StringUtils.isNotBlank(customerName) && StringUtils.isBlank(materialInventoryDTO.getShipperInfo())) {
materialInventoryDTO.setShipperInfo(customerName);
}
//转换实体
MaterialInventoryDO materialInventoryDO = materialInventoryAssembler.toDO(materialInventoryDTO);
startPage();