From 34981c30a78e8bbd7791131059a9210f9928b62c Mon Sep 17 00:00:00 2001
From: 刘光辉 <347230014@qq.com>
Date: 星期四, 17 九月 2026 09:24:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into master
---
jnpf-lims/jnpf-lims-biz/src/main/java/jnpf/limsService/impl/LimsBaogaoShouquanServiceImpl.java | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/jnpf-lims/jnpf-lims-biz/src/main/java/jnpf/limsService/impl/LimsBaogaoShouquanServiceImpl.java b/jnpf-lims/jnpf-lims-biz/src/main/java/jnpf/limsService/impl/LimsBaogaoShouquanServiceImpl.java
new file mode 100644
index 0000000..d21bced
--- /dev/null
+++ b/jnpf-lims/jnpf-lims-biz/src/main/java/jnpf/limsService/impl/LimsBaogaoShouquanServiceImpl.java
@@ -0,0 +1,28 @@
+package jnpf.limsService.impl;
+
+import jnpf.base.service.SuperServiceImpl;
+import jnpf.limsEntity.BaogaoShenheJibie;
+import jnpf.limsEntity.LimsBaogaoShouquanEntity;
+import jnpf.limsMapper.LimsBaogaoShouquanMapper;
+import jnpf.limsService.LimsBaogaoShouquanService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class LimsBaogaoShouquanServiceImpl
+ extends SuperServiceImpl<LimsBaogaoShouquanMapper, LimsBaogaoShouquanEntity>
+ implements LimsBaogaoShouquanService {
+
+ @Autowired
+ private LimsBaogaoShouquanMapper limsBaogaoShouquanMapper;
+
+ @Override
+ public boolean hasAuthority(String userId, BaogaoShenheJibie jibie, String bizType) {
+ if (userId == null || userId.isEmpty()
+ || jibie == null
+ || bizType == null || bizType.isEmpty()) {
+ return false;
+ }
+ return limsBaogaoShouquanMapper.countAuthority(userId, jibie.getCode(), bizType) > 0;
+ }
+}
--
Gitblit v1.8.0