物料查询

This commit is contained in:
zhaoqing
2026-05-15 19:26:56 +08:00
parent 96c138a2a6
commit aa7130ddfe
@@ -2,6 +2,7 @@ package com.mhd.wms.interfaces.facadeApi.materialBaseInfo;
import cn.hutool.core.date.DateUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.mhd.common.core.domain.entity.R;
import com.mhd.common.core.exception.ServiceException;
import com.mhd.common.core.utils.StringUtils;
@@ -151,5 +152,16 @@ public class MaterialBaseInfoApi extends BaseController {
return materialBaseInfoApplicationService.getBatchByIds(materialBaseInfoIds);
}
@ApiOperation("查询物料基础信息列表")
@GetMapping("/list1")
public TableDataInfo list1(MaterialBaseInfoDTO materialBaseInfoDTO,
@RequestParam(value = "pageNo", required = false, defaultValue = "1") Integer pageNo,
@RequestParam(value = "pageSize", required = false, defaultValue = "10") Integer pageSize)
{
//转换实体
MaterialBaseInfoDO materialBaseInfoDO = materialBaseInfoAssembler.toDO(materialBaseInfoDTO);
PageHelper.startPage(pageNo, pageSize);
List<MaterialBaseInfoPO> list = materialBaseInfoApplicationService.queryList(materialBaseInfoDO);
return getDataTable(list);
}
}