From 217cba876e165c69a6ea24dbbacaf23867977f46 Mon Sep 17 00:00:00 2001 From: zhaoqing <1670883518@qq.com> Date: Sat, 30 May 2026 16:53:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=A2=9E=E7=89=A9?= =?UTF-8?q?=E6=96=99=E6=9F=A5=E8=AF=A2oms=E5=AD=97=E6=AE=B5=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ErpCountryApplicationService.java | 22 +++++++++++++++++++ .../facade/erpCountry/ErpCountryApi.java | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/mhd_oms/src/main/java/com/mhd/oms/application/service/erpCountry/ErpCountryApplicationService.java b/mhd_oms/src/main/java/com/mhd/oms/application/service/erpCountry/ErpCountryApplicationService.java index 04cbd0e98..247b4d0e0 100644 --- a/mhd_oms/src/main/java/com/mhd/oms/application/service/erpCountry/ErpCountryApplicationService.java +++ b/mhd_oms/src/main/java/com/mhd/oms/application/service/erpCountry/ErpCountryApplicationService.java @@ -61,6 +61,28 @@ public class ErpCountryApplicationService{ + } + + + public TableDataInfo queryList1(ErpCountryDTO erpCountryDTO) { + LoginUser loginUser = SecurityUtils.getLoginUser(); + if (loginUser != null) { + Long topOrganizationId = loginUser.getUserPo().getTopOrganizationId(); + if (topOrganizationId != null && topOrganizationId != 1) { + erpCountryDTO.setTopOrganizationId(topOrganizationId); + } + } + + List list = erpCountryMapper.queryList(erpCountryDTO); + + + TableDataInfo tableDataInfo = new TableDataInfo(); + tableDataInfo.setData(list); + tableDataInfo.setCode(200); + return tableDataInfo; + + + } public int insert(ErpCountryDTO erpCountryDTO) { diff --git a/mhd_oms/src/main/java/com/mhd/oms/interfaces/facade/erpCountry/ErpCountryApi.java b/mhd_oms/src/main/java/com/mhd/oms/interfaces/facade/erpCountry/ErpCountryApi.java index aa8a9449a..e5c9504f1 100644 --- a/mhd_oms/src/main/java/com/mhd/oms/interfaces/facade/erpCountry/ErpCountryApi.java +++ b/mhd_oms/src/main/java/com/mhd/oms/interfaces/facade/erpCountry/ErpCountryApi.java @@ -76,7 +76,7 @@ public class ErpCountryApi extends BaseController{ @ApiOperation("查询企业国别列表-下拉框用") @GetMapping("/countryList") public AjaxResult countryList(ErpCountryDTO erpCountryDTO){ - TableDataInfo tableDataInfo = erpCountryApplicationService.queryList(erpCountryDTO); + TableDataInfo tableDataInfo = erpCountryApplicationService.queryList1(erpCountryDTO); return AjaxResult.success(tableDataInfo.getData()); }