diff --git a/mhd_wms/src/main/java/com/mhd/wms/interfaces/facadeApi/materialBaseInfo/MaterialBaseInfoApi.java b/mhd_wms/src/main/java/com/mhd/wms/interfaces/facadeApi/materialBaseInfo/MaterialBaseInfoApi.java index 3cac82a3f..c780d3ea3 100644 --- a/mhd_wms/src/main/java/com/mhd/wms/interfaces/facadeApi/materialBaseInfo/MaterialBaseInfoApi.java +++ b/mhd_wms/src/main/java/com/mhd/wms/interfaces/facadeApi/materialBaseInfo/MaterialBaseInfoApi.java @@ -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 list = materialBaseInfoApplicationService.queryList(materialBaseInfoDO); + return getDataTable(list); + } }