From e1d92fc725088bbf16cf1be05130bf71c409e76c Mon Sep 17 00:00:00 2001 From: HanLong <404402223@qq.com> Date: Tue, 24 Mar 2026 17:24:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86][?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E4=BD=8D=E7=BD=AE=E9=80=89=E6=8B=A9=E5=99=A8?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hxhq/system/controller/SysDictDataController.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/system/controller/SysDictDataController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/system/controller/SysDictDataController.java index 38b9eb8..7e01e0e 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/system/controller/SysDictDataController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/system/controller/SysDictDataController.java @@ -107,6 +107,24 @@ public class SysDictDataController extends BaseController @GetMapping(value = "/type/{dictType}") public AjaxResult dictType(@PathVariable String dictType) { + if(StringUtils.equals(dictType,"business_ccwz")) { + StorageLocationSearchForm form = new StorageLocationSearchForm(); + List superiorAndSubordinate = sysDeptService.getSuperiorAndSubordinate(SecurityUtils.getLoginUser().getSysUser().getDeptId()); + List deptIdList = superiorAndSubordinate.stream().map(SysDept::getDeptId).collect(Collectors.toList()); + form.setDeptIdList(deptIdList); + form.setStatus(NormalEnum.yes.getValue()); + List list = storageLocationService.queryList(form); + List data = new ArrayList<>(); + for (StorageLocation storageLocation : list) { + SysDictData sysDictData = new SysDictData(); + sysDictData.setDictType("business_ccwz");; + sysDictData.setDictLabel(storageLocation.getLocation() + "/" + storageLocation.getName() + "/" + storageLocation.getShelfPlacement()); + sysDictData.setDictValue(storageLocation.getLocation() + "/" + storageLocation.getName() + "/" + storageLocation.getShelfPlacement()); + sysDictData.setRemark(storageLocation.getCompartment()); + data.add(sysDictData); + } + return success(data); + } List data = dictTypeService.selectDictDataByType(dictType); if (StringUtils.isNull(data)) {