自动化立体仓库 - WMS系统
chen.llin
2025-12-24 75c252bce336b9f1bd024cc186ce09992a0b01bc
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
26
27
28
29
30
31
32
33
34
35
36
package com.zy.asrs.service.impl;
 
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.core.common.Cools;
import com.zy.asrs.entity.OrderDetlPakinLog;
import com.zy.asrs.entity.OrderPakinLog;
import com.zy.asrs.mapper.OrderDetlPakinLogMapper;
import com.zy.asrs.mapper.OrderPakinLogMapper;
import com.zy.asrs.service.OrderPakinLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service("orderPakinLogService")
public class OrderPakinLogServiceImpl extends ServiceImpl<OrderPakinLogMapper, OrderPakinLog> implements OrderPakinLogService {
 
    @Autowired
    private OrderDetlPakinLogMapper orderDetlPakinLogMapper;
 
    @Override
    public OrderPakinLog selectByNo(String orderNo) {
        List<OrderPakinLog> orderList = this.selectList(new EntityWrapper<OrderPakinLog>().eq("order_no", orderNo));
        if (Cools.isEmpty(orderList)) {
            return null;
        }
        return orderList.get(0);
    }
 
    @Override
    public List<OrderDetlPakinLog> selectDetlsByOrderId(Long orderId) {
        return orderDetlPakinLogMapper.selectList(new EntityWrapper<OrderDetlPakinLog>().eq("order_id", orderId));
    }
 
}