Helius
2021-07-01 c3b54650540167000b044fbd6d724765e5aae978
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
28
29
30
package com.xzx.gc.order.service;
 
import cn.hutool.core.convert.Convert;
import com.xzx.gc.common.constant.Constants;
import com.xzx.gc.entity.UserVehicleRel;
import com.xzx.gc.order.mapper.UserVehicleRelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tk.mybatis.mapper.entity.Example;
 
@Service
@Transactional
public class UserVehicleRelService {
 
    @Autowired
    private UserVehicleRelMapper userVehicleRelMapper;
 
    public void save(UserVehicleRel rel) {
        userVehicleRelMapper.insertSelective(rel);
    }
 
 
    public boolean update(UserVehicleRel rel) {
        return userVehicleRelMapper.updateByPrimaryKeySelective(rel)>0?true:false;
    }
 
 
 
}