| | |
| | | import io.swagger.models.auth.In; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.checkerframework.checker.units.qual.C; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | JkCabinetLog lastOutLog = jkCabinetLogMapper.selectOne(new QueryWrapper<JkCabinetLog>().lambda() |
| | | .eq(JkCabinetLog::getKeyId,jkCabinetLog.getKeyId()) |
| | | .eq(JkCabinetLog::getType,Constants.ZERO) |
| | | .isNull(JkCabinetLog::getKeyStatus) |
| | | .isNotNull(JkCabinetLog::getOpenWay) |
| | | .orderByDesc(JkCabinetLog::getId) |
| | | .last( "limit 1 ")); |
| | | if(Objects.nonNull(lastOutLog)){ |
| | |
| | | return jkCabinetGridList; |
| | | } |
| | | List<String> authMemberList = Arrays.asList(jkCabinet.getAuthMemberId().split(",")); |
| | | if(!authMemberList.contains(dto.getAutoMemberId())){ |
| | | if(!authMemberList.contains(dto.getAutoMemberId().toString())){ |
| | | return jkCabinetGridList; |
| | | } |
| | | } |