自动化立体仓库 - WMS系统
zjj
2023-06-09 34a93b4b34e056ac7c20891efe5630245dc9766c
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
37
38
39
40
41
42
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.core.common.DateUtils;
import com.core.common.SnowflakeIdWorker;
import com.core.exception.CoolException;
import com.zy.asrs.entity.*;
import com.zy.asrs.entity.param.OpenOrderPakinParam;
import com.zy.asrs.entity.param.OpenOrderPakoutParam;
import com.zy.asrs.mapper.OrderCheckLogMapper;
import com.zy.asrs.mapper.OrderCheckMapper;
import com.zy.asrs.mapper.OrderDetlMapper;
import com.zy.asrs.service.*;
import com.zy.common.model.DetlDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.ArrayList;
import java.util.List;
 
@Slf4j
@Service("OrderCheckLogService")
public class OrderCheckLogServiceImpl extends ServiceImpl<OrderCheckLogMapper, OrderCheckLog> implements OrderCheckLogService{
 
 
    @Override
    public boolean save(String orderNo) {
        return this.baseMapper.save(orderNo) >0;
    }
 
    @Override
    public OrderCheckLog selectByNo(String orderNo) {
        List<OrderCheckLog> orderList = this.selectList(new EntityWrapper<OrderCheckLog>().eq("order_no", orderNo));
        if (Cools.isEmpty(orderList)) {
            return null;
        }
        return orderList.get(0);
    }
}