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; } }