Helius
2021-06-30 e47031a11b23168ceb5c0e8987baddada1a7b6ff
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
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);
    }
}