物料查询解决total问题 以及其他页面是推送人名称问题
This commit is contained in:
+3
-1
@@ -1,6 +1,7 @@
|
||||
package com.mhd.wms.interfaces.facadeApi.materialBaseInfo;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.mhd.common.core.domain.entity.R;
|
||||
import com.mhd.common.core.exception.ServiceException;
|
||||
import com.mhd.common.core.utils.StringUtils;
|
||||
@@ -133,8 +134,9 @@ public class MaterialBaseInfoApi extends BaseController {
|
||||
MaterialBaseInfoDO materialBaseInfoDO = materialBaseInfoAssembler.toDO(materialBaseInfoDTO);
|
||||
startPage();
|
||||
List<MaterialBaseInfoPO> list = materialBaseInfoApplicationService.queryList(materialBaseInfoDO);
|
||||
Page<MaterialBaseInfoPO> page = (Page<MaterialBaseInfoPO>) list;
|
||||
TableDataInfo tableDataInfo = new TableDataInfo();
|
||||
tableDataInfo.setTotal(list.size());
|
||||
tableDataInfo.setTotal(page.getTotal());
|
||||
tableDataInfo.setCode(200);
|
||||
tableDataInfo.setData(list);
|
||||
return tableDataInfo;
|
||||
|
||||
Reference in New Issue
Block a user