package com.xzx.gc.order.service; import com.xzx.gc.entity.OrderDetailInfo; import com.xzx.gc.order.mapper.OrderDetailMapper; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; @Slf4j @Service @Transactional public class OrderDetailService { @Autowired private OrderDetailMapper orderDetailMapper; public List findByReceiver(String receiver){ return orderDetailMapper.findByReceiver(receiver); } public void update(OrderDetailInfo orderDetailInfo){ orderDetailMapper.updateByPrimaryKeySelective(orderDetailInfo); } public void updateAllById(OrderDetailInfo orderDetailInfo){ orderDetailMapper.updateByPrimaryKey(orderDetailInfo); } public OrderDetailInfo findById(String orderId){ return orderDetailMapper.selectByPrimaryKey(orderId); } }