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 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; } }