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 implements OrderCheckLogService{ @Override public boolean save(String orderNo) { return this.baseMapper.save(orderNo) >0; } @Override public OrderCheckLog selectByNo(String orderNo) { List orderList = this.selectList(new EntityWrapper().eq("order_no", orderNo)); if (Cools.isEmpty(orderList)) { return null; } return orderList.get(0); } }