| | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | * @param patrolId |
| | | * @return |
| | | */ |
| | | public List<PatrolRecord> getRecordByPatrolId(String patrolId) { |
| | | public List<PatrolRecord> getRecordByPatrolId(String patrolId,String userId,String confId) { |
| | | |
| | | if(StringUtils.isBlank(patrolId)){ |
| | | if(StringUtils.isBlank(patrolId) || StringUtils.isBlank(userId) || StringUtils.isBlank(confId)){ |
| | | return null; |
| | | } |
| | | |
| | | QueryWrapper<PatrolRecord> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("patrol_id", patrolId); |
| | | queryWrapper.eq("user_id", userId); |
| | | queryWrapper.eq("conf_id", confId); |
| | | queryWrapper.orderByDesc("id"); |
| | | |
| | | return patrolRecordMapper.selectList(queryWrapper); |