推送修复

This commit is contained in:
zhaoqing
2026-05-15 19:27:47 +08:00
parent aa7130ddfe
commit 64f68657e6
4 changed files with 33 additions and 21 deletions
@@ -45,10 +45,5 @@ public class ErpEnterpriseUnitDTO {
@ApiModelProperty(value = "创建时间止")
private String createTimeTo;
@ApiModelProperty(value = "页码")
private Integer pageNum = 1;
@ApiModelProperty(value = "每页数量")
private Integer pageSize = 10;
}
@@ -1,6 +1,7 @@
package com.mhd.oms.interfaces.facade.erpEnterpriseUnit;
import com.github.pagehelper.PageHelper;
import com.mhd.common.core.web.controller.BaseController;
import com.mhd.common.core.web.domain.AjaxResult;
import com.mhd.common.core.web.page.TableDataInfo;
@@ -35,9 +36,11 @@ public class ErpEnterpriseUnitApi extends BaseController {
@ApiOperation("查询企业单位列表")
@GetMapping("/list")
public TableDataInfo list(ErpEnterpriseUnitDTO erpEnterpriseUnitDTO){
public TableDataInfo list(ErpEnterpriseUnitDTO erpEnterpriseUnitDTO,
@RequestParam(value = "pageNo", required = false, defaultValue = "1") Integer pageNo,
@RequestParam(value = "pageSize", required = false, defaultValue = "10") Integer pageSize){
ErpEnterpriseUnitDO erpEnterpriseUnitDO = erpEnterpriseUnitAssembler.toDO(erpEnterpriseUnitDTO);
startPage();
PageHelper.startPage(pageNo, pageSize);
return erpEnterpriseUnitApplicationService.queryList(erpEnterpriseUnitDO);
}