| | |
| | | import org.jeecg.modules.mdc.service.IMdcProductionEquipmentService; |
| | | import org.jeecg.modules.system.entity.MdcProduction; |
| | | import org.jeecg.modules.system.entity.MdcProductionEquipment; |
| | | import org.jeecg.modules.system.entity.MdcUserProduction; |
| | | import org.jeecg.modules.system.entity.SysUser; |
| | | import org.jeecg.modules.system.service.IMdcProductionService; |
| | | import org.jeecg.modules.system.service.IMdcUserProductionService; |
| | |
| | | if(mdcProduction == null) { |
| | | ExceptionCast.cast(DeviceGroupCode.DEVICE_GROUP_NOT_EXIST); |
| | | } |
| | | DeviceGroupPermission permission = deviceGroupPermissionService.getByUserIdAndGroupId(userId, mdcProduction.getId()); |
| | | if(permission == null) |
| | | MdcUserProduction mdcUserProduction=mdcUserProductionService.getByUserIdAndGroupId(userId,mdcProduction.getId()); |
| | | if(mdcUserProduction == null) |
| | | return false; |
| | | return true; |
| | | }else if(nodeType == 2) { |