From 14a5fa293c1770c258900f10fcf1e31fe5135db4 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Thu, 14 Sep 2023 11:16:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E8=8E=B7=E5=8F=96=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E7=B1=BB=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../technology/controller/ProProcessController.java | 13 ++++++++++++- .../com/op/technology/mapper/ProProcessMapper.java | 3 +++ .../op/technology/service/IProProcessService.java | 3 +++ .../service/impl/ProProcessServiceImpl.java | 12 ++++++++++++ .../mapper/technology/ProProcessMapper.xml | 10 ++++++++-- .../main/resources/mapper/wms/SysFactoryMapper.xml | 2 +- 6 files changed, 39 insertions(+), 4 deletions(-) diff --git a/op-modules/op-technology/src/main/java/com/op/technology/controller/ProProcessController.java b/op-modules/op-technology/src/main/java/com/op/technology/controller/ProProcessController.java index ddc19e17..077e3b72 100644 --- a/op-modules/op-technology/src/main/java/com/op/technology/controller/ProProcessController.java +++ b/op-modules/op-technology/src/main/java/com/op/technology/controller/ProProcessController.java @@ -172,11 +172,22 @@ public class ProProcessController extends BaseController { /** * 查询设工作中心 */ - @RequiresPermissions("wms:factory:getWorkCenterList") + @RequiresPermissions("mes:pro:process:getWorkCenterList") @GetMapping("/getWorkCenterList") public TableDataInfo getWorkCenterList(SysFactory sysFactory) { startPage(); List list = proProcessService.getWorkCenterList(sysFactory); return getDataTable(list); } + + /** + * 查询设工作中心 + */ + @RequiresPermissions("mes:pro:process:getEquipmentTypeList") + @GetMapping("/getEquipmentTypeList") + public TableDataInfo getEquipmentTypeList(Equipment equipment) { + startPage(); + List list = proProcessService.getEquipmentTypeList(equipment); + return getDataTable(list); + } } diff --git a/op-modules/op-technology/src/main/java/com/op/technology/mapper/ProProcessMapper.java b/op-modules/op-technology/src/main/java/com/op/technology/mapper/ProProcessMapper.java index 35eba4b2..45dba4c1 100644 --- a/op-modules/op-technology/src/main/java/com/op/technology/mapper/ProProcessMapper.java +++ b/op-modules/op-technology/src/main/java/com/op/technology/mapper/ProProcessMapper.java @@ -76,4 +76,7 @@ public interface ProProcessMapper //查询下拉式工作中心 public List getWorkCenterList(SysFactory sysFactory); + + //查询设备类型 + List getEquipmentTypeList(Equipment equipment); } diff --git a/op-modules/op-technology/src/main/java/com/op/technology/service/IProProcessService.java b/op-modules/op-technology/src/main/java/com/op/technology/service/IProProcessService.java index 0c3b7537..412d7f15 100644 --- a/op-modules/op-technology/src/main/java/com/op/technology/service/IProProcessService.java +++ b/op-modules/op-technology/src/main/java/com/op/technology/service/IProProcessService.java @@ -77,4 +77,7 @@ public interface IProProcessService //查询下拉式工作中心 List getWorkCenterList(SysFactory sysFactory); + + //查询设备类型 + List getEquipmentTypeList(Equipment equipment); } diff --git a/op-modules/op-technology/src/main/java/com/op/technology/service/impl/ProProcessServiceImpl.java b/op-modules/op-technology/src/main/java/com/op/technology/service/impl/ProProcessServiceImpl.java index 6f58e225..5f6a0c5c 100644 --- a/op-modules/op-technology/src/main/java/com/op/technology/service/impl/ProProcessServiceImpl.java +++ b/op-modules/op-technology/src/main/java/com/op/technology/service/impl/ProProcessServiceImpl.java @@ -245,4 +245,16 @@ public class ProProcessServiceImpl implements IProProcessService { public List getWorkCenterList(SysFactory sysFactory) { return proProcessMapper.getWorkCenterList(sysFactory); } + + /** + * 查询设备类型 + * + * @param equipment 工厂模型 + * @return 工厂模型 + */ + @Override + @DS("#header.poolName") + public List getEquipmentTypeList(Equipment equipment) { + return proProcessMapper.getEquipmentTypeList(equipment); + } } diff --git a/op-modules/op-technology/src/main/resources/mapper/technology/ProProcessMapper.xml b/op-modules/op-technology/src/main/resources/mapper/technology/ProProcessMapper.xml index ece10a43..844dc094 100644 --- a/op-modules/op-technology/src/main/resources/mapper/technology/ProProcessMapper.xml +++ b/op-modules/op-technology/src/main/resources/mapper/technology/ProProcessMapper.xml @@ -297,9 +297,9 @@ @@ -323,4 +323,10 @@ from sys_factory + + diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/SysFactoryMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/SysFactoryMapper.xml index ebeb957e..1d7e9d75 100644 --- a/op-modules/op-wms/src/main/resources/mapper/wms/SysFactoryMapper.xml +++ b/op-modules/op-wms/src/main/resources/mapper/wms/SysFactoryMapper.xml @@ -113,7 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select factory_code,factory_name from sys_factory