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 implements OrderPakinLogService { @Autowired private OrderDetlPakinLogMapper orderDetlPakinLogMapper; @Override public OrderPakinLog selectByNo(String orderNo) { List orderList = this.selectList(new EntityWrapper().eq("order_no", orderNo)); if (Cools.isEmpty(orderList)) { return null; } return orderList.get(0); } @Override public List selectDetlsByOrderId(Long orderId) { return orderDetlPakinLogMapper.selectList(new EntityWrapper().eq("order_id", orderId)); } }