| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.zy.asrs.entity.BasSteErrLog; |
| | | import com.zy.asrs.mapper.BasSteErrLogMapper; |
| | | import com.zy.asrs.service.BasSteErrLogService; |
| | |
| | | |
| | | @Override |
| | | public BasSteErrLog findLatestByTaskNo(Integer steNo, Integer taskNo) { |
| | | List<BasSteErrLog> basSteErrLogs = this.baseMapper.selectList(new EntityWrapper<BasSteErrLog>().eq("ste_no", steNo).eq("wrk_no", taskNo).orderBy("start_time", false)); |
| | | List<BasSteErrLog> basSteErrLogs = this.baseMapper.selectList(new QueryWrapper<BasSteErrLog>().eq("ste_no", steNo).eq("wrk_no", taskNo).orderByDesc("start_time")); |
| | | if (basSteErrLogs == null || basSteErrLogs.size() == 0) { |
| | | return null; |
| | | } else { |
| | |
| | | |
| | | @Override |
| | | public BasSteErrLog findLatest(Integer steNo) { |
| | | List<BasSteErrLog> basSteErrLogs = this.baseMapper.selectList(new EntityWrapper<BasSteErrLog>().eq("ste_no", steNo).orderBy("start_time", false)); |
| | | List<BasSteErrLog> basSteErrLogs = this.baseMapper.selectList(new QueryWrapper<BasSteErrLog>().eq("ste_no", steNo).orderByDesc("start_time")); |
| | | if (basSteErrLogs == null || basSteErrLogs.size() == 0) { |
| | | return null; |
| | | } else { |