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