自动化立体仓库 - WCS系统
1
zhangc
2025-04-10 9fa73c998ffe1ba6d0d79d3c1dbd5a911403c2cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.zy.asrs.service.impl;
 
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.zy.asrs.entity.BasShuttleErrLog;
import com.zy.asrs.mapper.BasLiftErrLogMapper;
import com.zy.asrs.entity.BasLiftErrLog;
import com.zy.asrs.service.BasLiftErrLogService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service("basLiftErrLogService")
public class BasLiftErrLogServiceImpl extends ServiceImpl<BasLiftErrLogMapper, BasLiftErrLog> implements BasLiftErrLogService {
 
    @Override
    public BasLiftErrLog findLatestByTaskNo(Integer liftNo, Integer taskNo) {
        List<BasLiftErrLog> basLiftErrLogs = this.baseMapper.selectList(new EntityWrapper<BasLiftErrLog>().eq("lift_no", liftNo).eq("wrk_no", taskNo).orderBy("start_time", false));
        if (basLiftErrLogs == null || basLiftErrLogs.size() == 0) {
            return null;
        } else {
            return basLiftErrLogs.get(0);
        }
    }
}