package com.xzx.gc.order.service; import com.xzx.gc.entity.OrderHomeAppliance; import com.xzx.gc.order.mapper.OrderHomeApplianceMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service @Transactional public class OrderHomeApplianceService { @Autowired private OrderHomeApplianceMapper orderHomeApplianceMapper; public void add(OrderHomeAppliance orderHomeAppliance){ orderHomeApplianceMapper.insertSelective(orderHomeAppliance); } /** * @return */ public OrderHomeAppliance findById(Long id){ return orderHomeApplianceMapper.selectByPrimaryKey(id); } }